summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Disable accelerator tables when compiling with LTO.Bill Wendling2012-11-131-9/+16
| | | | | | | | LTO doesn't generate correct accelerator tables. This is due to the general lack correct of debug info for LTO. Disable it when using LTO. <rdar://problem/12401423> llvm-svn: 167799
* PR14303: Add a NoDriverOption flag to those options which are not accepted byRichard Smith2012-11-092-7/+7
| | | | | | | the driver (the options defined in CC1Options.td) and exclude their help from "clang --help". llvm-svn: 167638
* Implement -mstrict-align using '-backend-option -arm-strict-align' as this savesChad Rosier2012-11-091-1/+2
| | | | | | us from having to make any backend changes. llvm-svn: 167623
* [driver] Add a -mstrict-align compiler option for ARM targets.Chad Rosier2012-11-091-0/+3
| | | | | | rdar://12340498 llvm-svn: 167619
* Remove old driver code to grab the iOS simulator version from the -D option.Bob Wilson2012-11-092-81/+7
| | | | | | | We can now rely on the -mios-simulator-version-min command line option and remove the awful hack. <rdar://problem/10304510> llvm-svn: 167603
* Remove more code related to invoking llvm-gcc. <rdar://problem/11991320>Bob Wilson2012-11-082-27/+0
| | | | llvm-svn: 167598
* Driver/Darwin: The -arch argument values aren't exactly the arch names from aDaniel Dunbar2012-11-082-1/+16
| | | | | | | | triple. - Translate the special case of powerpc to its expected -arch name. llvm-svn: 167571
* Rip out a bunch of code for invoking gcc from clang.Bob Wilson2012-11-086-796/+35
| | | | llvm-svn: 167567
* Remove code to fall back to llvm-gcc for i386 kexts.Bob Wilson2012-11-082-16/+3
| | | | | | More cleanups to follow in separate commits.... llvm-svn: 167566
* [Driver] Fix -Wp,-MMD pr13959Michael J. Spencer2012-11-071-3/+3
| | | | llvm-svn: 167559
* clang/lib/Driver/Tools.cpp: Fix abuse of StringRef.NAKAMURA Takumi2012-11-061-1/+1
| | | | llvm-svn: 167494
* Follow-up for r167411 to un-break ASan on Mac. Move SanitizerArgs to a ↵Alexey Samsonov2012-11-063-116/+138
| | | | | | header file and use it on Darwin toolchain. llvm-svn: 167460
* Per discussion on cfe-commits, treat -faddress-sanitizer,Richard Smith2012-11-061-13/+27
| | | | | | | | | -fno-address-sanitizer, -fthread-sanitizer, -fno-thread-sanitizer, and -fcatch-undefined-behavior as deprecated: produce a warning if they are used pointing to the corresponding -fsanitize= option. In passing add the missing '-' to some diagnostics. llvm-svn: 167429
* Use the individual -fsanitize=<...> arguments to control which of the UBSanRichard Smith2012-11-051-6/+0
| | | | | | | checks to enable. Remove frontend support for -fcatch-undefined-behavior, -faddress-sanitizer and -fthread-sanitizer now that they don't do anything. llvm-svn: 167413
* Add -fsanitize=<sanitizers> argument to driver and frontend, and addRichard Smith2012-11-051-21/+162
| | | | | | | | | | | | -fno-sanitize=<sanitizers> argument to driver. These allow ASan, TSan, and the various UBSan checks to be enabled and disabled separately. Right now, the different modes can't be combined, but the intention is that combining UBSan and the other sanitizers will be permitted in the near future. Currently, the UBSan checks will all be enabled if any of them is; that will be fixed by the next patch. llvm-svn: 167411
* Improve x86 android support:Rafael Espindola2012-11-021-5/+8
| | | | | | | | * -Bsymbolic must be added for x86 as well. * Default CPU name also set to 'core2' for x86 android. Patch by Edwin Vane. llvm-svn: 167307
* Add -lpthread when building with Ubsan on Linux, in preparation for making ↵Richard Smith2012-11-021-0/+1
| | | | | | libclang-rt.ubsan pull in sanitizer_common, which in turn depends on pthreads. llvm-svn: 167305
* Remove first argument from Arg::getValue; it's been unused since r105760.Richard Smith2012-11-016-121/+121
| | | | llvm-svn: 167211
* [driver] Remove an extra space with the -iprefix option, so thatChad Rosier2012-10-311-1/+1
| | | | | | | matching works correctly. Part of rdar://12329974 llvm-svn: 167173
* [driver] Remove an extra space with the -internal-externc-isystem option, soChad Rosier2012-10-311-1/+1
| | | | | | | that matching works correctly. Part of rdar://12329974 llvm-svn: 167161
* getArchTypeForDarwinArchName is only used in the clang driver, copy it there.Rafael Espindola2012-10-314-5/+38
| | | | | | I will remove it from llvm in the next commit. llvm-svn: 167156
* [driver] Completely rework how superfluous options are stripped out of the crashChad Rosier2012-10-312-53/+102
| | | | | | | | | | | | diagnostics script. This addresses the FIXME pertaining to quoted arguments. We also delineate between those flags that have an argument (e.g., -D macro, -MF file) and those that do not (e.g., -M, -MM, -MG). Finally, we add the -dwarf-debug-flags to the list of flags to be removed. rdar://12329974 llvm-svn: 167152
* Fix if-else braces layout accordingly to the style guide.Simon Atanasyan2012-10-311-2/+1
| | | | llvm-svn: 167118
* Extend -Bprefix functionality and make it closer to gcc. If the "prefix"Simon Atanasyan2012-10-311-6/+13
| | | | | | | | | | is not a directory, Driver::GetProgramPath() routine does not try to append the program name as a "path component" to it. It just joins the "prefix" with the program name and checks the resulting path existence. The patch reviewed by Rafael Espindola. llvm-svn: 167114
* Remove the -ccc-no-clang option.Rafael Espindola2012-10-311-3/+1
| | | | llvm-svn: 167093
* Remove ccc-no-clang-cpp, which is also dead now.Rafael Espindola2012-10-301-8/+3
| | | | llvm-svn: 167062
* [driver] Older versions of ld expect '-L<dir>' not '-L <dir>'. In Xcode4 andChad Rosier2012-10-301-8/+30
| | | | | | | | later, '-L <dir>' is allowed, but rewrite these in the driver as '-L<dir>' to maintain backward compatibility. The same is true for the -I option. rdar://12366753 llvm-svn: 167054
* In the past "production" clang builds would not be used for c++, andRafael Espindola2012-10-301-10/+1
| | | | | | | | | we had the -ccc-clang-cxx and -ccc-no-clang-cxx options to force them on or off for testing. Clang c++ support is now production quality and these options are dead. llvm-svn: 166986
* Remove a bit of dead code.Rafael Espindola2012-10-292-20/+0
| | | | llvm-svn: 166983
* 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
* [driver] Before applying the working directory check if the input pathArgyrios Kyrtzidis2012-10-261-2/+2
| | | | | | is absolute. llvm-svn: 166808
* [options] Fix mishandling of aliased options that was introduced in r166444.Argyrios Kyrtzidis2012-10-261-8/+18
| | | | llvm-svn: 166801
* -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-228-51/+135
| | | | | | | | | | | | | | 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
* Silence warning about && in ||.Benjamin Kramer2012-10-211-1/+1
| | | | llvm-svn: 166391
* Add support of MIPS n32 ABI to the Clang driver. The fix builds correct ↵Simon Atanasyan2012-10-213-16/+54
| | | | | | | | 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-193-7/+13
| | | | llvm-svn: 166348
* [Options] make Option a value type.Michael J. Spencer2012-10-195-54/+58
| | | | llvm-svn: 166347
* Revert r166223 and the subsequent commits that depend on it, r166230 & r166235.Argyrios Kyrtzidis2012-10-187-63/+60
| | | | | | 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-183-7/+13
| | | | llvm-svn: 166230
* [Options] make Option a value type.Michael J. Spencer2012-10-185-53/+50
| | | | llvm-svn: 166223
* 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-152-11/+52
| | | | llvm-svn: 165988
* Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6.Nico Weber2012-10-152-52/+11
| | | | | | See PR14013. llvm-svn: 165962
* Revert "[Options] make Option a value type."Eric Christopher2012-10-105-50/+53
| | | | | | | | | | | | | Author: Michael J. Spencer <bigcheesegs@gmail.com> Date: Wed Oct 10 21:48:26 2012 +0000 [Options] make Option a value type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165663 91177308-0d34-0410-b5e6-96231b3b80d8 This reverts commit 0464fd5e4ce2193e786e5adcab6b828f9366dae3. llvm-svn: 165667
* [Options] make Option a value type.Michael J. Spencer2012-10-105-53/+50
| | | | llvm-svn: 165663
OpenPOWER on IntegriCloud