Daniel Dunbar
6cfb3ef451
Remove ../libexec from clang program search path, clang-cc is dead.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93749 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-18 19:16:53 +00:00
Dan Gohman
c31176d5eb
Use -fno-math-errno by default, and remove the IsMathErrnoDefault
...
targethook, which is no longer being used. This fixes PR5971.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92987 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-08 02:20:44 +00:00
Chris Lattner
b175666363
fix whitespace in test to match llvm asmprinter change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92251 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-29 07:42:23 +00:00
Daniel Dunbar
73ba9a6337
Driver: Fix '... -O4 -O0 ...', which was generating bitcode.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91962 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-23 00:47:42 +00:00
Daniel Dunbar
38b48afd33
clang -cc1: Rename -mcpu to -target-cpu to match other target options and not alias driver/backend option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91671 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 06:30:12 +00:00
Daniel Dunbar
f2d8b9f967
Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used
...
to compile a translation unit into the debug info for that file.
- Used by parts of Darwin build process to check compiler flags, etc.
- <rdar://problem/7256886> clang does not emit AT_APPLE_flags
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91661 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 02:43:17 +00:00
Daniel Dunbar
80737ad5e0
Update tests to use %clang instead of 'clang', and forcibly disable use of '
...
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to
garbage).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91460 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15 22:01:24 +00:00
Daniel Dunbar
288294f187
Tests: Fix some bugs in clang_f_opts, options were out of order but it worked
...
because it had two inputs, except on Win32 where /dev/null doesn't exist.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91235 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-13 02:00:23 +00:00
Ted Kremenek
5099b80088
Convert the remainder of this test case over to using FileCheck.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91194 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12 00:42:52 +00:00
Ted Kremenek
6feaf57b46
Make using '-fshort-enums' an error until it is actually implemented (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91191 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12 00:38:18 +00:00
Daniel Dunbar
8ff5b28d6e
Driver: Switch to using "clang" "-cc1" instead of "clang-cc".
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91174 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:00:49 +00:00
Daniel Dunbar
bc3fd65c4c
Improve test portability.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90890 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08 22:22:20 +00:00
Daniel Dunbar
87667aafe6
Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90873 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08 19:49:51 +00:00
Daniel Dunbar
8477ee93c9
Driver: Switch -ccc-* options to using the standard options functionality.
...
- I still want to get rid of them, but manually handling them isn't adding value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90602 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-04 21:55:23 +00:00
Daniel Dunbar
ba8d86172c
Fix Clang tool translation to forward -fvisibility as separate arguments, the
...
old syntax isn't supported.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90469 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 18:42:11 +00:00
Daniel Dunbar
f219e7c152
Move LLVM backend options to explicit clang-cc / clang -cc1 options, which we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90063 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-29 07:18:39 +00:00
Daniel Dunbar
66861e09d5
Standardize Driver translation to call clang-cc using '-foo' form instead of '--foo'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89497 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-20 22:21:36 +00:00
Daniel Dunbar
53e8484581
Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... variants instead of using llvm: 🆑 :init(true) arguments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89315 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19 04:55:23 +00:00
Daniel Dunbar
9e5cc6b703
Add -fblocks, -stack-protector, and -fobjc-nonfragile-abi defaulting to driver,
...
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-17 08:07:36 +00:00
Daniel Dunbar
f86feddbd5
Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.
...
- 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-14 22:04:54 +00:00
Daniel Dunbar
2475d76920
Remove RUN: true lines.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86432 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-08 01:47:25 +00:00
Daniel Dunbar
4fcfde4d5c
Eliminate &&s in tests.
...
- '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-08 01:45:36 +00:00
John Thompson
a6fda124bf
Adding -fshort-wchar option.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86167 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 20:14:16 +00:00
Daniel Dunbar
fd5cd99a38
XFAIL Driver/hello.c on Windows.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85885 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-03 07:49:31 +00:00
Daniel Dunbar
dd4fe00f03
Change the driver to do the Darwin triple mangling itself instead of forwarding
...
-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-30 18:12:20 +00:00
Sebastian Redl
a98c0348f6
Convert some driver checks to FileCheck.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85133 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-26 18:07:30 +00:00
Daniel Dunbar
b2b517c5fb
Update test; the driver can find a different gcc tool chain directory when
...
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-22 16:05:11 +00:00
Daniel Dunbar
0ebd9321ba
Driver: Default to using PTH for C++ precompiled header support, PCH for C++
...
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-15 20:02:44 +00:00
John Thompson
5e517c85b2
Converted to use FileCheck.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84005 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-13 18:51:26 +00:00
Mike Stump
9a04611f82
Tolerate .exe on executables. Patch by John Thompson. Changed * to .* by me.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83586 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-08 22:30:02 +00:00
Mike Stump
5385b4a1d0
Tolerate .exe on executables. Patch by John Thompson.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-08 22:25:29 +00:00
Daniel Dunbar
a92ba278fd
Fix truck sized thinko where Darwin/ARM toolchain didn't look for programs in
...
libexec, *blush*.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83086 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-29 18:52:10 +00:00
Daniel Dunbar
62d1fc0945
Work around FileCheck -NOT restriction.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82417 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-20 23:35:52 +00:00
Daniel Dunbar
cf43d8b8c4
Force triple.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81781 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-14 20:21:18 +00:00
Daniel Dunbar
f84a4a469d
Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support that yet. PR4941.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81430 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 04:57:27 +00:00
Daniel Dunbar
2ba9157590
Implement Darwin/ARM behavior for defaulting to -fno-builtin-str{cat,cpy}.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81425 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-10 03:37:02 +00:00
Daniel Dunbar
a6046bec7f
Fix ShouldUseClangCompiler to use llvm::Triple.
...
- -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-08 23:36:55 +00:00
Daniel Dunbar
e0be8b1729
Remove FIXMEs for pedantically-gcc-bug-compatible behavior.
...
- 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-08 16:39:16 +00:00
Daniel Dunbar
5915fbf310
Add driver support for -emit-ast and AST compilation steps.
...
- <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-09-01 16:57:46 +00:00
Daniel Dunbar
55a1846bf4
Add missing '&&'...
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79950 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-24 22:29:04 +00:00
Daniel Dunbar
0e2679d29b
PR4766: Don't pass -static to 'as' on x86_64 on Darwin.
...
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-24 22:26:16 +00:00
Daniel Dunbar
b1e5e661bb
Remove arch normalization from Driver, this should be unnecessary now that
...
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-24 09:16:49 +00:00
Daniel Dunbar
2bbcf66974
Driver/OpenBSD: Improve ld options.
...
- Patch by Jonathan Gray!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77935 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 01:28:59 +00:00
Daniel Dunbar
3f44291098
'unset' isn't needed in these tests anymore, we always run with a controlled
...
environment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77776 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-01 04:51:30 +00:00
Daniel Dunbar
025f80dfc2
MultiTestRunner: Validate '&&' at the end of RUN lines.
...
- 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-25 11:27:37 +00:00
Daniel Dunbar
772a5e540d
Change these tests to not depend as much on the name of the input.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77057 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-25 09:01:12 +00:00
Daniel Dunbar
dfaf4b3ac8
Switch the driver back to always using clang-cc by default (for C++, and
...
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-23 17:48:59 +00:00
Daniel Dunbar
e3d6023cbf
[llvm up] Add support for '#' component of QA_OVERRIDE_GCC3_OPTIONS.
...
- 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-16 21:32:51 +00:00
Eli Friedman
cb52d28946
Misc fixes to fix tests on OpenBSD, per email to cfe-commits. Patches
...
by Jonathan Gray and Krister Walfridsson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75268 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-10 20:10:06 +00:00
Daniel Dunbar
f7b8eec37c
OpenBSD support.
...
- Patch by Jonathan Gray!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74453 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-29 20:52:51 +00:00