summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Wrong crtbegin/crtend pair used for PIE on Android.Evgeniy Stepanov2012-09-101-0/+17
| | | | | | | | 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-102-0/+10
| | | | | | | | or the name of a particular processor. The patch reviewed by Douglas Gregor. llvm-svn: 163492
* Attempt to pacify Windows buildbots.Roman Divacky2012-09-071-1/+1
| | | | llvm-svn: 163389
* Link to crtend.S when PIE in the FreeBSD driver. Patch by Brooks Davis!Roman Divacky2012-09-071-0/+14
| | | | llvm-svn: 163388
* Tighten up regexps some more.Jakob Stoklund Olesen2012-09-061-4/+4
| | | | | | | These tests were failing for me because the .* was greedily matching up to the /libexec/ld-elf.so.1" later on the same line. llvm-svn: 163328
* Add test missed in previous commit.Eric Christopher2012-09-051-0/+56
| | | | llvm-svn: 163253
* Try to fix the windows bots.Eric Christopher2012-09-051-4/+4
| | | | llvm-svn: 163252
* Apply some driver improvements for freebsd-*-mips*.Eric Christopher2012-09-051-1/+29
| | | | | | Patch by Brooks Davis. llvm-svn: 163249
* test/Driver/android-standalone.cpp: Fix test failure on Windowns, again.NAKAMURA Takumi2012-09-031-1/+1
| | | | llvm-svn: 163114
* Fix test failure on Windowns.Evgeniy Stepanov2012-09-031-1/+1
| | | | llvm-svn: 163112
* Android standalone toolchain support.Evgeniy Stepanov2012-09-0316-8/+25
| | | | | | | | 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-021-0/+14
| | | | | | | | | | | | | 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
* Cleanup FreeBSD linking and add support for -pie.Roman Divacky2012-08-281-0/+24
| | | | | | Path by Brooks Davis, tests and fixes from me. llvm-svn: 162761
* Check for MIPS target availability for Driver/mips-as.c test.Simon Atanasyan2012-08-281-0/+2
| | | | llvm-svn: 162744
* MIPS: Use -G option to specify MIPS section threshold. Translate itSimon Atanasyan2012-08-271-0/+6
| | | | | | | to the -mllvm -mips-ssection-threshold=<value> pair and pass to the frontend. The patch suggested by Carl Norum. llvm-svn: 162697
* Tweak the ARC-requires-10.6 diagnostic according to Jordan's review.John McCall2012-08-271-1/+1
| | | | llvm-svn: 162651
* [driver] Add support for the --param ssp-buffer-size= driver option.Chad Rosier2012-08-211-0/+11
| | | | | | PR9673 llvm-svn: 162285
* Screw around with ObjCRuntime some more, changing theJohn McCall2012-08-211-3/+3
| | | | | | | | 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
* darwin/driver: Support using SDKROOT to define the default for -isysroot.Daniel Dunbar2012-08-171-0/+22
| | | | | | | - The SDKROOT environment variable is the de facto way to set the default SDK for a number of tools, join forces with them. llvm-svn: 162116
* Fix -Wl,--no-demangle to actually pass the flag to the linker on Linux insteadNick Lewycky2012-08-171-2/+9
| | | | | | of silently dropping it on the floor. llvm-svn: 162075
* Don't complain about -fobjc-link-runtime being unused with -fobjc-arc.Bob Wilson2012-08-071-0/+4
| | | | | | | 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
* PR13529: Don't crash if the driver sees an unused input file when running asRichard Smith2012-08-061-0/+6
| | | | | | | | | | 'clang-cpp'. For now, the test uses "REQUIRES: shell" to determine if the host system supports "ln -s", which it uses to create a 'clang-cpp' symlink. This is a bit hacky and should likely be directly supported by lit.cfg. llvm-svn: 161317
* Reduce temp file pollution in some test cases.Benjamin Kramer2012-08-032-2/+2
| | | | llvm-svn: 161237
* Add two more .keep files to avoid the missing of empty folders in git ↵Jiangning Liu2012-07-312-0/+0
| | | | | | repository. llvm-svn: 161043
* Add two .keep files to avoid the missing of empty folders in git repository.Jiangning Liu2012-07-312-0/+0
| | | | llvm-svn: 161042
* Support ARM hard float (arm-linux-gnueabihf).Jiangning Liu2012-07-3114-0/+33
| | | | llvm-svn: 161038
* No longer emitting a PCH file when using -fsyntax-only on a header file. ↵Aaron Ballman2012-07-311-0/+2
| | | | | | Fixes PR13343. llvm-svn: 161019
* Fix dynamic object linker for ARM GNUEABIHF.Jiangning Liu2012-07-301-0/+15
| | | | llvm-svn: 160958
* Provide correct linker command line options on FreeBSD 8 (GNU ld 2.15) and ↵David Chisnall2012-07-291-3/+11
| | | | | | | | on newer FreeBSD (GNU ld 2.17). Patch by Dimitry Andric! llvm-svn: 160931
* [driver crash diagnostics] Strip -internal-isystem and ↵Chad Rosier2012-07-251-0/+3
| | | | | | | | -internal-externc-isystem. rdar://11949066 llvm-svn: 160752
* [driver crash diagnostics] Strip -idirafter, -iprefix, -iwithprefix,Chad Rosier2012-07-251-1/+8
| | | | | | | -iwithprefixbefore, and -isystem options, per Matt's suggestion. rdar://11949066 llvm-svn: 160750
* [driver crash diagnostics] A few enhancements:Chad Rosier2012-07-251-2/+6
| | | | | | | | | -Strip -iquote and -M options. -Quote -D options to avoid problems with command line macros that include parens. rdar://11949066 llvm-svn: 160743
* Rename -fms-inline-asm to -fenable-experimental-ms-inline-asm.Chad Rosier2012-07-201-2/+2
| | | | llvm-svn: 160590
* Add a new flag, -fms-inline-asm, that enables the output of MS-style inlineChad Rosier2012-07-201-0/+3
| | | | | | | | | | | assembly. By default, we don't emit IR for MS-style inline assembly (see r158833 as to why). This is strictly for testing purposes and should not be enabled with the expectation that things will work. This is a temporary flag and will be removed once MS-style inline assembly is fully supported. llvm-svn: 160573
* Force the OS X version to 10.6 for old-style simulator builds.Bob Wilson2012-07-191-1/+3
| | | | | | | | | | | | | The hack of recognizing a -D__IPHONE_OS_VERSION_MIN_REQUIRED option in place of -mios-simulator-version-min leaves the Darwin version unspecified. It can be set separately with -mmacosx-version-min (which makes no sense) or inferred to match the host version (which is unpredictable and usually wrong). This really needs to get cleaned up, but in the meantime, force the OS X version to 10.6 so that the behavior is sane for the iOS simulator. Thanks for Argyrios for the patch. <rdar://problem/11858187> llvm-svn: 160484
* test/Driver/crash-report.c: Remove "REQUIRES: shell". env(1) can be used ↵NAKAMURA Takumi2012-07-171-2/+1
| | | | | | also with gnuwin32. llvm-svn: 160362
* [Win32] Rework crash-report since r145389.NAKAMURA Takumi2012-07-171-1/+1
| | | | | | | | | | | - lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions. - test/Driver/crash-report.c: Add REQUIRES:shell for now. FIXME: setenv should work also on Lit.InternalShellRunner. - test/Driver/crash-report.c: Remove XFAIL. Thanks to Chad, To point out the issue. llvm-svn: 160343
* test/Driver/crash-report.c: Small tweaks. 1) Use %t instead %T for TMP. 2) ↵NAKAMURA Takumi2012-07-171-4/+5
| | | | | | Set all of $TMPDIR, $TEMP and $TMP, or a certain host might set $TEMP. llvm-svn: 160342
* Add test case for tweaks to clang driver.David Chisnall2012-07-151-0/+8
| | | | llvm-svn: 160236
* Tests: check for target availability for target-specific tests.Jim Grosbach2012-07-092-0/+3
| | | | | | | | Lots of tests are using an explicit target triple w/o first checking that the target is actually available. Add a REQUIRES clause to a bunch of them. This should hopefully unbreak bots which don't configure w/ all targets enabled. llvm-svn: 159949
* objective-c: yank any use of "non-fragile abi" phraseFariborz Jahanian2012-07-091-2/+2
| | | | | | from diagnostics. // rdar://9657485 llvm-svn: 159943
* Re-apply r159875 with fixes.Ted Kremenek2012-07-071-0/+7
| | | | | | | - Split pedantic driver flag test into separate test file, and XFAIL on cygwin,mingw32 - Fix bug in tablegen logic where a missing '{' caused errors to be included in -Wpedantic. llvm-svn: 159892
* Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement ↵NAKAMURA Takumi2012-07-071-8/+0
| | | | | | | | | | -Weverything." It broke several builds. I suspect FileCheck might match assertion failure, even if clang/test/Misc/warning-flags.c passed the test. > 0. Program arguments: bin/./clang -### -pedantic -Wpedantic clang/test/Driver/warning-options.cpp llvm-svn: 159886
* Implement -Wpedantic and --no-pedantic to complement -Weverything.Ted Kremenek2012-07-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces some magic in tablegen to create a "Pedantic" diagnostic group which automagically includes all warnings that are extensions. This allows a user to suppress specific warnings traditionally under -pedantic used an ordinary warning flag. This also allows users to use #pragma to silence specific -pedantic warnings, or promote them to errors, within blocks of text (just like any other warning). -Wpedantic is NOT an alias for -pedantic. Instead, it provides another way to (a) activate -pedantic warnings and (b) disable them. Where they differ is that -pedantic changes the behavior of the preprocessor slightly, whereas -Wpedantic does not (it just turns on the warnings). The magic in the tablegen diagnostic emitter has to do with computing the minimal set of diagnostic groups and diagnostics that should go into -Wpedantic, as those diagnostics that already members of groups that themselves are (transitively) members of -Wpedantic do not need to be included in the Pedantic group directly. I went back and forth on whether or not to magically generate this group, and the invariant was that we always wanted extension warnings to be included in -Wpedantic "some how", but the bookkeeping would be very onerous to manage by hand. -no-pedantic (and --no-pedantic) is included for completeness, and matches many of the same kind of flags the compiler already supports. It does what it says: cancels out -pedantic. One discrepancy is that if one specifies --no-pedantic and -Weverything or -Wpedantic the pedantic warnings are still enabled (essentially the -W flags win). We can debate the correct behavior here. Along the way, this patch nukes some code in TextDiagnosticPrinter.cpp and CXStoredDiagnostic.cpp that determine whether to include the "-pedantic" flag in the warning output. This is no longer needed, as all extensions now have a -W flag. This patch also significantly reduces the number of warnings not under flags from 229 to 158 (all extension warnings). That's a 31% reduction. llvm-svn: 159875
* Add -ffp-contract = { fast | on | off } command line option support.Lang Hames2012-07-061-0/+6
| | | | | | | | | | | | | | | | | This flag sets the 'fp-contract' mode, which controls the formation of fused floating point operations. Available modes are: - Fast: Form fused operations anywhere. - On: Form fused operations where allowed by FP_CONTRACT. This is the default mode. - Off: Don't form fused operations (in future this may be relaxed to forming fused operations where it can be proved that the result won't be affected). Currently clang doesn't support the FP_CONTRACT pragma, so the 'On' and 'Off' modes are equivalent. llvm-svn: 159794
* MIPS: Add -mdsp/-mno-dsp and -mdspr2/-mno-dspr2 command line options support.Simon Atanasyan2012-07-051-0/+24
| | | | llvm-svn: 159769
* MIPS: Add -mips16 / -mno-mips16 command line support.Simon Atanasyan2012-07-051-0/+13
| | | | llvm-svn: 159747
* Give test check tags consistent names. Simon Atanasyan2012-07-051-9/+9
| | | | llvm-svn: 159744
* Rename the GCC Objective-C runtime to gcc from gnu-fragile and the GNUstepDavid Chisnall2012-07-031-1/+1
| | | | | | runtime to gnustep from gnu. Fix EH for the GCC runtime. llvm-svn: 159684
* When using -pg targeting OS X 10.8, pass -no_new_main to the linker.Bob Wilson2012-07-031-0/+5
| | | | | | | | | | By default on OS X 10.8, we don't link with a crt1.o file and the linker knows to use _main as the entry point. But, when compiling with -pg, we need to link with the gcrt1.o file, and the linker needs to be told to use the "start" symbol as the entry point. The -no_new_main linker option does that last part. <rdar://problem/11491405> llvm-svn: 159683
OpenPOWER on IntegriCloud