Edward O'Callaghan
|
fc460554f6
|
-funit-at-a-time is the default however some current makefiles pass -fno-unit-at-a-time which is ignored by GCC, we should warn about this not error out.
llvm-svn: 83976
|
2009-10-13 16:41:34 +00:00 |
Mike Stump
|
727170d2d8
|
Allow customization for the version line.
llvm-svn: 83652
|
2009-10-09 17:31:54 +00:00 |
Douglas Gregor
|
01249503fe
|
Installation of Clang libraries and headers, from Axel Naumann!
llvm-svn: 83582
|
2009-10-08 22:15:31 +00:00 |
Ted Kremenek
|
7881ac97a5
|
Revert r83443.
llvm-svn: 83451
|
2009-10-07 03:21:11 +00:00 |
Mike Stump
|
db9fca7735
|
Fixup pathnames.
llvm-svn: 83443
|
2009-10-07 01:11:54 +00:00 |
Rafael Espindola
|
7787d79c7b
|
Add the -nostdclanginc option to clang (the driver).
llvm-svn: 83377
|
2009-10-06 12:45:37 +00:00 |
Douglas Gregor
|
1b7035da6f
|
Provide a common set of routines in Version.h that return Subversion
branch/revision information. Use that information in the driver,
rather than one-off branch/revision computation.
llvm-svn: 83321
|
2009-10-05 20:33:49 +00:00 |
Fariborz Jahanian
|
e4b21aba44
|
Set __EXCEPTIONS by checking on darwin's triple.
Patch by Rafael Espindola.
llvm-svn: 83209
|
2009-10-01 20:30:46 +00:00 |
Rafael Espindola
|
00a665751d
|
Move the "needs exception support" logic to clang. This also fixes
-fno-exceptions in C++ code. We used to always define __EXCEPTIONS in
C++.
llvm-svn: 83199
|
2009-10-01 13:33:33 +00:00 |
Daniel Dunbar
|
d71a03b164
|
Fix truck sized thinko where Darwin/ARM toolchain didn't look for programs in
libexec, *blush*.
llvm-svn: 83086
|
2009-09-29 18:52:10 +00:00 |
Ted Kremenek
|
05e6f5b6e9
|
Turn on 'RegionStore' as the default store manager both for 'clang --analyze' and 'scan-build'. Leave 'BasicStore' as the default store manager in 'clang-cc'. While there are still known warts with RegionStore, it's ready to be tested by general users.
llvm-svn: 82752
|
2009-09-25 05:55:59 +00:00 |
Daniel Dunbar
|
5564ba743f
|
Push "clang-is-production" logic up to tools/driver, and make it hittable by
defining the CLANG_IS_PRODUCTION Makefile variable.
llvm-svn: 82583
|
2009-09-22 22:31:13 +00:00 |
Daniel Dunbar
|
6276f99be5
|
Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base.
llvm-svn: 82213
|
2009-09-18 08:15:13 +00:00 |
Daniel Dunbar
|
26d482a1a9
|
Lift AddLinkRuntimeLibArgs into Darwin tool chain.
llvm-svn: 82212
|
2009-09-18 08:15:03 +00:00 |
Daniel Dunbar
|
d5bd81e869
|
Move isMacosxVersionLT helpers to Darwin tool chain.
llvm-svn: 82211
|
2009-09-18 08:14:55 +00:00 |
Daniel Dunbar
|
510d8a8dd8
|
Lift getMacosxVersionMin out into Darwin ToolChain.
llvm-svn: 82210
|
2009-09-18 08:14:46 +00:00 |
Daniel Dunbar
|
4c30b89def
|
Lift AddLinkerSearchPaths() into Darwin tool chain.
llvm-svn: 82209
|
2009-09-18 08:14:36 +00:00 |
Daniel Dunbar
|
48622c13f7
|
Rename a variable to match its semantics.
llvm-svn: 82208
|
2009-09-18 08:14:24 +00:00 |
Daniel Dunbar
|
58f7833cfb
|
Driver: Change -O to mean -O2, -O1 is meaningless.
llvm-svn: 82131
|
2009-09-17 06:53:36 +00:00 |
Daniel Dunbar
|
07806ca7ab
|
Improve driver error message when only running the preprocessor and an input is
already preprocessed.
--
ddunbar@giles:tmp$ touch t.i
ddunbar@giles:tmp$ gcc -E t.i
ddunbar@giles:tmp$ clang -E t.i
clang: warning: t.i: previously preprocessed input unused when '-E' is present
ddunbar@giles:tmp$
--
<rdar://problem/6813375> [driver] driver prints confusing message when running -E on preprocessed file
llvm-svn: 82120
|
2009-09-17 04:13:26 +00:00 |
Daniel Dunbar
|
d112f103e7
|
We don't need a -compile-ast clang-cc action, we can just use -S.
llvm-svn: 82105
|
2009-09-17 00:47:53 +00:00 |
Daniel Dunbar
|
306945d3d0
|
Incremental improvement to logic determining whether we emit unwind tables or
not.
- PR4932.
llvm-svn: 82021
|
2009-09-16 06:17:29 +00:00 |
Daniel Dunbar
|
4ed7898294
|
Support -mabi= for clang/ARM.
llvm-svn: 81734
|
2009-09-14 00:34:46 +00:00 |
Daniel Dunbar
|
33a004e9eb
|
Swizzle the target triple based on -mthumb, and update clang-cc to recognize
thumb-foo-bar as an ARM target.
llvm-svn: 81497
|
2009-09-11 01:14:50 +00:00 |
Daniel Dunbar
|
7848592ec6
|
Initial handling of -m{soft-float,hard-float,float-abi=} for ARM.
llvm-svn: 81471
|
2009-09-10 23:00:09 +00:00 |
Daniel Dunbar
|
e2cf8f7b53
|
Move X86 handling of -m[no-]soft-float and -m[no-]red-zone into AddX86TargetArgs.
llvm-svn: 81470
|
2009-09-10 22:59:57 +00:00 |
Daniel Dunbar
|
f492c92761
|
Change getLLVMArchNameForARM to just get the suffix.
llvm-svn: 81469
|
2009-09-10 22:59:51 +00:00 |
Daniel Dunbar
|
fb58b0aaa9
|
Add code to mangle the triple for LLVM on ARM.
- I think we should get rid of this distinction though, but I need to discuss with the interested parties.
llvm-svn: 81435
|
2009-09-10 06:49:20 +00:00 |
Daniel Dunbar
|
4fa0811e4c
|
Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support that yet. PR4941.
llvm-svn: 81430
|
2009-09-10 04:57:27 +00:00 |
Daniel Dunbar
|
0f5c542a86
|
ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=.
llvm-svn: 81429
|
2009-09-10 04:57:17 +00:00 |
Daniel Dunbar
|
2ffe029a61
|
Implement Darwin/ARM behavior for defaulting to -fno-builtin-str{cat,cpy}.
llvm-svn: 81425
|
2009-09-10 03:37:02 +00:00 |
Daniel Dunbar
|
4eadb60652
|
Add a check that -static is not used with -dynamic or -mdynamic-no-pic.
llvm-svn: 81421
|
2009-09-10 01:21:12 +00:00 |
Daniel Dunbar
|
64198ef50f
|
Factor out CheckPreprocessing options to share between Clang/CC1 tools.
Also, fix forwarding of -C/-CC to cc1.
llvm-svn: 81420
|
2009-09-10 01:21:05 +00:00 |
Daniel Dunbar
|
3c7b9ca4bf
|
Improve Darwin argument translation to match what the driver driver does.
llvm-svn: 81391
|
2009-09-09 22:33:15 +00:00 |
Daniel Dunbar
|
3b3191f23c
|
Move Clang X86 cpu/feature argument translation into AddX86TargetArgs.
llvm-svn: 81390
|
2009-09-09 22:33:08 +00:00 |
Daniel Dunbar
|
1ce81538f1
|
Change Get{File,Program}Path to return an std::string (instead of a sys::Path).
llvm-svn: 81389
|
2009-09-09 22:33:00 +00:00 |
Daniel Dunbar
|
1c28f1e17c
|
Remove gratuitous use of c_str().
llvm-svn: 81388
|
2009-09-09 22:32:48 +00:00 |
Daniel Dunbar
|
b617a9f3c7
|
Use Twine concatenation instead of llvm::format.
llvm-svn: 81387
|
2009-09-09 22:32:41 +00:00 |
Daniel Dunbar
|
b4a3e43741
|
Simplify.
llvm-svn: 81386
|
2009-09-09 22:32:34 +00:00 |
Daniel Dunbar
|
5f620c1fac
|
StringRefize ArgList construction of ArgStrings.
llvm-svn: 81385
|
2009-09-09 22:32:26 +00:00 |
Daniel Dunbar
|
3571dd90cf
|
Use AddDarwinArch for passing arch name to assembler.
llvm-svn: 81368
|
2009-09-09 18:36:27 +00:00 |
Daniel Dunbar
|
e9ded43d1d
|
Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch there.
llvm-svn: 81367
|
2009-09-09 18:36:20 +00:00 |
Daniel Dunbar
|
e7af341454
|
Push bound architecture name into TranslateArgs.
llvm-svn: 81366
|
2009-09-09 18:36:12 +00:00 |
Daniel Dunbar
|
b5d86bbd76
|
Push bound architecture name into Compilation::getArgsForToolChain.
llvm-svn: 81365
|
2009-09-09 18:36:01 +00:00 |
Mike Stump
|
11289f4280
|
Remove tabs, and whitespace cleanups.
llvm-svn: 81346
|
2009-09-09 15:08:12 +00:00 |
Daniel Dunbar
|
faabdc3b81
|
Change Darwin toolchain lookup to use llvm::Triple.
- -2+1 FIXMEs.
llvm-svn: 81282
|
2009-09-08 23:37:36 +00:00 |
Daniel Dunbar
|
9c3f7c4a4b
|
Validate arguments to -arch.
llvm-svn: 81281
|
2009-09-08 23:37:30 +00:00 |
Daniel Dunbar
|
1ef3f2aa3a
|
Rename HostInfo::getToolChain to HostInfo::CreateToolChain, and don't recreate
the default tool chain when binding the default architecture.
llvm-svn: 81279
|
2009-09-08 23:37:19 +00:00 |
Daniel Dunbar
|
b5c741a427
|
Delete trailing whitespace.
llvm-svn: 81278
|
2009-09-08 23:37:08 +00:00 |
Daniel Dunbar
|
7b57404dea
|
Simplify.
llvm-svn: 81277
|
2009-09-08 23:37:02 +00:00 |