summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add -fobjc-default-synthesized-properties flagTed Kremenek2010-12-231-0/+7
| | | | | | | | | | | | to allow us to explicitly control whether or not Objective-C properties are default synthesized. Currently this feature only works when using the -fobjc-non-fragile-abi2 flag (so there is no functionality change), but we can now turn off this feature without turning off all the features coupled with -fobjc-non-fragile-abi2. llvm-svn: 122519
* Fix PR8639 by making the "argument unused during compilation" less ↵Rafael Espindola2010-12-201-3/+0
| | | | | | | | agressive. Now we don't warn if an argument is not used because it is shadowed by a subsequent argument. llvm-svn: 122281
* Replace all uses of PathV1::getLast with PathV2::filename.Michael J. Spencer2010-12-181-7/+5
| | | | llvm-svn: 122117
* Driver: M and MM should be grouped together, <rdar://problem/8744831>.Daniel Dunbar2010-12-081-2/+1
| | | | llvm-svn: 121284
* Handle -nostartfiles.Rafael Espindola2010-12-011-8/+11
| | | | llvm-svn: 120528
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120297
* Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652.Anders Carlsson2010-11-211-0/+6
| | | | llvm-svn: 119915
* Driver/Darwin: Don't pass -demangle to an iOS linker, which may not understandDaniel Dunbar2010-11-191-1/+7
| | | | | | it. llvm-svn: 119809
* Driver: Ignore -force_cpusubtype_ALL.Daniel Dunbar2010-11-191-0/+3
| | | | llvm-svn: 119803
* -Rename -Wargument-larger-than -> -Wlarge-by-value-copyArgyrios Kyrtzidis2010-11-181-4/+4
| | | | | | | | | -Improve the diagnostic message -Add some comments Suggestions by Chris. llvm-svn: 119594
* Introduce option -Wargument-larger-than[=N] which warns about function ↵Argyrios Kyrtzidis2010-11-171-0/+9
| | | | | | | | | | definitions if they take by-value or return by-value any POD that is larger than some threshold (default is 64 bytes). Implements rdar://8548050. llvm-svn: 119583
* Implement -pie.Rafael Espindola2010-11-171-6/+19
| | | | llvm-svn: 119577
* Don't warn aboutRafael Espindola2010-11-171-0/+3
| | | | | | | clang -w -c foo.s Helps with the gdb testsuite. llvm-svn: 119574
* Don't warn about -w not being used in a link. Necessary to get saneRafael Espindola2010-11-171-0/+3
| | | | | | results in the gdb testsuite. llvm-svn: 119552
* Silence warning for "clang -O2 -O0 -c foo.c -o foo.o.Rafael Espindola2010-11-171-0/+3
| | | | | | Fixes PR8607. llvm-svn: 119498
* Fixes PR8611.Rafael Espindola2010-11-151-0/+3
| | | | | | | | Silence warning about -g not being used during linking. I couldn't find any change in behavior in gcc liking when given -g. Please open another bug if I missed something. llvm-svn: 119166
* Driver: Support -Oz as an alias for -Os.Daniel Dunbar2010-11-131-0/+4
| | | | llvm-svn: 119003
* Add support for -nostdlib in the linux toolchain.Rafael Espindola2010-11-121-50/+54
| | | | llvm-svn: 118878
* Add support for -s, -pthread and -pthreads. Thanks to Hans Wennborg andRafael Espindola2010-11-111-0/+6
| | | | | | Cosmin Truta for reporting it. llvm-svn: 118826
* Driver: Allow build system override of default non-fragile ABI version.Daniel Dunbar2010-11-111-0/+4
| | | | llvm-svn: 118786
* Add -rdynamic to freebsd and openbsd. Patch by Ruben.Rafael Espindola2010-11-111-0/+4
| | | | llvm-svn: 118771
* Add support for soft/hard float options to the Sparc targetBruno Cardoso Lopes2010-11-091-0/+49
| | | | llvm-svn: 118514
* Add support for -rdynamic.Rafael Espindola2010-11-071-0/+3
| | | | llvm-svn: 118384
* Use ld directly on linux. Changes from the previous try:Rafael Espindola2010-11-071-0/+144
| | | | | | | | | | | | | | | | | *) Try to detect as much as possible from the system itself, not the distro. This should make it easier to port to a new distro and more likely to work on a unknown one. *) The distro enum now doesn't include the arch. Just use the existing host detection support in LLVM. *) Correctly handle --sysroot. A small regression is that now clang will pass bitcode file to the linker. This is necessary for the gold plugin support to work. It might be better to detect this at configure/cmake time, but doing it in c++ first is a lot easier. llvm-svn: 118382
* Implement -working-directory.Argyrios Kyrtzidis2010-11-031-0/+2
| | | | | | | | | | | | | | | | | | | When -working-directory is passed in command line, file paths are resolved relative to the specified directory. This helps both when using libclang (where we can't require the user to actually change the working directory) and to help reproduce test cases when the reproduction work comes along. --FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains the working directory value if set). --FileSystemOptions are passed around to various interfaces that perform file operations. --Opening & reading the content of files should be done only through FileManager. This is useful in general since file operations will be abstracted in the future for the reproduction mechanism. FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same FileManager but with different FileSystemOptions. Addresses rdar://8583824. llvm-svn: 118203
* Revert while I debug test failures :-(Rafael Espindola2010-11-031-139/+0
| | | | llvm-svn: 118150
* Switch clang to run ld directly on linux. I tested this on all the linuxRafael Espindola2010-11-031-0/+139
| | | | | | | | | | | | | | | | | | | | | | distros listed by running gcc main.o -o main g++ main.o -o main gcc main.o -o main -static g++ main.o -o main -static gcc f.o -o f.so -shared g++ f.o -o f.so -shared and comparing the ld line with the one created by clang. I also added -m32/m64 in distros that support it. While I tested many distros, there will always be more. If you are hit by this it should be somewhat easy to add your distro. If you are in a hurry, do revert this, but please inform how to detect you distro and the ld command lines produced by the above gcc invocations. Most distros have some patches on gcc :-( llvm-svn: 118149
* Driver: Silently ignore -fasm-blocks for now instead of error'ing, this causeDaniel Dunbar2010-11-021-10/+3
| | | | | | some unexpected fallout. llvm-svn: 118037
* Driver/IA: Ignore -L for now, which users shouldn't be using for semantic ↵Daniel Dunbar2010-10-281-0/+5
| | | | | | effect. llvm-svn: 117600
* Reorganize predefined macros for all Windows targets.Michael J. Spencer2010-10-211-0/+12
| | | | | | | | | | This adds an option to set the _MSC_VER macro without recompiling. This is very useful when testing compatibility with the Windows SDK and c++stdlib headers. -fmsc-version=<version> (defaults to VS2003 (1300)) llvm-svn: 116999
* Fix Whitespace.Michael J. Spencer2010-10-211-9/+9
| | | | llvm-svn: 116990
* Add support for the '--sysroot' flag, and an accompanying test of itsChandler Carruth2010-10-201-0/+9
| | | | | | interactions with -isysroot and other driver commands. llvm-svn: 116912
* Driver: Reject -fasm-blocks except on X86 (where we just ignore it, sinceDaniel Dunbar2010-10-181-1/+13
| | | | | | passing it is very prevalent in some circles). llvm-svn: 116761
* Driver/IA: Accept and ignore -force_cpusubtype_ALL, as in 'clang -cDaniel Dunbar2010-10-181-4/+19
| | | | | | | | -Wa,-force_cpusubtype_ALL t.c'. - Tweaks -Wa, and -Xassembler handling to only accept an explicit short list of arguments and give an obvious unsupported error on others. llvm-svn: 116759
* Driver/Darwin: Forward -ObjC when linking, which may be needed when using staticDaniel Dunbar2010-10-181-0/+6
| | | | | | libraries with Objective-C code. llvm-svn: 116758
* Driver: Error on -fno-for-scope, which we have no intention of supporting.Daniel Dunbar2010-10-151-1/+7
| | | | llvm-svn: 116627
* Revert r116605, a lot more were committed by mistake.Argyrios Kyrtzidis2010-10-151-10/+0
| | | | llvm-svn: 116606
* Add '-include-pch' option to the driver, so it can get passed to the cc1 driver.Argyrios Kyrtzidis2010-10-151-0/+10
| | | | llvm-svn: 116605
* Wire up the -fstrict-aliasing and -fno-strict-aliasing optionsDan Gohman2010-10-141-0/+4
| | | | | | to CodeGenOption flags. llvm-svn: 116530
* Eliminate -fdiagnostics-binary and all of the infrastructure forDouglas Gregor2010-10-111-2/+0
| | | | | | | | emitting diagnostics in a binary form to be consumed by libclang, since libclang no longer does any of its work out-of-process, making this code dead. Besides, this stuff never worked at 100% anyway. llvm-svn: 116250
* lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.NAKAMURA Takumi2010-10-101-0/+1
| | | | llvm-svn: 116161
* Implement -fshort-enums (rdar://8490496).Argyrios Kyrtzidis2010-10-081-2/+7
| | | | llvm-svn: 116020
* Teach the driver to pass -fexceptions in Objective-C inputs on ARM.John McCall2010-10-061-2/+3
| | | | | | | I don't know when this stopped happening, but this seems to be the right place to do it. llvm-svn: 115730
* Introduce -flimit-debug-info.Devang Patel2010-09-301-0/+1
| | | | | | In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress. llvm-svn: 115188
* Driver: Ignore the found PCH file if its '-include' is not the first one.Argyrios Kyrtzidis2010-09-301-7/+17
| | | | llvm-svn: 115158
* Driver/Linux: Translate rewritten lib options back to standard -l form whenDaniel Dunbar2010-09-251-2/+11
| | | | | | using generic GCC tools. llvm-svn: 114793
* Driver: Add -fallow-unsupported which disables some of the eager error'ing we doDaniel Dunbar2010-09-241-12/+14
| | | | | | to prevent users from trying unsupported stuff. Useful for testing. llvm-svn: 114749
* Fix header comment so we don't break emacs.Nick Lewycky2010-09-231-1/+1
| | | | llvm-svn: 114711
* If -fcolor-diagnostics is explicitly passed to the driver respect that even ↵Argyrios Kyrtzidis2010-09-231-2/+2
| | | | | | | | | if the driver is of the opinion that stderr can't handle them. (see http://llvm.org/PR8150) Patch by Frits van Bommel! llvm-svn: 114638
* Driver/Objective-C: Retool Objective-C ABI flags to be more usable, and actuallyDaniel Dunbar2010-09-201-5/+29
| | | | | | document behavior. Will wonders never cease. llvm-svn: 114334
OpenPOWER on IntegriCloud