summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Reverted back the changes made in 166868 and in 166869Mahesha S2012-10-271-1/+0
| | | | llvm-svn: 166871
* -------------------------------------------------Mahesha S2012-10-271-0/+2
| | | | | | | | | | | | | | | | | | | | Feature: OpenMP support in CLANG: Sub-Feature: Support for option -fopenmp Files Changed/Added: * include/clang/Driver/Options.td (C) * include/clang/Basic/LangOptions.def (C) * lib/Driver/Tools.cpp (C) * lib/Frontend/CompilerInvocation.cpp (C) Test Cases Changed/Added: * test/Driver/clang_fopenmp_opt.c (A) ------------------------------------------------- llvm-svn: 166868
* -fcatch-undefined-behavior checking for appropriate vptr value: Clang ↵Richard Smith2012-10-251-1/+3
| | | | | | CodeGen side. llvm-svn: 166661
* Handle -pthread, -pg and -shared correctly on bitrig.Rafael Espindola2012-10-231-2/+8
| | | | | | Patch by David Hill. llvm-svn: 166483
* [Options] Add prefixes to options.Michael J. Spencer2012-10-221-3/+3
| | | | | | | | | | | | | | Each option has a set of prefixes. When matching an argument such as -funroll-loops. First the leading - is removed as it is a prefix. Then a lower_bound search for "funroll-loops" is done against the option table by option name. From there each option prefix + option name combination is tested against the argument. This allows us to support Microsoft style options where both / and - are valid prefixes. It also simplifies the cases we already have where options come in both - and -- forms. Almost every option for gnu-ld happens to have this form. llvm-svn: 166444
* driver/Darwin: Default to AAPCS for M-class CPUs.Daniel Dunbar2012-10-221-1/+10
| | | | | | | - This is an assumption that is currently hardwired into the backend, we need to do this in order for the frontend and backend to agree. llvm-svn: 166428
* Add support of MIPS n32 ABI to the Clang driver. The fix builds correct ↵Simon Atanasyan2012-10-211-6/+23
| | | | | | | | library/object files paths and passes appropriate command line options to the linker if user provides -mabi=n32 option. The patch reviewed by Rafael Espindola. llvm-svn: 166389
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-191-2/+8
| | | | llvm-svn: 166348
* Revert r166223 and the subsequent commits that depend on it, r166230 & r166235.Argyrios Kyrtzidis2012-10-181-8/+2
| | | | | | This seems to have introduced assertion hit when building compiler-rt. llvm-svn: 166245
* Add a new option for and disable column number information as thereEric Christopher2012-10-181-0/+2
| | | | | | | | | | are no known current users of column info. Robustify and fix up a few tests in the process. Reduces the size of debug information by a small amount. Part of PR14106 llvm-svn: 166236
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-181-2/+8
| | | | llvm-svn: 166230
* GNUstep runtime version default to 1.6, generate correct property attributeDavid Chisnall2012-10-161-1/+1
| | | | | | metadata. llvm-svn: 166023
* Un-revert r164907 and r164902 (+ follow-ups), 10.6 build fix to follow.Daniel Dunbar2012-10-151-9/+22
| | | | llvm-svn: 165988
* Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6.Nico Weber2012-10-151-22/+9
| | | | | | See PR14013. llvm-svn: 165962
* [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
* Use getArch instead of getArchName + string compare.Rafael Espindola2012-10-071-14/+14
| | | | llvm-svn: 165370
* Driver: Link crtfastmath.o if it's available and -ffast-math is specified.Benjamin Kramer2012-10-041-0/+3
| | | | | | | | | | | | 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
* During LTO, we call 'dsymutil' when we compile source files. This necessitatesBill Wendling2012-10-021-3/+16
| | | | | | | | | | 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-291-9/+22
| | | | llvm-svn: 164907
* Add armv7s and some other arm variants supported by Mach-O files.Bob Wilson2012-09-291-0/+4
| | | | llvm-svn: 164905
* Modern objcective-C translator. When doing rewriting, Do not Fariborz Jahanian2012-09-281-1/+4
| | | | | | | use the integrated pre-processor, preprocess in objective-c++ mode. // rdar://12189793. llvm-svn: 164836
* 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
* [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
* 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 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
* This patch introduces A15 as a target in Clang.Silviu Baranga2012-09-131-2/+3
| | | | 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
* Rename ANDROIDEABI to Android.Logan Chien2012-09-021-5/+5
| | | | | | | | | | | | | 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
* 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
* Emit .gcda files as absolute paths instead of relative paths.Bill Wendling2012-08-301-1/+3
| | | | | | | | | | | | This improves compatibility with gcc in this regard, and this file generation can be ameliorated with GCOV_PREFIX and GCOV_PREFIX_STRIP. It's also useful if your build directory doesn't specify -o <abspath> and it uses a recursive make structure, so it's not relative to the toplevel. Patch by Joshua Cranmer! <rdar://problem/12179524> llvm-svn: 162884
* Cleanup FreeBSD linking and add support for -pie.Roman Divacky2012-08-281-32/+38
| | | | | | Path by Brooks Davis, tests and fixes from me. llvm-svn: 162761
* MIPS: Use -G option to specify MIPS section threshold. Translate itSimon Atanasyan2012-08-271-0/+7
| | | | | | | to the -mllvm -mips-ssection-threshold=<value> pair and pass to the frontend. The patch suggested by Carl Norum. llvm-svn: 162697
* [driver] Add support for the --param ssp-buffer-size= driver option.Chad Rosier2012-08-211-0/+12
| | | | | | PR9673 llvm-svn: 162285
* Screw around with ObjCRuntime some more, changing theJohn McCall2012-08-211-3/+2
| | | | | | | | diagnostics for bad deployment targets and adding a few more predicates. Includes a patch by Jonathan Schleifer to enable ARC for ObjFW. llvm-svn: 162252
* Fix -Wl,--no-demangle to actually pass the flag to the linker on Linux insteadNick Lewycky2012-08-171-0/+3
| | | | | | of silently dropping it on the floor. llvm-svn: 162075
* Followup to r161546, to unbreak linking on Bitrig. Patch by David Hill.Eli Friedman2012-08-091-0/+4
| | | | llvm-svn: 161630
* clang support for Bitrig (an OpenBSD fork); patch by David Hill.Eli Friedman2012-08-081-0/+137
| | | | llvm-svn: 161546
* Don't complain about -fobjc-link-runtime being unused with -fobjc-arc.Bob Wilson2012-08-071-1/+3
| | | | | | | If you build with -fobjc-arc, then -fobjc-link-runtime is implied but we don't need to warn about it being unused in that case. rdar://12039965 llvm-svn: 161444
OpenPOWER on IntegriCloud