summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Push bound architecture name into Compilation::getArgsForToolChain.Daniel Dunbar2009-09-092-11/+13
| | | | llvm-svn: 81365
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-0916-222/+210
| | | | llvm-svn: 81346
* Change Darwin toolchain lookup to use llvm::Triple.Daniel Dunbar2009-09-081-52/+37
| | | | | | - -2+1 FIXMEs. llvm-svn: 81282
* Validate arguments to -arch.Daniel Dunbar2009-09-081-0/+10
| | | | llvm-svn: 81281
* Rename HostInfo::getToolChain to HostInfo::CreateToolChain, and don't recreateDaniel Dunbar2009-09-082-41/+36
| | | | | | the default tool chain when binding the default architecture. llvm-svn: 81279
* Delete trailing whitespace.Daniel Dunbar2009-09-081-53/+53
| | | | llvm-svn: 81278
* Simplify.Daniel Dunbar2009-09-081-7/+2
| | | | llvm-svn: 81277
* Fix ShouldUseClangCompiler to use llvm::Triple.Daniel Dunbar2009-09-082-34/+28
| | | | | | - -1 FIXME, and fixes 'clang -arch armv4t ...', for example. llvm-svn: 81276
* Tweak & reflow comments, and delete trailing whitespace.Daniel Dunbar2009-09-081-193/+173
| | | | llvm-svn: 81275
* Remove FIXMEs for pedantically-gcc-bug-compatible behavior.Daniel Dunbar2009-09-081-26/+4
| | | | | | | | - We aren't going to fix these since they haven't caused problems in practice. - Similarly, don't forward -object to Darwin ld. llvm-svn: 81224
* Merge libgcc spec changes for darwin::Link::ConstructJob.Daniel Dunbar2009-09-041-3/+10
| | | | llvm-svn: 81022
* Tweak darwin::Link::AddLinkArgs.Daniel Dunbar2009-09-041-1/+11
| | | | llvm-svn: 81021
* Implement darwin::Link::AddDarwinArch for ARM.Daniel Dunbar2009-09-041-1/+73
| | | | llvm-svn: 81020
* Darwin: Pass -iphoneos-version-min to ld when building for ARM.Daniel Dunbar2009-09-044-25/+56
| | | | llvm-svn: 81019
* Add -ccc-install-dir option for faking installation path.Daniel Dunbar2009-09-041-1/+7
| | | | llvm-svn: 81017
* Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.Daniel Dunbar2009-09-045-26/+23
| | | | llvm-svn: 81016
* Remove unused argument.Daniel Dunbar2009-09-042-7/+3
| | | | llvm-svn: 81010
* Add basic support for -pthread.Daniel Dunbar2009-09-031-0/+2
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
* Update.Mike Stump2009-09-031-0/+4
| | | | llvm-svn: 80864
* Add driver support for -emit-ast and AST compilation steps.Daniel Dunbar2009-09-013-11/+35
| | | | | | - <rdar://problem/7185031> Add 'clang' option '-emit-ast' llvm-svn: 80678
* Updated GNU runtime non-fragile ABI.David Chisnall2009-08-311-0/+5
| | | | | | | Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. llvm-svn: 80591
* PR4766: Don't pass -static to 'as' on x86_64 on Darwin.Daniel Dunbar2009-08-241-3/+3
| | | | | | Also, do pass -static even with -dynamic on i386. llvm-svn: 79948
* Remove arch normalization from Driver, this should be unnecessary now thatDaniel Dunbar2009-08-241-14/+0
| | | | | | things have moved to llvm::Triple. llvm-svn: 79902
* API changes to match llvm ToT.Chris Lattner2009-08-231-4/+4
| | | | llvm-svn: 79868
* Reenable clang using clang-cc for C++ and all archs by default.Daniel Dunbar2009-08-231-1/+1
| | | | llvm-svn: 79861
* Temporarily switch clang back to not using clang-cc by default for C++, and onlyDaniel Dunbar2009-08-231-1/+14
| | | | | | using clang-cc on i386 and x86_64. llvm-svn: 79859
* Don't install Clang libraries.Douglas Gregor2009-08-231-0/+2
| | | | llvm-svn: 79824
* Second half of, clang, AuroraUX toolchain support.Edward O'Callaghan2009-08-226-4/+273
| | | | llvm-svn: 79713
* Add additional library paths for Linux distros on mixed 32/64-bit systems.Daniel Dunbar2009-08-061-0/+9
| | | | | | - Patch by Carl-Daniel Hailfinger. llvm-svn: 78272
* Fix -fno-omit-frame-pointer bug Eli noticed.Benjamin Kramer2009-08-051-2/+2
| | | | llvm-svn: 78233
* Translate -mcmodel=X to -code-model X and pass it to clang-cc. Patch by ↵Benjamin Kramer2009-08-051-0/+5
| | | | | | Pawel Worach! llvm-svn: 78190
* Add support for the -fno-omit-frame-pointer option. Patch by Roman Divacky!Benjamin Kramer2009-08-051-1/+2
| | | | llvm-svn: 78188
* Driver/OpenBSD: Improve ld options.Daniel Dunbar2009-08-031-2/+18
| | | | | | - Patch by Jonathan Gray! llvm-svn: 77935
* Add beginnigs of rtti generation, wire up more of -fno-exceptions.Mike Stump2009-07-311-1/+15
| | | | llvm-svn: 77751
* Have 'clang --analyze' run syntactic static analysis security checks.Ted Kremenek2009-07-241-0/+1
| | | | llvm-svn: 76996
* Switch the driver back to always using clang-cc by default (for C++, andDaniel Dunbar2009-07-231-4/+3
| | | | | | | | | | | | regardless of the architecture). - This is a good default for development & testing; for example without this any tests using 'clang' in the test suite will fail on PowerPC, since the driver will avoid using clang. - We don't want to actually ship something built this way, but that should be handled via some sort of configuration file. llvm-svn: 76886
* driver: Print --version on stdout, to match gcc.Daniel Dunbar2009-07-211-7/+7
| | | | | | - Patch by Jean-Daniel Dupas llvm-svn: 76632
* Remove -ftraditional option, which gcc doesn't actually support. Make Eli Friedman2009-07-141-4/+6
| | | | | | | | using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. llvm-svn: 75690
* Explicitly initialize the options array, MinGW's gcc 4.3.5 appears to have a bugDaniel Dunbar2009-07-131-1/+5
| | | | | | in array value-initialization. llvm-svn: 75518
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-071-0/+3
| | | | | | | | | | | | with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. llvm-svn: 74885
* Driver: Mark some Compilation members const.Daniel Dunbar2009-07-011-2/+2
| | | | llvm-svn: 74636
* Driver: Move Compilation::Execute to Driver::ExecuteCompilation.Daniel Dunbar2009-07-012-48/+48
| | | | | | | | | - The Compilation is just a helper class, it shouldn't have that amount of logic in it. - No functionality change. llvm-svn: 74634
* Driver: Improve diagnostics for failed commands.Daniel Dunbar2009-07-011-6/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Not all tools give good error messages, and sometimes the tool can fail w/o any error (for example, when signalled). - We suppress this message when the failing command is the compiler and it failed normally (exit code == 1), under the assumption that it gave a good diagnostic. For example, for a linker failure we now get: -- ddunbar@lordcrumb:tmp$ clang a.c b.c ld: duplicate symbol _x in /var/folders/cl/clrOX6SaG+moCeRKEI4PtU+++TI/-Tmp-/cc-bXYITq.o and /var/folders/cl/clrOX6SaG+moCeRKEI4PtU+++TI/-Tmp-/cc-6uK4jD.o clang: error: linker command failed with exit code 1 (use -v to see invocation) -- For a compiler crash we get: -- ddunbar@lordcrumb:tmp$ clang t.i Assertion failed: (CGT.getTargetData().getTypeAllocSizeInBits(STy) == RL.getSize()), function layoutStructFields, file CodeGenTypes.cpp, line 573. 0 clang-cc 0x0000000100f1f1f1 PrintStackTrace(void*) + 38 ... stack trace and virtual stack trace follow ... clang: error: compiler command failed due to signal 6 (use -v to see invocation) -- But for a regular compilation failure we get the usual: -- ddunbar@lordcrumb:tmp$ clang c.c c.c:1:6: error: invalid token after top level declarator int x ^ 1 diagnostic generated. -- - No test case, not amenable to non-executable testing. :/ - <rdar://problem/6945613> llvm-svn: 74629
* Driver: Add Source argument for Commands to hold the Action which caused aDaniel Dunbar2009-07-012-16/+18
| | | | | | | Command to be generated, to support more advanced diagnostics. - No functionality change. llvm-svn: 74627
* OpenBSD support.Daniel Dunbar2009-06-296-0/+242
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-282-0/+41
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* Fix some TableGen-related dependencies for the Clang CMake buildDouglas Gregor2009-06-231-1/+1
| | | | llvm-svn: 73976
* Add some missing CMake dependenciesDouglas Gregor2009-06-181-0/+2
| | | | llvm-svn: 73700
* Stub out printing of the thread model with -v.Daniel Dunbar2009-06-161-1/+6
| | | | | | - Turns out libstdcxx greps for this in configure. llvm-svn: 73582
* Fake support for -print-multi-*Daniel Dunbar2009-06-161-0/+41
| | | | | | | - I think we will eventually need to support this for realz, and some build processes seem to depend on these options. llvm-svn: 73581
OpenPOWER on IntegriCloud