aboutsummaryrefslogtreecommitdiff
path: root/test/Driver
AgeCommit message (Collapse)Author
2009-11-17Add -fblocks, -stack-protector, and -fobjc-nonfragile-abi defaulting to driver,Daniel Dunbar
instead of using getDefaultLangOptions. - Remove unused -fobjc-tight-layout while at it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89065 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.Daniel Dunbar
- We still need support for detecting the target features, since the name doesn't actually do a good job of decribing what the CPU supports (for LLVM). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88819 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-08Remove RUN: true lines.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86432 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-08Eliminate &&s in tests.Daniel Dunbar
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86430 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05Adding -fshort-wchar option.John Thompson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86167 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03XFAIL Driver/hello.c on Windows.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85885 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-30Change the driver to do the Darwin triple mangling itself instead of forwardingDaniel Dunbar
-mmacosx-version-min and -miphoneos-version-min to clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85600 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-26Convert some driver checks to FileCheck.Sebastian Redl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85133 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-22Update test; the driver can find a different gcc tool chain directory whenDaniel Dunbar
simulating running on a different system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84862 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-15Driver: Default to using PTH for C++ precompiled header support, PCH for C++Daniel Dunbar
isn't implemented yet. - <rdar://problem/7297571> Clang should use pretokenized headers for C++ PCH files git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84197 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-13Converted to use FileCheck.John Thompson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84005 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-08Tolerate .exe on executables. Patch by John Thompson. Changed * to .* by me.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83586 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-08Tolerate .exe on executables. Patch by John Thompson.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-29Fix truck sized thinko where Darwin/ARM toolchain didn't look for programs inDaniel Dunbar
libexec, *blush*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83086 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-20Work around FileCheck -NOT restriction.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82417 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-14Force triple.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81781 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support ↵Daniel Dunbar
that yet. PR4941. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81430 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10Implement Darwin/ARM behavior for defaulting to -fno-builtin-str{cat,cpy}.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81425 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-08Fix ShouldUseClangCompiler to use llvm::Triple.Daniel Dunbar
- -1 FIXME, and fixes 'clang -arch armv4t ...', for example. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81276 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-08Remove FIXMEs for pedantically-gcc-bug-compatible behavior.Daniel Dunbar
- We aren't going to fix these since they haven't caused problems in practice. - Similarly, don't forward -object to Darwin ld. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81224 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-01Add driver support for -emit-ast and AST compilation steps.Daniel Dunbar
- <rdar://problem/7185031> Add 'clang' option '-emit-ast' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80678 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-24Add missing '&&'...Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79950 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-24PR4766: Don't pass -static to 'as' on x86_64 on Darwin.Daniel Dunbar
Also, do pass -static even with -dynamic on i386. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79948 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-24Remove arch normalization from Driver, this should be unnecessary now thatDaniel Dunbar
things have moved to llvm::Triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79902 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03Driver/OpenBSD: Improve ld options.Daniel Dunbar
- Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77935 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-01'unset' isn't needed in these tests anymore, we always run with a controlledDaniel Dunbar
environment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77776 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar
- This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77062 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25Change these tests to not depend as much on the name of the input.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77057 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-23Switch the driver back to always using clang-cc by default (for C++, andDaniel Dunbar
regardless of the architecture). - This is a good default for development & testing; for example without this any tests using 'clang' in the test suite will fail on PowerPC, since the driver will avoid using clang. - We don't want to actually ship something built this way, but that should be handled via some sort of configuration file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76886 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-16[llvm up] Add support for '#' component of QA_OVERRIDE_GCC3_OPTIONS.Daniel Dunbar
- This silences the output about how command line arguments are being changed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76107 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-10Misc fixes to fix tests on OpenBSD, per email to cfe-commits. Patches Eli Friedman
by Jonathan Gray and Krister Walfridsson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75268 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-29OpenBSD support.Daniel Dunbar
- Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74453 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-17Use env properly in test/Driver/analyze.cDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73609 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16Make these driver tests do the right thing even when ↵Douglas Gregor
MACOSX_DEPLOYMENT_TARGET is set. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73583 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16Fix typo in prev commit.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73556 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-16Darwin/Driver: Also look at -arch command line options when finding the defaultDaniel Dunbar
tool chain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73555 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-08PR4016: Forward -fno-show-source-location to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73082 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-05Set function Attribute::NoImplicitFloat appropriately.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72961 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-04NoRedZone attribute test case.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72905 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-11Test for x86 target features, I forgot to commit this.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71492 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-06Tweak x86 -mcpu defaults.Daniel Dunbar
- Default to yonah on Darwin (to get SSE3). - Default to Pentium4 (32-bit) and x86-64 (64-bit) on non-Darwin. Welcome to the 21st century. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71069 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-06Improve handling of (X86) target features.Daniel Dunbar
- This is a WIP... - This adds -march= handling to the driver, and fixes the defaulting of -mcpu on Darwin (which was using the wrong test). Instead of handling -m{sse, ...} in the driver, pass them to clang-cc as -target-feature [+-]name In clang-cc, communicate with the (clang) target to discover the legal features of a target, and the features which are enabled based on -mcpu. This is currently hardcoded just enough to not be a feature regression, we need to get this information from the backend's TableGen information somehow. This is used to construct the full list of features which are being used, which is in turn used to initialize the predefines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71061 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-04Test a few more bits of the driver.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70816 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-02Driver: When using the generic gcc tool, pass -m32 or -m64 if weDaniel Dunbar
recognize the architecture. - This is an attempt to force gcc to the write target. - PR4094. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70647 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-02Driver: Generate an error when trying to pass an LLVM bc input to aDaniel Dunbar
non-Darwin linker (sorry Gold + LTO-plugin users). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70641 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-29Make sure to pass the same options to the static analyzer as theDaniel Dunbar
compiler. - Code generation options may still affect the language... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70393 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-28Force driver's PTH test to use PTHDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70338 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-24Don't run dsymutil when making a fat executable direct source.Daniel Dunbar
- Otherwise, we will end up with stray .dSYM files which don't get lipo'ed or removed. - Ideally we would run dsymutil on the result, but we don't have the infrastructure for that yet. Note that gcc doesn't handle this case either. - <rdar://problem/6809621> [driver] clang leaves .dSYM files lying around in tmp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69951 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-23Call ld, not collect2.Daniel Dunbar
- <rdar://problem/6517382> [driver] call ld directly git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69938 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-17Support QA_OVERRIDE_GCC3_OPTIONSDaniel Dunbar
- Cover your eyes... - This is a simple but effective way to allow developers to build a project with clang while manipulating the command line, without having to edit the project itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69342 91177308-0d34-0410-b5e6-96231b3b80d8