summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* [driver] Have the crash diagnostics print the clang version information.Chad Rosier2012-05-231-0/+3
| | | | | | rdar://11518308 llvm-svn: 157346
* [driver] When creating the compiler invocation out of command-lineArgyrios Kyrtzidis2012-05-212-8/+12
| | | | | | | | arguments, force use of clang frontend for the driver. Fixes rdar://11356765. llvm-svn: 157205
* Tell the driver that CUDA is a C++-like language, so that we get C++Peter Collingbourne2012-05-201-0/+1
| | | | | | header searches with CUDA. llvm-svn: 157172
* [driver] Remove obsolete support for -A link option. The standard -A option isChad Rosier2012-05-161-5/+2
| | | | | | | | | | | | used by the preprocessor. Apple's GCC also supported a -A option for linking. The ld man page has the following: -A basefile - Obsolete incremental load format. This option is obsolete. Nick Kledzik confirms this option is no longer needed/supported. rdar://11455614 llvm-svn: 156965
* Rename the driver option to -mno-implicit-float, per Eli's suggestion.Chad Rosier2012-05-161-1/+1
| | | | llvm-svn: 156950
* Pulls diagnostics for temp file handling into the common diagnostic kinds.Manuel Klimek2012-05-161-1/+1
| | | | llvm-svn: 156947
* [driver] Allow the driver to directly accept the -no-implicit-float option, ↵Chad Rosier2012-05-161-0/+3
| | | | | | | | | so that the generation of implicit floating point instructions can be disable for ARM. rdar://11409142 llvm-svn: 156942
* [tsan] add ThreadSanitizer linker flags on Linux and also copy the tsan-rt ↵Kostya Serebryany2012-05-161-0/+22
| | | | | | into the appropriate place at build time llvm-svn: 156906
* Add the Objective-C runtime linking arguments after user-specifiedDouglas Gregor2012-05-151-2/+2
| | | | | | linker arguments. Fixes <rdar://problem/11417441>. llvm-svn: 156853
* Do not link with Objective-C libraries with -nostdlib or -nodefaultlibs.Bob Wilson2012-05-151-1/+3
| | | | | | <rdar://problem/11433499> llvm-svn: 156841
* add embedded linux variants that occur in the fieldGabor Greif2012-05-151-2/+4
| | | | llvm-svn: 156813
* Teach the driver on Linux to respect -nodefaultlibs.Chandler Carruth2012-05-141-13/+16
| | | | | | Patch from Andrew C. Morrow. llvm-svn: 156771
* Hexagon V5 FP support.Sirish Pande2012-05-101-1/+7
| | | | llvm-svn: 156567
* Roll logic into a single if statement, per David's suggestion.Chad Rosier2012-05-091-3/+2
| | | | llvm-svn: 156502
* Use the triple directly, rather then getTriple().Chad Rosier2012-05-091-1/+1
| | | | llvm-svn: 156501
* Now the proper fix for r156497. Sorry for the churn.Chad Rosier2012-05-091-4/+5
| | | | llvm-svn: 156498
* Move the iOSVersionMin string to a header so as to avoid a dangling pointer.Chad Rosier2012-05-092-1/+4
| | | | llvm-svn: 156497
* [driver] Use the iOS target triple to infer the deployment target.Chad Rosier2012-05-091-2/+8
| | | | | | rdar://11409204 llvm-svn: 156489
* Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502>Bob Wilson2012-05-091-1/+1
| | | | llvm-svn: 156487
* add -fbounds-checking option.Nuno Lopes2012-05-081-0/+9
| | | | | | | | When enabled, clang generates bounds checks for array and pointers dereferences. Work to follow in LLVM's backend. OK'ed by Chad; thanks for the review. llvm-svn: 156431
* StringRefize code because we're good even when we crash.Chad Rosier2012-05-041-6/+6
| | | | | | Patch by Jordy Rose. llvm-svn: 156172
* Fix -Wlarge-by-value-copy option handling in the driver.Jean-Daniel Dupas2012-05-041-5/+5
| | | | | | CC1 supports only the joined format. llvm-svn: 156161
* This patch adds a new Clang compiler flag "-gline-tables-only".Alexey Samsonov2012-05-041-0/+2
| | | | | | | | | | | | | | It reduces the amount of emitted debug information: 1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram, DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only. 2) .debug_str contains only function names. 3) No debug data for types/namespaces/variables is emitted. 4) The data in .debug_line is enough to produce valid stack traces with function names and line numbers. Reviewed by Eric Christopher. llvm-svn: 156160
* Remove obsolete code for finding a fallback iOS SDK. <rdar://problem/11378535>Bob Wilson2012-05-041-3/+0
| | | | llvm-svn: 156149
* [driver - crash diagnostics] Convert the flags back to an array of strings ↵Chad Rosier2012-05-031-1/+13
| | | | | | | | | and use array_lengthof. Also, append the new filename with correct preprocessed suffix. Last part of rdar://11285725 llvm-svn: 156117
* Use array_lengthof instead of sizeof trickery.Chad Rosier2012-05-031-2/+1
| | | | llvm-svn: 156104
* [driver - crash diagnostics] Only write the failing command in the script.Chad Rosier2012-05-031-1/+6
| | | | | | Part of rdar://11285725 llvm-svn: 156096
* Canonicalize loop.Chad Rosier2012-05-031-1/+2
| | | | llvm-svn: 156093
* [driver crash diagnostics] Remove more flags that reference absolute paths thatChad Rosier2012-05-031-3/+16
| | | | | | | aren't necessary to reproduce the clang crash. Part of rdar://11285725 llvm-svn: 156079
* Rip out old code for finding libraries in GCC's directories.Bob Wilson2012-05-033-83/+0
| | | | llvm-svn: 156058
* Driver: Turn the default value for -fmath-errno into a proper target hook ↵Benjamin Kramer2012-05-022-4/+12
| | | | | | | | | | | and disable it by default on more platforms. For now -fno-math-errno is the default on BSD-derived platforms (Darwin, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD). If the default is not right for your platform, please yell. I only verified the result with the default compilers on Darwin and FreeBSD. llvm-svn: 155990
* Fix forwarding of -fpack-struct from driver to CC1, and add a test.James Molloy2012-05-021-4/+4
| | | | | | | | -fpack-struct's handling has changed in CC1 (one of only two flags that needed changing) because the driver treats "-fpack-struct" as a boolean flag, and CC1 (did) treat it as an option with a separated value. This change causes -fpack-struct=X to be forwarded correctly to -fpack-struct=X instead of erroneously to "-fpack-struct X" llvm-svn: 155981
* Speculatively fix windows cmake builders.Andrew Trick2012-05-021-1/+1
| | | | | | Really just a wild stab in the dark. llvm-svn: 155974
* Unify Options.td and CC1Options.td, in a first step towards unifying the ↵James Molloy2012-05-014-40/+3
| | | | | | | | serialization logic in Frontend and Driver. Reviewed by Eric, Doug and Chandler, and here: http://llvm.org/reviews/r/7/ llvm-svn: 155916
* Add support for openSUSE 12.2, from Ismail Donmez!Douglas Gregor2012-04-301-1/+3
| | | | llvm-svn: 155860
* [driver] Don't try to set the deployment target when there is no boundChad Rosier2012-04-272-4/+4
| | | | | | | | | architecture; this was happening for tools such as lipo and dsymutil. Also, if no -arch option has been specified, set the architecture based on the TC default. rdar://11329656 llvm-svn: 155730
* Fix logic such that we only call getToolChain once. No functional changeChad Rosier2012-04-271-1/+3
| | | | | | intended. llvm-svn: 155719
* Remove redundant calls to BAA->getArchName(). No functional changeChad Rosier2012-04-271-2/+3
| | | | | | intended. llvm-svn: 155718
* Revert 155679; Not a typo.Chad Rosier2012-04-271-1/+1
| | | | llvm-svn: 155708
* Typo.Chad Rosier2012-04-271-1/+1
| | | | llvm-svn: 155679
* MIPS: Add support for 64-bit MIPS targets: mips64 / mips64el.Simon Atanasyan2012-04-261-1/+36
| | | | llvm-svn: 155656
* Fix a long-standing bug where Clang had a different default from GCC onChandler Carruth2012-04-261-8/+7
| | | | | | | | | | | | | | | Linux and other (non-Darwin) platforms and have it use -fmath-errno by default (for better or worse). Darwin has seen the light here and uses -fno-math-errno by default, this patch preserves that. If any maintainers for a non-Linux platform would also like to opt-in to -fno-math-errno by default, I'm happy to add folks, but we're currently getting buts and misleading comparisons with GCC due to this difference in behavior on Linux at least. llvm-svn: 155607
* Clang driver support for linking on Android.Evgeniy Stepanov2012-04-251-36/+60
| | | | llvm-svn: 155541
* Fix default cpu for -march=armv5e.Evgeniy Stepanov2012-04-251-1/+1
| | | | llvm-svn: 155540
* Only pass -mcpu, -march, -mfpu to linux-as on ARM.Evgeniy Stepanov2012-04-241-4/+4
| | | | llvm-svn: 155431
* Revert r155363, due to the underlying patches in LLVM causing regressionChandler Carruth2012-04-231-6/+0
| | | | | | test suite failures. llvm-svn: 155371
* Hexagon V5 (floating point) support in cfe.Sirish Pande2012-04-231-0/+6
| | | | llvm-svn: 155363
* Link with Foundation whenever -fobjc-link-runtime is used. <rdar://10976177>Bob Wilson2012-04-211-2/+2
| | | | | | | The check for excluding libarclite on i386 MacOSX should not apply to Foundation. llvm-svn: 155263
* In r135308, -save-temps was modified to prevent a temporary file fromChad Rosier2012-04-201-7/+16
| | | | | | | | | | | | | | | | overwriting the input file. For example, clang -c foo.s -o foo.o -save-temps Unfortunately, the original patch didn't compare the paths of the input and output files. Thus, something like the following would fail to create foo.s. cd /tmp/obj clang -c ../src/foo.s -o foo.o -save-temps rdar://11252615 llvm-svn: 155224
* When generating the clang crash diagnostic script, strip out the -o flag.Chad Rosier2012-04-201-2/+3
| | | | | | | Add a FIXME comment. rdar://11283560 llvm-svn: 155207
OpenPOWER on IntegriCloud