summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* The clang driver has a fairly fancy support for executing gcc instead ofRafael Espindola2012-10-091-38/+0
| | | | | | | | | | | | | | clang itself. This dates back to clang's early days and while it looks like some of it is still used (for kext for example), other parts are probably dead. Remove the -ccc-clang-archs option and associated code. I don't think there is any remaining setup where clang doesn't support an architecture but it can expect an working gcc cross compiler to be available. A nice side effect is that tests no longer need to differentiate architectures that are included in production builds of clang and those that are not. llvm-svn: 165545
* [driver] Remove redundant cases due to overlapping commits between Ted ↵Chad Rosier2012-10-091-2/+0
| | | | | | | | (r165531, 165532) and I (r165534), but leave the test case in place. llvm-svn: 165537
* -fcatch-undefined-behavior: emit calls to the runtime library whenever one ↵Richard Smith2012-10-091-0/+18
| | | | | | of the checks fails. llvm-svn: 165536
* [driver] Remove the -W[no-][int-conversion|constant-conversion|enum-conversion]Chad Rosier2012-10-091-0/+2
| | | | | | | options when clang invokes cc1plus for i386 kexts. rdar://12459188 llvm-svn: 165534
* Don't forward -Wenum-conversion to cc1plus.Ted Kremenek2012-10-091-0/+1
| | | | llvm-svn: 165532
* Don't forward -Wint-conversion to cc1plus.Ted Kremenek2012-10-091-0/+1
| | | | llvm-svn: 165531
* Make Bitrig's clang understand -stdlib= correctly.Chandler Carruth2012-10-081-8/+32
| | | | | | | | | With this patch Bitrig can use a different c++ library without pain and within the normal commandline parameters. Original patch by David Hill, with lots of fixes and cleanup by me. llvm-svn: 165430
* Use getArch instead of getArchName + string compare.Rafael Espindola2012-10-073-22/+22
| | | | llvm-svn: 165370
* Use getArch instead of getArchName.Rafael Espindola2012-10-072-8/+2
| | | | | | | | | | | | The darwin change should be a nop since Triple::getArchTypeForDarwinArchName doesn't know about amd64. If things like amd64-mingw32 are to be rejected, we should print a error earlier on instead of silently using the wrong abi. Remove old comment that looks out of place, this is "in clang". llvm-svn: 165368
* Driver: Link crtfastmath.o if it's available and -ffast-math is specified.Benjamin Kramer2012-10-042-0/+25
| | | | | | | | | | | | crtfastmath.o contains routines to set the floating point flags to a faster, unsafe mode. Linking it in speeds up code dealing with denormals significantly (PR14024). For now this is only enabled on linux where I can test it and crtfastmath.o is widely available. We may want to provide a similar file with compiler-rt eventually and/or enable it on other platforms too. llvm-svn: 165240
* Prefer StringRef::startswith to the strncmp/strlen contraption.Benjamin Kramer2012-10-041-1/+2
| | | | | | This may be slightly more efficient and is definitely more readable. llvm-svn: 165217
* Fix typo in comments.Logan Chien2012-10-041-2/+2
| | | | llvm-svn: 165216
* Fix invalid reads by memcmp.Benjamin Kramer2012-10-031-1/+1
| | | | | | | Str may be smaller than Start->Name here. Use strncmp to avoid scanning past the end. Found by valgrind. llvm-svn: 165157
* [Options] Store the owning OptTable in Option so it can construct Group and ↵Michael J. Spencer2012-10-032-11/+8
| | | | | | Alias. llvm-svn: 165150
* Remove useless parameter "WantFile" from Driver::GetProgramPath().Simon Atanasyan2012-10-032-14/+8
| | | | | | | | | This parameter is useless because nowhere used explicitly and always gets its default value - "false". The patch reviewed by Rafael Espindola. llvm-svn: 165149
* Implement Adnroid MIPS toolchain support:Simon Atanasyan2012-10-031-4/+33
| | | | | | | | | | 1. Add mipsel-linux-android to the list of valid MIPS target triples. 2. Add <gcc install path>/mips-r2 to the list of toolchain specific path prefixes if target is mipsel-linux-android. The patch reviewed by Logan Chien. llvm-svn: 165131
* Fix typo in comments.Logan Chien2012-10-031-1/+1
| | | | llvm-svn: 165105
* During LTO, we call 'dsymutil' when we compile source files. This necessitatesBill Wendling2012-10-022-4/+18
| | | | | | | | | | clang specifying a temporary file that it later cleans up so that it can survive the linking stage. However, when we compile object files during LTO we don't call 'dsymutil'. That's done at a different stage (if at all). We rely upon the linker to specify a unique name for the temporary file it generates. <rdar://problem/12401423> llvm-svn: 165028
* Add Clang support for iOS6.Bob Wilson2012-09-292-11/+52
| | | | llvm-svn: 164907
* Add armv7s and some other arm variants supported by Mach-O files.Bob Wilson2012-09-293-2/+22
| | | | llvm-svn: 164905
* Modern objcective-C translator. When doing rewriting, Do not Fariborz Jahanian2012-09-282-1/+5
| | | | | | | use the integrated pre-processor, preprocess in objective-c++ mode. // rdar://12189793. llvm-svn: 164836
* Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. ↵Sylvestre Ledru2012-09-271-2/+2
| | | | | | See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164766 llvm-svn: 164769
* Fix a typo 'iff' => 'if'Sylvestre Ledru2012-09-271-2/+2
| | | | llvm-svn: 164766
* Allow -MF to be used in combination with -E -M or -E -MM.Benjamin Kramer2012-09-261-3/+3
| | | | | | Fixes PR13851. Patch by Dimitry Andric! llvm-svn: 164717
* [Options] Store the option ID in OptTable::Info.Michael J. Spencer2012-09-254-6/+6
| | | | llvm-svn: 164644
* [driver] Add support for the -fno-fast-math option.Chad Rosier2012-09-251-11/+27
| | | | | | rdar://12299433 llvm-svn: 164638
* [analyzer] Really turn on dynamic-bifurcation on by default.Anna Zaks2012-09-241-2/+0
| | | | | | | Thanks to Byoungyoung for realizing taht we are not passing the default option correctly. llvm-svn: 164543
* Implement ToolChain::IsUnwindTablesDefault to reduce code duplication a bit.Rafael Espindola2012-09-233-10/+4
| | | | llvm-svn: 164473
* On Hexagon getArchName() never returns x86_64, simplify the function.Rafael Espindola2012-09-221-3/+1
| | | | llvm-svn: 164470
* Fix pr13749. There is still a lot of code using getArchName that should beRafael Espindola2012-09-221-1/+1
| | | | | | using getArch, but I will try to fix them one at time to add tests. llvm-svn: 164460
* Add four new command line options for MIPS CPU selection:Simon Atanasyan2012-09-211-2/+21
| | | | | | | | -mips32, -mips32r2, -mips64, -mips64r2. The patch reviewed by Eric Christopher. llvm-svn: 164410
* Add C/C++ header locations for the Freescale SDK.Hal Finkel2012-09-181-0/+8
| | | | | | | | | The Freescale SDK is based on OpenEmbedded, and this might be useful for other OpenEmbedded-based configurations as well. With minor modifications, patch by Tobias von Koch! llvm-svn: 164177
* Add e500mc and e5500 to the list of valid PPC CPU names.Hal Finkel2012-09-181-0/+2
| | | | | | Patch by Tobias von Koch! llvm-svn: 164176
* Do not use "lib32" directory to create a library/object filesSimon Atanasyan2012-09-141-7/+24
| | | | | | | | paths when target is MIPS 32-bit. The patch reviewed by Chandler Carruth. llvm-svn: 163898
* Improve the driver title as shown in the --help message. <rdar://12297538>Bob Wilson2012-09-141-1/+1
| | | | llvm-svn: 163870
* This patch introduces A15 as a target in Clang.Silviu Baranga2012-09-133-4/+6
| | | | llvm-svn: 163804
* Conditionally parse documentation comments in system headers byTed Kremenek2012-09-131-0/+3
| | | | | | | | | | passing -fretain-comments-from-system-headers. By default, the compiler no longer parses such documentation comments, as they can result in a noticeable compile time/PCH slowdown. Fixes <rdar://problem/11860820>. llvm-svn: 163778
* Properly link libpthread_p when using profiling on OpenBSD.Eric Christopher2012-09-131-3/+10
| | | | | | Patch by Brad Smith. llvm-svn: 163777
* Claim --param ssp-buffer-size, even if the stack protector is notJoerg Sonnenberger2012-09-121-6/+8
| | | | | | active. llvm-svn: 163705
* Make -faddress-sanitizer on Android link to the new-style runtime.Evgeniy Stepanov2012-09-121-6/+5
| | | | llvm-svn: 163689
* Wrong crtbegin/crtend pair used for PIE on Android.Evgeniy Stepanov2012-09-101-2/+6
| | | | | | | | Android uses the same flavour of crt*.o for PIE and non-PIE executables, and a different one for DSOs. GNU/Linux, on the other hand, uses one set of crt*.o for non-PIE executables, and another for both PIE executables and DSOs. llvm-svn: 163500
* MIPS: Use -march=arch option to select either generic MIPS ISA,Simon Atanasyan2012-09-101-56/+38
| | | | | | | | or the name of a particular processor. The patch reviewed by Douglas Gregor. llvm-svn: 163492
* Link to crtend.S when PIE in the FreeBSD driver. Patch by Brooks Davis!Roman Divacky2012-09-071-3/+3
| | | | llvm-svn: 163388
* Apply some driver improvements for freebsd-*-mips*.Eric Christopher2012-09-051-8/+39
| | | | | | Patch by Brooks Davis. llvm-svn: 163249
* Revert r163076 per chandlerc's request.Joao Matos2012-09-041-34/+22
| | | | llvm-svn: 163146
* Android standalone toolchain support.Evgeniy Stepanov2012-09-031-8/+19
| | | | | | | | This change adds detection of C++ headers and libraries paths when building with the standalone toolchain from Android NDK. They are in a slightly unusual place. llvm-svn: 163109
* Rename ANDROIDEABI to Android.Logan Chien2012-09-022-6/+6
| | | | | | | | | | | | | Most of the code guarded with ANDROIDEABI are not ARM-specific, and having no relation with arm-eabi. Thus, it will be more natural to call this environment "Android" instead of "ANDROIDEABI". Note: We are not using ANDROID because several projects are using "-DANDROID" as the conditional compilation flag. llvm-svn: 163088
* Fixed typo causing tests to fail on non-MSVC machines.Joao Matos2012-09-011-1/+1
| | | | llvm-svn: 163077
* Refactored the Windows headers location lookup code. Expose it so standalone ↵Joao Matos2012-09-011-22/+34
| | | | | | tools can have access to it. llvm-svn: 163076
* Reland r160052: Default to -std=c++11 on Windows.Nico Weber2012-08-301-2/+5
| | | | | | Also update the tests that rely on c++98 to explicitly mention that. llvm-svn: 162890
OpenPOWER on IntegriCloud