4967a710c84587c654b56c828382219c3937dacb |
|
20-Sep-2016 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master Clang for rebase to r275480 Bug: http://b/31320715 This merges commit ac9cc4764cf47a6c3f031687d8592e080c9f5001 from aosp/dev. Test: Build AOSP and run RenderScript tests (host tests for slang and libbcc, RsTest, CTS) Change-Id: Ic2875e5c3673c83448cd7d1013861e42947b1b55
/external/clang/lib/Driver/Tools.cpp
|
87d948ecccffea9e9e37d0d053b246e2d6d6c47b |
|
04-Mar-2016 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master clang for rebase to r256229 http://b/26987366 Change-Id: I5d349c9843ea5c24d6e455956f8a446393b6873d
/external/clang/lib/Driver/Tools.cpp
|
b6d6993e6e6d3daf4d9876794254d20a134e37c2 |
|
01-Jul-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master clang for rebase to r239765 Change-Id: I0393bcc952590a7226af8c4b58534a8ee5fd2d99
/external/clang/lib/Driver/Tools.cpp
|
58878f85ab89b13e9eea4af3ccf055e42c557bc8 |
|
06-May-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master clang for rebase to r235153 Change-Id: Ia94bbcb6da7c75b6e7c2afedd1001094d62a7324
/external/clang/lib/Driver/Tools.cpp
|
3ea9e33ea25e0c2b12db56418ba3f994eb662c04 |
|
08-Apr-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Update aosp/master clang for rebase to r233350 Change-Id: I12d4823f10bc9e445b8b86e7721b71f98d1df442
/external/clang/lib/Driver/Tools.cpp
|
0e2c34f92f00628d48968dfea096d36381f494cb |
|
23-Mar-2015 |
Stephen Hines <srhines@google.com> |
Update aosp/master clang for rebase to r230699. Change-Id: I6a546ab3d4ae37119eebb735e102cca4f80ab520
/external/clang/lib/Driver/Tools.cpp
|
9860b14abb2412d206cd0375819455cf89a71c06 |
|
04-Dec-2014 |
Stephen Hines <srhines@google.com> |
am 60a40d9e: Merge "Update aosp/master Clang for rebase to r222490." * commit '60a40d9ee5c5ce10df829184a6a14694f2ef8fb8': Update aosp/master Clang for rebase to r222490.
|
176edba5311f6eff0cad2631449885ddf4fbc9ea |
|
01-Dec-2014 |
Stephen Hines <srhines@google.com> |
Update aosp/master Clang for rebase to r222490. Change-Id: Ic557ac55e97fbf6ee08771c7b7c3594777b0aefd
/external/clang/lib/Driver/Tools.cpp
|
c50010f412ad39bda1b70cdc0f082597dcbacbb8 |
|
23-Oct-2014 |
Tim Murray <timmurray@google.com> |
Revert "Bring in fixes for Cortex-A53 errata." This reverts commit 1aeaece93aae941bb1bbb3a226398a311dfe18e8. bug 18094492
/external/clang/lib/Driver/Tools.cpp
|
1aeaece93aae941bb1bbb3a226398a311dfe18e8 |
|
17-Oct-2014 |
Stephen Hines <srhines@google.com> |
Bring in fixes for Cortex-A53 errata. Bug: 18034609 (cherry picked from commit 7fb0af86e33f382a8e4a8f23cc1ab471b7134995) Change-Id: Ifc04c2a8e3ec13efd3a5f5ed4879f0a657df50cf
/external/clang/lib/Driver/Tools.cpp
|
7fb0af86e33f382a8e4a8f23cc1ab471b7134995 |
|
17-Oct-2014 |
Stephen Hines <srhines@google.com> |
Bring in fixes for Cortex-A53 errata. Bug: 18034609 Change-Id: I0ef0ead418f797946e0b59068bca8f9fd08d3348
/external/clang/lib/Driver/Tools.cpp
|
ef8225444452a1486bd721f3285301fe84643b00 |
|
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update Clang for rebase to r212749. This also fixes a small issue with arm_neon.h not being generated always. Includes a cherry-pick of: r213450 - fixes mac-specific header issue r213126 - removes a default -Bsymbolic on Android Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/lib/Driver/Tools.cpp
|
c568f1e98938584c0ef0b12ae5018ff7d90a4072 |
|
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update Clang for rebase to r212749. This also fixes a small issue with arm_neon.h not being generated always. Includes a cherry-pick of: r213450 - fixes mac-specific header issue r213126 - removes a default -Bsymbolic on Android Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/lib/Driver/Tools.cpp
|
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 |
|
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update Clang for 3.5 rebase (r209713). Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/lib/Driver/Tools.cpp
|
651f13cea278ec967336033dd032faef0e9fc2ec |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Updated to Clang 3.5a. Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/lib/Driver/Tools.cpp
|
c54c885099ddbe81445ec58d8c12c97086569a91 |
|
09-Dec-2013 |
Bill Wendling <isanbard@gmail.com> |
Merging r196720: ------------------------------------------------------------------------ r196720 | joerg | 2013-12-08 05:54:58 -0800 (Sun, 08 Dec 2013) | 3 lines Extend assembler handling for NetBSD/MIPS to pass down the correct ABI, architecture and PIC flag. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ac66cb8654528f3539925dbbaf1597a1e3ca11db |
|
08-Dec-2013 |
Bill Wendling <isanbard@gmail.com> |
Merging r196630: ------------------------------------------------------------------------ r196630 | joerg | 2013-12-06 16:57:46 -0800 (Fri, 06 Dec 2013) | 3 lines Pass correct flags to assembler and linker for OpenBSD on AMD64, PowerPC and MIPS64. From Brad Smith. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
182fc2d652e46c3966d9545061471434270e2457 |
|
06-Dec-2013 |
Bill Wendling <isanbard@gmail.com> |
Merging r196538: ------------------------------------------------------------------------ r196538 | joerg | 2013-12-05 13:27:58 -0800 (Thu, 05 Dec 2013) | 2 lines For NetBSD, use arm1176jzf-s as default CPU for ARMv6. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cf660bd73e72b6ac36cd4512828cd2ef992f119e |
|
06-Dec-2013 |
Bill Wendling <isanbard@gmail.com> |
Merging r196532: ------------------------------------------------------------------------ r196532 | joerg | 2013-12-05 13:07:29 -0800 (Thu, 05 Dec 2013) | 2 lines Pass down the target CPU to the system assembler for NetBSD/ARM. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196596 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0d5d6ff1b8986352c523a1e83803787fdb0389f8 |
|
02-Dec-2013 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Merged r195756: ------------------------------------------------------------------------ r195756 | atanasyan | 2013-11-26 11:58:04 +0000 (Tue, 26 Nov 2013) | 1 line [Mips] Pass -mmsa option to the assembler. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196083 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6c5c3adab3ff343c2fc6d9a34808aa9b65d6baaa |
|
02-Dec-2013 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Merged r195249: ------------------------------------------------------------------------ r195249 | atanasyan | 2013-11-20 13:53:20 +0000 (Wed, 20 Nov 2013) | 2 lines [Mips] Take in account the -mfp64 command line option when build paths to the crt*.o files, libraries and headers for the MIPS FSFS toolchain. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6efcf6f97a97242a9ca6583375457048277d9018 |
|
19-Nov-2013 |
Kevin Enderby <enderby@apple.com> |
Change the clang driver with the use of -no-integrated-as for darwin to use the -Q flag to the as(1) assembler driver. We will soon be switching the darwin as(1) assembler driver to call clang(1) and use the intergated assembler by default. To do this and still support clang(1)'s -no-integrated-as flag, when clang(1) runs the as(1) assembler driver and -no-integrated-as is used it needs to pass the -Q flag to as(1) so it uses its GNU based assembler, and not turn around and call clag(1)'s integrated assembler. rdar://15495921 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
07ac846d50503fcbd78bf9de031cba1157393cfd |
|
17-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove method that always returns true. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ce5b5f13a6c90904040b29b9eb765bb7cd736f0b |
|
17-Nov-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add -freroll-loops to enable loop rerolling This adds -freroll-loops (and -fno-reroll-loops in the usual way) to enable loop rerolling as part of the optimization pass manager. This transformation can enable vectorization, reduce code size (or both). Briefly, loop rerolling can transform a loop like this: for (int i = 0; i < 3200; i += 5) { a[i] += alpha * b[i]; a[i + 1] += alpha * b[i + 1]; a[i + 2] += alpha * b[i + 2]; a[i + 3] += alpha * b[i + 3]; a[i + 4] += alpha * b[i + 4]; } into this: for (int i = 0; i < 3200; ++i) { a[i] += alpha * b[i]; } Loop rerolling is currently disabled by default at all optimization levels. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
32ca73e33fcc7c75ea1c297755a300be3e9e5371 |
|
16-Nov-2013 |
Jim Grosbach <grosbach@apple.com> |
X86: Make specifying avx2 simpler on Darwin with '-arch' Teach the '-arch' command line option to enable the compiler-friendly features of core-avx2 CPUs on Darwin. Pass the information along in the target triple like Darwin+ARM does. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e22017e0b691ff02616e6a8e670b721d078d4bc9 |
|
15-Nov-2013 |
Alp Toker <alp@nuanti.com> |
Revert "Using an invalid -O falls back on -O3 instead of an error" Trying to fix test failures since earlier today. One of the tests added in this commit is outputting test/Driver/clang_f_opts.s which the builders that build in-tree (eg. clang-native-arm-cortex-a9) are trying to run as a test case, causing failures. clang_f_opts.c: If -### doesn't emit the warning then this test probably shouldn't be in here in the first place. Frontend maybe? invalid-o-level.c: Running %clang_cc1 in the Driver tests doesn't make sense because -cc1 bypasses the driver. (I'm not reverting the commit that introduced this but please fix instead of keeping it this way.) Reverting to fix the build failures and also so that the tests can be thought out more thoroughly. This reverts commit r194817. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194845 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
eb4d7c3fceed6c6e4151489c0572cff36500db78 |
|
15-Nov-2013 |
Sylvestre Ledru <sylvestre@debian.org> |
Using an invalid -O falls back on -O3 instead of an error Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: optimization level '-O20' is unsupported; using '-O3' instead. 1 warning generated. This matches the gcc behavior (with a warning added) Pass all tests: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 94.14s Expected Passes : 6721 Expected Failures : 20 Unsupported Tests : 17 (which was not the case of http://llvm-reviews.chandlerc.com/D2125) Reviewers: chandlerc, rafael, rengolin, hfinkel Reviewed By: rengolin CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2152 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2317f7b702ee23643d0ff6fe426f64689e9f0ea5 |
|
14-Nov-2013 |
David Peixotto <dpeixott@codeaurora.org> |
Fix typo git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194744 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4ca9eaebfb283441c3a8398ff190b8e8e13b21eb |
|
14-Nov-2013 |
David Peixotto <dpeixott@codeaurora.org> |
Pass -Wa,-I and -Xassembler -I args to integrated assembler This patch adds -I to the arguments that are passed to the integrated assembler from -Wa, and -Xassembler args. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194743 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2c050f6a68c4f871d26be63f8d598f1b64a8e16f |
|
14-Nov-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[objcmt] Introduce "objcmt-white-list-dir-path=" option. This options accepts a path to a directory, collects the filenames of the files it contains, and the migrator will only modify files with the same filename. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
17c384c7418ad93b3ceb04218734950f7f32e993 |
|
14-Nov-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[objcmt] Transfer the objcmt flags from the driver to cc1 invocation and instantiate ObjCMigrateASTConsumer with the specific options that were enabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7792fde854b5d2bb9d2dc18b4a1de09397307220 |
|
13-Nov-2013 |
Weiming Zhao <weimingz@codeaurora.org> |
Adds ARM backend options: -mrestrict-it and -mno-restrict-it To support the generation of IT block in Thumbv7 way or Thumbv8 way git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b85a9ec6df63f30bbdef9a3975b1d31a680b15c1 |
|
13-Nov-2013 |
Diego Novillo <dnovillo@google.com> |
Add -fprofile-sample-use to Clang's driver. This adds a new option -fprofile-sample-use=filename to Clang. It tells the driver to schedule the SampleProfileLoader pass and passes on the name of the profile file to use. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
08d86e9c4b0c6a7cd4a770d6e540ae679cdc55c4 |
|
12-Nov-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
ObjectiveC. availability of Array/Dictionary subscripting is further restricted in legacy runtime to deployment target of 10.7 and later. // rdar://15363492 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5d5058c08e72666fc646581c454bb684cca01197 |
|
12-Nov-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
ObjectiveC driver change. re-apply patch reverted in r194450 with a modified test. // rdar://15363492 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0e325bef80afcbc3e07a8e6b611a0e5fdc52ab5c |
|
12-Nov-2013 |
Robert Lytton <robert@xmos.com> |
XCore target has -fno-use-cxa-atexit as default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
669496ba9fa753a238e3f0018b7a6235ec672727 |
|
12-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
This reverts commit r194435 and r194434. Trying to get the bots green. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3e627f76c792ab0539933f1192cbd7845a68a9b3 |
|
12-Nov-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
ObjectiveC. By default allow array/dictionary subscripting in ObjectiveC legacy runtime too. // rdar://15363492 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
849f3ececee1293371bc0930fcb74b0a44f22c98 |
|
11-Nov-2013 |
Sylvestre Ledru <sylvestre@debian.org> |
Revert "Using an invalid -O falls back on -O3 instead of an error" This reverts commit r194403. Was breaking too many tests... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1cd76b1a44d74e9e2e8b8fcacc2d7ec290b54b76 |
|
11-Nov-2013 |
Sylvestre Ledru <sylvestre@debian.org> |
Using an invalid -O falls back on -O3 instead of an error Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: invalid value '20' in '-O20'. Fall back on value '3' Reviewers: rengolin, hfinkel Reviewed By: rengolin CC: cfe-commits, hfinkel, rengolin Differential Revision: http://llvm-reviews.chandlerc.com/D2125 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194403 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db33419ecf2c608f1024366364fe64220ec4a057 |
|
10-Nov-2013 |
Roman Divacky <rdivacky@freebsd.org> |
Add gold plugin support to the FreeBSD link driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194350 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bd3952758ce828a006d826979db642195792ac4d |
|
09-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
This reverts commit r194330, r194329 and r194328. The test was still failing on OS X and mingw. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a799d7db952e30b479d647fe35c00ee7360d7628 |
|
09-Nov-2013 |
David Chisnall <csdavec@swan.ac.uk> |
Add support for -fuse-ld=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
195dd7c8448893e13a0cd8e776520f14cba65b08 |
|
06-Nov-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add a limit to the length of a sequence of 'operator->' functions we will follow when building a class member access expression. Based on a patch by Rahul Jain! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d5cce4f284519bdd1218c8f095462a518b47286 |
|
05-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
With this patch -Wwrite-strings is still implemented with the terrible hack of passing -fconst-strings to -cc1, but at least the driver uses the regular warning checking code path. Since we don't support a warning that is DefaultIgnore in one language but not in another, this patch creates a dummy C only warning in the same group as the existing one to get the desired effect. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f632a0c29d4a124119312ef2bb36c1c8b49b0b93 |
|
04-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
clang-format this if. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c6911a2b1fc176e4d6053ed86506c17c3d8b0057 |
|
01-Nov-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
SanitizerArgs: add ability to filter/diagnose unsupported sanitizers. The thread, memory, dataflow and function sanitizers are now diagnosed if enabled explicitly on an unsupported platform. Unsupported sanitizers which are enabled implicitly (as part of a larger group) are silently disabled. As a side effect, this makes SanitizerArgs parsing toolchain-dependent (and thus essentially reverts r188058), and moves SanitizerArgs ownership to ToolChain. Differential Revision: http://llvm-reviews.chandlerc.com/D1990 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3bb1b5c953fc38d4b87525258cf27b7c908988b1 |
|
31-Oct-2013 |
Amara Emerson <amara.emerson@arm.com> |
[AArch64] Add some CPU targets for "generic", A-53 and A-57. Enables the clang driver to begin targeting specific CPUs. Introduced a "generic" CPU which will ensure that the optional FP feature is enabled by default when it gets to LLVM, without needing any extra arguments. Cortex-A53 and A-57 are also introduced with tests, although backend handling of them does not yet exist. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6d0943fc2dcb21927b31c07be7cdbf55d3688fed |
|
29-Oct-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Add -lm to sanitizer link arguments. We'll need to intercept a few function in libm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193644 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
909f35a884045c658e5c4565499f113ee63dfc1d |
|
29-Oct-2013 |
Bernard Ogden <bogden@arm.com> |
ARM: Add -m[no-]crc to dis/enable CRC subtargetfeature from clang Allow users to disable or enable CRC subtarget feature. Differential Revision: http://llvm-reviews.chandlerc.com/D2037 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f779e65390ad331ff5ea68de40b0281f607b397c |
|
24-Oct-2013 |
Bernard Ogden <bogden@arm.com> |
Add driver support for FP, SIMD and crypto defaults. Although we wire up a bit for v8fp for macro setting purposes, we don't set a macro yet. Need to ask list about that. Change-Id: Ic9819593ce00882fbec72757ffccc6f0b18160a0 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80e90c2631e17a8fbb52834f2f802aa6ed93355a |
|
24-Oct-2013 |
Bernard Ogden <bogden@arm.com> |
Set appropriate FPU default for Linux on v8 Change-Id: If9b649c92e7196e3e791948545dc80901a0761eb git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c427249cb79b77c3cd7a0855f854d2ff81618ddf |
|
24-Oct-2013 |
Bernard Ogden <bogden@arm.com> |
Teach clang driver about Cortex-A53 and Cortex-A57. Adds some Cortex-A53 strings where they were missing before. Cortex-A57 is entirely new to clang. Doesn't touch code only used by Darwin, in consequence of which one of the A53 lines has been removed. Change-Id: I5edb58f6eae93947334787e26a8772c736de6483 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
39e4b0fb309dc43d017d1b831a6b685c39bdedee |
|
21-Oct-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: Various string-related cleanups. Also fixes some funky formatting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193079 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1db2e279114348d276e2dea03b8d6175743505e7 |
|
21-Oct-2013 |
Silviu Baranga <silviu.baranga@arm.com> |
Add the __ARM_ARCH_EXT_IDIV__ predefine. It is set to 1 if we have hardware divide in the mode that we are compiling in (depending on the target features), not defined if we don't. Should be compatible with the GCC conterpart. Also adding a -hwdiv option to overide the default behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9541141f4f131d76be609665b2a8500f770109c9 |
|
21-Oct-2013 |
Daniel Jasper <djasper@google.com> |
Expose -fmodule-name and -fmodule-map-file as driver options. Review: http://llvm-reviews.chandlerc.com/D1974 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bf54855ac4476a54d9bafc5f67e433d3ac0fe512 |
|
20-Oct-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Revert r193022 and r193048. They broke the ubsan test suite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
acca8bcbe7b4c765caee75e62bfbf47f968a7bac |
|
20-Oct-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: libubsan_cxx depends on libubsan. Preserve the topological ordering, some linkers depend on it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193048 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
63d29e2452d557b7c882136bce01fb9349716bae |
|
19-Oct-2013 |
Nick Lewycky <nicholas@mxc.ca> |
When building ubsan, link in ubsan parts first and sanitizer-common second, to pick up the common bits ubsan actually needs. Also remove whole-archive when we aren't trying to re-export the symbols. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
af7ed9e89074e37453cb2b9365b1882ab71163fb |
|
17-Oct-2013 |
Daniel Sanders <daniel.sanders@imgtec.com> |
[mips] Added -mfp64 and -mfp32 options. These options specify 64-bit FP registers and 32-bit FP registers respectively. When using -mfp32, the FPU has 16x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps two single-precision registers). When using -mfp64, the FPU has 32x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps with one single-precision register and has an additional 32-bits). MSA requires -mfp64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d5e59fc9df4cc7136e07c830ed08343a80a83b8e |
|
16-Oct-2013 |
Eric Christopher <echristo@gmail.com> |
Rework ppc options handling into a features group. This should have no functional behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5322a5569193af0304e430bcfa0c4bc4c4798c47 |
|
16-Oct-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: Factor duplicated code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9e6af9ddd505e68d494cec85d83ff893cf16d2df |
|
16-Oct-2013 |
Akira Hatanaka <ahatanaka@mips.com> |
[mips] Enable frame-pointer elimination for -O1 and above. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a6f5cc368bb6c996f771c37b0e95d81bf1ded76e |
|
15-Oct-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
ObjectiveC driver. Scrap -fno-objc-legacy-dispatch for NeXT runtime. It will be silently ignored and regardless of deployment target. // rdar://14803286 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192719 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e69cca48505098f1ca70b10f829b07526d6465bf |
|
14-Oct-2013 |
Joerg Sonnenberger <joerg@bec.de> |
For NetBSD/current on X86 do not use libgcc and default to libc++. Adjust linkage to make more sense for older releases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192615 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
96d6c4596587df59821da10270d2102da4a49b73 |
|
11-Oct-2013 |
Manman Ren <manman.ren@gmail.com> |
Turn struct-path aware TBAA on by default. Use -no-struct-path-tbaa to turn it off. This is the same as r191695, which was reverted because it depends on a commit that has issues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4e490e271ce3f0d4289b5115e000b55333c1b829 |
|
11-Oct-2013 |
Robert Lytton <robert@xmos.com> |
XCore target: add an xcore toolchain implementation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192437 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d4705688feb77cbb8317d1c1a1fdbff5ccdf2d10 |
|
11-Oct-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Fix typo in comment. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
66751bc99c733107c8381c8d43bdeda254094a1a |
|
09-Oct-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Do not check for options from the OPT_mips_CPUs_Group. All these options are aliases now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c0e83640ae656c76170b1389a5d72f440b1a7749 |
|
04-Oct-2013 |
Simon Atanasyan <simon@atanasyan.com> |
Revert r191947. The problem is not MIPS-specific and requires more general solution. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bd55e97f4452b9a6fa18d6503c936d8b1c33029d |
|
04-Oct-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] For MIPS '-fPIC -static' means to compile as -fPIC but link with -static. So do not turn off the PIC flag if -static passed to the driver in case of MIPS target. http://llvm.org/bugs/show_bug.cgi?id=14693 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191947 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc1a75b77c491f243e3c5de96fdff6394f5a82ee |
|
03-Oct-2013 |
Tim Northover <tnorthover@apple.com> |
ARM: *-*-darwin-eabi triples should use AAPCS. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191900 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fe7ed04204f838bab51878d049470a205cf820ad |
|
01-Oct-2013 |
Amara Emerson <amara.emerson@arm.com> |
[ARM] Add -mfpu=none option to the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1596e5b368ddbdc4b9c3ecab75115b179b6e5391 |
|
01-Oct-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Revert r191586 and r191695. They cause crashes when building with -relaxed-aliasing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
03928403af872d3b04d1d5d5a5c4be2d4d366af4 |
|
30-Sep-2013 |
Manman Ren <manman.ren@gmail.com> |
Turn struct-path aware TBAA on by default. Use -no-struct-path-tbaa to turn it off. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
097595a5ee1019a8386206b76bf4893b9540f83b |
|
29-Sep-2013 |
Daniel Jasper <djasper@google.com> |
Fix misspelling of -fmodules-decluse. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
14f9889b9b88f73a891688d7732bf01a127d9e7c |
|
27-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Replace -fobjc-default-synthesize-properties with disable-objc-default-synthesize-properties. We want the modern behavior most of the time, so inverting the option simplifies the driver and the tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191551 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4fe475a1a1d333d4ddeca386fa8dae3448103c3a |
|
27-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: pass /FI options to fallback We started parsing /FI in r191442, and now we can pass it on to the fallback too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dea69a1149c5a77db69e037c9619a52d45fcf4a9 |
|
27-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove method that always returns true. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191533 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a8ffc16dc1c5b21c3fdb2b53a9c0eb5af5d3babb |
|
24-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: fix passing optimization level to cl.exe in /fallback mode We were previously mostly passing it through, but -O0 and -O3 are not valid options to cl.exe. We should translate -O0 to /Od and -O3 to /Ox. -O{1,2,s} get passed through. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191323 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1413d629953d24647afaea7f0e0d16078d95ab7c |
|
24-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: pass /nologo when falling back to cl.exe git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ddd2dfc1d3f4a36cbe8cd775c588623a17049f9f |
|
24-Sep-2013 |
Daniel Jasper <djasper@google.com> |
Module use declarations (II) Review: http://llvm-reviews.chandlerc.com/D1546. I have picked up this patch form Lawrence (http://llvm-reviews.chandlerc.com/D1063) and did a few changes. From the original change description (updated as appropriate): This patch adds a check that ensures that modules only use modules they have so declared. To this end, it adds a statement on intended module use to the module.map grammar: use module-id A module can then only use headers from other modules if it 'uses' them. This enforcement is off by default, but may be turned on with the new option -fmodules-decluse. When enforcing the module semantics, we also need to consider a source file part of a module. This is achieved with a compiler option -fmodule-name=<module-id>. The compiler at present only applies restrictions to the module directly being built. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191283 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc12c4aa20876bdf91bff98dc50eb68b4dd04b80 |
|
24-Sep-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Support -mnan=2008 option. Define "__mips_nan2008" macros and pass this option to the assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191282 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c3c66879c329bf8caf4f0fcf62093c93a3f8c342 |
|
24-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove unused option. gcc doesn't support "gcc -m sse" and this was not tested in clang and only used for link argument on darwin, so this was very likely just a bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
89e32745123c02159fa1d1f19f96bdd4173029f0 |
|
24-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: print diagnostics as "error(clang): foo" in /fallback mode This solves two problems: 1) MSBuild will not flag the build as unsuccessful just because we print an error in the output, since "error(clang):" doesn't seem to match the regex it's using. 2) It becomes more clear that the diagnostic is coming from clang as supposed to cl.exe. Differential Revision: http://llvm-reviews.chandlerc.com/D1735 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc40bf9ed03b5cca61d7de9fd0cc925a11935eb0 |
|
20-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: implement custom search for cl.exe in /fallback mode This solves the problem of fallback onto ourselves if clang-cl has been renamed to cl.exe and put on the PATH, as happens with the VS integration. Differential Revision: http://llvm-reviews.chandlerc.com/D1731 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4123b92f915fb27855ddaa294b0c7de7aa6c6274 |
|
20-Sep-2013 |
Alexander Potapenko <glider@google.com> |
[ASan] Do not imply -undefined dynamic_lookup when linking dylibs with -fsanitize=address. Instead add the ASan runtime to the linker command line so that only the ASan API functions can be undefined in the target library. Fixes http://llvm.org/bugs/show_bug.cgi?id=17275 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191076 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c8ba0a0acd30f0b56d08a3a0947f68ac01a40730 |
|
19-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: implement /fallback mode When this flag is enabled, clang-cl falls back to cl.exe if it cannot compile the code itself for some reason. The idea is to use this to help build projects that almost compile with clang-cl, except for some files that can then be built with the fallback mechanism. Differential Revision: http://llvm-reviews.chandlerc.com/D1711 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191034 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cdc532c78df8c559e3490f7006aa4a9130b70da9 |
|
19-Sep-2013 |
Amara Emerson <amara.emerson@arm.com> |
[ARMv8] Add crypto-neon-fp-armv8 -mfpu option in driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
76da17821632cf7d8f1b8faf4e011c2fd384a9e9 |
|
19-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Don't warn about overriding /MD with /MT, /Fo with another /Fo, etc. I put in the warnings because MSVC has them, but I don't think they're very useful. Clang does not warn about overriding flags in general, e.g. it's perfectly fine to have -fomit-frame-pointer followed by -fno-omit-frame-pointer. We should focus on warning where things get confusing, such as with the /TP and /TC options. In "clang-cl /TC a.c /TP b.cc", the user might not realize that the /TP flag will apply to both files, and we warn about that. Differential Revision: http://llvm-reviews.chandlerc.com/D1718 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8c64c183054f6528aff4d6cca6aba462033ed1a1 |
|
18-Sep-2013 |
Reid Kleckner <reid@kleckner.net> |
Claim compatibility with VS 2012 by default This will define _MSC_VER to 1700 by default and avoid linker errors from /failifmismatch linker directives in the C++ standard headers. Most people trying out the Visual Studio integration are using 2012, since that's the only version that clang-format works with. This way they don't have to pass funky -Xclang -fmsc-version=1700 flags just to link against the standard C++ runtime. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190908 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dce3ce3686eed399b465742b1e2388915b438e05 |
|
17-Sep-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Don't try to handle files that are already ARC'ified, this is not possible currently. rdar://14461559 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d8df3f70930b2251119ed363a7fde737c76af784 |
|
17-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: ignore compile-only options in link-only invocations. Previously we would warn about unused arguments such as /MD when linking. Clang already has logic to ignore compile-only options, e.g. for -D and -U. This patch extends that to include clang-cl's compile-only options too. Also, some clang-cl options should always be ignored. Doing this earlier means they get ignored both for compilation and link-only invocations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190825 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
57b1da1588a3f5785ad8bd5d9f2d795d685e1058 |
|
14-Sep-2013 |
Cameron Esfahani <dirty@apple.com> |
Clean up some Triple usage in clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190737 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0f43a6daddd41722a4183a49b344f85b5aefbb33 |
|
14-Sep-2013 |
Eric Christopher <echristo@gmail.com> |
Add support for -ggnu-pubnames matching the llvm support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190729 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5df4045db5e10408da7e33b0df7df553da2fee68 |
|
13-Sep-2013 |
Renato Golin <renato.golin@linaro.org> |
Add more Cortex CPUs and tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190703 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2b33b7e978f5e47b6f0a1f264b77eb110966edf0 |
|
13-Sep-2013 |
Joey Gouly <joey.gouly@arm.com> |
[ARMv8] Change the naming of some options to be more consistent. Clang side changes for LLVM r190692. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190693 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
42ade496f79d2b9b1ff9fbdc30dd025c168be7a3 |
|
11-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Warn about overriding /MD with /MT etc. This also bakes the /M options into a separate option group to make them easier to refer to from the code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190529 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e4814134df9918ad1414d6f4c6308e0ec0e2fcd2 |
|
11-Sep-2013 |
Timur Iskhodzhanov <timurrrr@google.com> |
Fix the ASan dll_thunk path git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190516 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2956ef43da9c0e7bce8fae4a015255a2c19458bb |
|
11-Sep-2013 |
Nico Rieck <nico.rieck@gmail.com> |
Add -fansi-escape-codes option Some build systems use pipes for stdin/stderr. On nix-ish platforms colored output can be forced by -fcolor-diagnostics. On Windows this option has no effect in these cases because LLVM uses the console API (which only operates on the console buffer) even if a console wrapper capable of interpreting ANSI escape codes is used. The -fansi-escape-codes option allows switching from the console API to ANSI escape codes. It has no effect on other platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6d0a8d56b4386bd3f1091bf15d88491ad1299913 |
|
10-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Support building DLLs (PR17083) This adds driver support for building DLLs (the /LD and /LDd flags). It basically does two things: runtime selection and passing -dll and -implib to the linker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b647552ab7dfdb32edf0081568db1fceec222397 |
|
10-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: use -fdiagnostics-format=msvc by default This allows for navigating to errors within the MSVC IDE by clicking on the diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e9813b386cb3012d11006cf7d3b2019688a5f502 |
|
05-Sep-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Tweak implementation of -Wwrite-strings to better match the behavior of current GCCs: * In C, as before, if the "warning flag" is enabled, warnings are produced by forcing string literals to have const-qualified types (the produced warnings are *not* -Wwrite-strings warnings). However, more recent GCCs (at least 4.4 onwards) now take -w into account here, so we now do the same. * In C++, this flag is entirely sane: it behaves just like any other warning flag. Stop triggering -fconst-strings here. This is a bit cleaner, but there's no real functionality change except in the case where -Xclang -fno-const-strings is also specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6155fbe1f6674eb0aab98156925938fec558e335 |
|
04-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove the -fuse-gold-plugin driver option. * It was redundant with -flto. * It was confusing since -uAnythingElse is a different option. * GCC uses -fuse-linker-plugin, so it was not even a compatibility option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ddffa1eda85892722cad4b9f459566e48c70baf |
|
30-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Pass -incremental:no to linker when using ASan git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b69f9e0ab44e67ae4a36ab28e4e185078f2346ee |
|
29-Aug-2013 |
Renato Golin <renato.golin@linaro.org> |
use the last passed -munaligned-access / -mno-unaligned-access Passing inconsistent munaligned-access / mno-unaligned-access flags, intentionally resulted in a warning and the flag no-unaligned-access being used. Gcc does, at least in practice, use the last flag in such a case. This patch updates clang behaviour accordingly; use the last flag or base alignment behaviour on the target (which llvm will do if no flag is explicitly passed) Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189542 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
324cc03788cbf97f680511b6a91adccff9d9c261 |
|
28-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Pass -debug to the linker when using -fsanitize=address git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189496 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cf5691edd7460833b6f823dbe5b57e32fb7a93ad |
|
28-Aug-2013 |
Hal Finkel <hfinkel@anl.gov> |
Revert r189440 - Disable loop vectorizer unrolling when no unrolling requested As Chandler pointed out, we should not be using -backend-option because this will cause crashes for users of the tooling interface, etc. A better way to fix this will be to provide the unrolling pass-manager flag to the loop vectorizer directly. Original commit message: Disable loop vectorizer unrolling when no unrolling requested In addition to the regular loop unrolling transformation, the loop vectorizer can also unroll loops. If no unrolling has specifically been requested (by -fno-unroll-loops), and the loop vectorizer will be used, then add the backend option to (also) prevent the loop vectorizer from unrolling loops. I confirmed with Nadav (off list) that disabling vectorizer loop unrolling when -fno-unroll-loops is provided is the desired behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f95b589220c9b2d28598a1e47831e75e890b7c80 |
|
28-Aug-2013 |
Hal Finkel <hfinkel@anl.gov> |
Disable loop vectorizer unrolling when no unrolling requested In addition to the regular loop unrolling transformation, the loop vectorizer can also unroll loops. If no unrolling has specifically been requested (by -fno-unroll-loops), and the loop vectorizer will be used, then add the backend option to (also) prevent the loop vectorizer from unrolling loops. I confirmed with Nadav (off list) that disabling vectorizer loop unrolling when -fno-unroll-loops is provided is the desired behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189440 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c4da0c4c84521367e84632f5f627b3439e61bcd |
|
27-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Support -fsanitize=address This exposes the -fsanitize=address option and adds the runtime library to the link command. Differential Revision: http://llvm-reviews.chandlerc.com/D1526 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55ee1ebeb0b9f7b26919c325582f1e6a05df4ec8 |
|
27-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Warn that -O4 is the same as -O3. We error on -O5 and higher. While it is tempting to do the same for -O4, I agree with Jordan Rose: we should warn for a release at least first. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
168de198e5b2333b9135a5c00546da558dbb8527 |
|
26-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify now that -O4 just maps to -O3 and -O is an alias of -O2. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
02ab7d3c0e1e5278ca0451dc846aedcf45e623cf |
|
24-Aug-2013 |
Renato Golin <renato.golin@linaro.org> |
Add gcc ARM flags -munaligned-access / -mno-unaligned-access clang already had a mstrict-align which mentiones "Force all memory accesses to be aligned (ARM only)". On gcc arm this is controlled by -munaligned-access / -mno-unaligned-access. Add the gcc versions to the frontend and make -mstrict-align and alias to -mno-unaligned-access and only show it in clang -cc1 -help. Since the default value for unaligned accesses / strict alignment depends on the tripple, both the enable and disable flags are added. If both are set, the no-unaligned-access is used. Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189175 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
45bd2946df2ff7460b7daf06a4fe34de8a58b8cf |
|
24-Aug-2013 |
Renato Golin <renato.golin@linaro.org> |
Add the -ffixed-r9 flag for ARM. This patch adds the -ffixed-r9 flag to clang to instruct llvm to globally preserve the contents of r9. The flag is added to the newly created ARM specific group. While at it, also place marm / mno-thumb in that group. Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189174 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5389b84a780ac17b63c10ad97cd5e3aaa41595b7 |
|
21-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Move -mfpmath handling to -cc1 and implement it for x86. The original idea was to implement it all on the driver, but to do that the driver needs to know the sse level and to do that it has to know the default features of a cpu. Benjamin Kramer pointed out that if one day we decide to implement support for ' __attribute__ ((__target__ ("arch=core2")))', then the frontend needs to keep its knowledge of default features of a cpu. To avoid duplicating which part of clang handles default cpu features, it is probably better to handle -mfpmath in the frontend. For ARM this patch is just a small improvement. Instead of a cpu list, we check if neon is enabled, which allows us to reject things like -mcpu=cortex-a9 -mfpu=vfp -mfpmath=neon For X86, since LLVM doesn't support an independent ssefp feature, we just make sure the selected -mfpmath matches the sse level. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bc1e54587bf1ed18abadc566423777ddb3be78ac |
|
21-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Move the logic for selecting the last feature in the command line to the driver. This is a partial revert of r188817 now that the driver handles -target-feature in a single place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
146dbbff2c1ed5f97d0b71f9a9f0a45b929ec10b |
|
21-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Centralize the handling of -target-feature. No functionality change other than changing the order of -target-feature relative to other -cc1 command line arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b330e4078cf2d83f93619516580d183a618e9a98 |
|
21-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Centralize the handling of -target-cpu (-cc1, -cc1as) and -mcpu (gold plugin). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188837 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c84ed54f9786638c228fdc9b4db9920fa676d48d |
|
20-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Centralize the logic for handling -m* options and fix pr16943. This moves the logic for handling -mfoo -mno-foo from the driver to -cc1. It also changes -cc1 to apply the options in order, fixing pr16943. The handling of -mno-mmx -msse is now an explicit special case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c6c822327af1ed37de93cfd6cf8d85ae7709cac |
|
19-Aug-2013 |
NAKAMURA Takumi <geek4civic@gmail.com> |
clang/Driver: [PR12920] Don't forward any -W arguments to gcc-as and gcc-ld. AFAIK, there are no -W options for gcc-as and gcc-ld. It caused failure to build clang with gcc-4.7 on cygwin. FIXME: Could we recategorize Options for gcc-as and gcc-ld? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188668 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1b8f12d46c10169bb949372ec5fc4c58afc2ced1 |
|
19-Aug-2013 |
Alexey Samsonov <samsonov@google.com> |
Move SanitizerArgs to the clang Driver Summary: This change turns SanitizerArgs into high-level options stored in the Driver, which are parsed lazily. This fixes an issue of multiple copies of the same diagnostic message produced by sanitizer arguments parser. Reviewers: rsmith Reviewed By: rsmith CC: chandlerc, eugenis, cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1341 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188660 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ebc313d502b8fbfb7cdebd44c52cfc6490fd8dc7 |
|
15-Aug-2013 |
Renato Golin <renato.golin@linaro.org> |
make arm-use-movt available for all ARM This updates clang according to a pending patch for llvm to rename of the -arm-darwin-use-movt to arm-use-movt to make it available for all of ARM. note: please apply this close to the llvm change. Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188488 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2388b77626beea9fb8a57fbca35b605764d911b2 |
|
14-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
Driver: Forward -Wl, and -Xlink arguments when using windows linker Differential Revision: http://llvm-reviews.chandlerc.com/D1394 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5db9527a2e582c17bc835e6e2a5a8178efa5a1e8 |
|
14-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Support /link option and set target to win32 This adds support for the /link option, which forwards subsequent arguments to the linker. The test for this will only work when targetting win32. Since that's the only target where clang-cl makes sense, use that target by default. Differential Revision: http://llvm-reviews.chandlerc.com/D1388 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1f8d663089adf189f3081d4a31f4fd30c74c3ac3 |
|
14-Aug-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Link in the ubsan runtime when building shared objects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99662a156055de9f46b3cababbf7032e68ed961b |
|
13-Aug-2013 |
Arnold Schwaighofer <aschwaighofer@apple.com> |
Move logic to enable the vectorizer to clang We used to decide whether to really vectorize depending on the optimization level in PassManagerBuilder. This patch moves this decision to the clang driver. We look at the optimization level and whether the f(no-)vectorize is set and decide whether to vectorize. This allows us to simplify the logic in PassManagerBuilder to just a check for whether the vectorizer should run or not. We now do the right thing for: $ clang -O1 -fvectorize $ clang -fno-vectorize -O3 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188280 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f15f4daf0e225ea8463fe2ef522c009c95ffc9c |
|
13-Aug-2013 |
Robert Lytton <robert@xmos.com> |
Add XCore target git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188258 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c613b67f4f3e5d11d6af6426fd9b8b6a197d2b6b |
|
12-Aug-2013 |
Jack Carter <jack.carter@imgtec.com> |
[Mips] MSA frontend option support This patch adds -mmsa and -mno-msa to the options supported by clang to enable and disable support for MSA. When MSA is enabled, a predefined macro '__mips_msa' is defined to 1. Patch by Daniel Sanders git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a2148240bd94ef659a9195b87e9cd0023536c01f |
|
10-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify now that llvm::sys::current_path checks $PWD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
746974d52791c6394a0ca16f13c3b32f9129f12a |
|
09-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Don't pass /defaultlib to the linker Since r187945, clang-cl will add the runtime library dependency to the .obj file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8bdc92c01eeb345042b99650c6860b6aaa683ad8 |
|
09-Aug-2013 |
Alexey Samsonov <samsonov@google.com> |
Make SanitizerArgs parsing toolchain-independent git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
708002ede3938256a6223d153a0c040f7a40f5cc |
|
09-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Support /showIncludes This option prints information about #included files to stderr. Clang could already do it, this patch just teaches the existing code about the /showIncludes style and adds the flag. Differential Revision: http://llvm-reviews.chandlerc.com/D1333 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f0f9891b683646f734acb74d938460b354ded3bb |
|
08-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: use MS C++ ABI Differential Revision: http://llvm-reviews.chandlerc.com/D1329 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a32c52367ac31982fa7c2a7ba959dadaf3693f3b |
|
08-Aug-2013 |
Reid Kleckner <reid@kleckner.net> |
Revert "clang-cl: Hook up /Za to prevent adding oldnames.lib dependency" This reverts commit r187991 and adjusts the comment. /Za is much more involved, and we don't want to give anyone the impression we actually support it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187998 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bccf68f0901f6457ff00874ef57644100a1c7a59 |
|
08-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Hook up /Za to prevent adding oldnames.lib dependency The /Za flag should probably do more, but let's start with this. Differential Revision: http://llvm-reviews.chandlerc.com/D1320 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
442c60a92b6e3980e0f69a195a264ec2ffa2dd6d |
|
08-Aug-2013 |
Alexey Samsonov <samsonov@google.com> |
Move SanitizerArgs implementation from .h to .cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b26404a7505dab7ec3a16f6e3b85f95cfd59ba93 |
|
08-Aug-2013 |
Chandler Carruth <chandlerc@gmail.com> |
The only useful loop unrolling flag to give realistically is '-fno-unroll-loops'. The option to the backend is even called 'DisableUnrollLoops'. This is precisely the form that Clang *didn't* support. We didn't recognize the flag, we didn't pass it to the CC1 layer, and even if we did we wouldn't use it. Clang only inspected the positive form of the flag, and only did so to enable loop unrolling when the optimization level wasn't high enough. This only occurs for an optimization level that even has a chance of running the loop unroller when optimizing for size. This commit wires up the 'no' variant, and switches the code to actually follow the standard flag pattern of using the last flag and allowing a flag in either direction to override the default. I think this is still wrong. I don't know why we disable the loop unroller entirely *from Clang* when optimizing for size, as the loop unrolling pass *already has special logic* for the case where the function is attributed as optimized for size! We should really be trusting that. Maybe in a follow-up patch, I don't really want to change behavior here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b3574796d7cc0113e54b6516fc16e17ca09459fb |
|
08-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: Support the run-time selection options (/MD, /MT et al.) These flags set some preprocessor macros and injects a dependency on the runtime library into the object file, which later is picked up by the linker. This also adds a new CC1 flag for adding a dependent library. Differential Revision: http://llvm-reviews.chandlerc.com/D1315 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2eeed711beec49dfad5d3a3f16fdfca4b2f3acf0 |
|
08-Aug-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
DataFlowSanitizer; Clang changes. DataFlowSanitizer is a generalised dynamic data flow analysis. Unlike other Sanitizer tools, this tool is not designed to detect a specific class of bugs on its own. Instead, it provides a generic dynamic data flow analysis framework to be used by clients to help detect application-specific issues within their own code. Differential Revision: http://llvm-reviews.chandlerc.com/D966 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
056ec12ca14ee5014ea49786f719ceaa299a7e19 |
|
05-Aug-2013 |
Daniel Jasper <djasper@google.com> |
Add option to disable module loading. This patch was created by Lawrence Crowl and reviewed in: http://llvm-reviews.chandlerc.com/D963 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bd77c59acc58e797756b0fcc6739319587e95d85 |
|
03-Aug-2013 |
Bob Wilson <bob.wilson@apple.com> |
Only use the Darwin linker's -export_dynamic option with supported versions. Related to <rdar://problem/14578094>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187680 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
09c3463441ffca4bde5e8612222f8cc6ae0ec9a5 |
|
03-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
Re-commit r187637: "clang-cl: add more options" > This adds a bunch of options to clang-cl. Notably, this includes > all the options that get passed when doing a default build of a > command-line project with msbuild.exe in Debug and Release modes, > and I believe all flags from Reid's original patch. The original commit was reverted in r187640 after it broke the Mac build. This should now be fixed, by Clang r187668, LLVM r187675, and putting a -- before %s in the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ac253c4da163fb5ea43c612e1b52f4f1224e2c2 |
|
02-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Convert last use of st_dev in clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187654 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e7a9a67f9842dcdc13d322a23110f42bd025a306 |
|
02-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
Revert r187537 "clang-cl: add more options" It broke the "phase1 - sanity" buildbot. Reverting until we can figure out what's going on. And Eric says it broke all current Mac builds actually. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ac8b5f53d4646b4f76565a03ae2a85b6c67cdcc1 |
|
02-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
clang-cl: add more options This adds a bunch of options to clang-cl. Notably, this includes all the options that get passed when doing a default build of a command-line project with msbuild.exe in Debug and Release modes, and I believe all flags from Reid's original patch. Differential Revision: http://llvm-reviews.chandlerc.com/D1264 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d836061745ec078e61b6532dddcb968e503dfb06 |
|
02-Aug-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Revert "If -fslp-vectorize or -fno-slp-vectorize are given, honor this selection. If no flag is given, enable it for -O3." This reverts commit r187630. Looks like it is breaking the bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bd30bf8ac99b433e221cdf444cc2d11fc1753984 |
|
02-Aug-2013 |
Nadav Rotem <nrotem@apple.com> |
If -fslp-vectorize or -fno-slp-vectorize are given, honor this selection. If no flag is given, enable it for -O3. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f94c0600416c2457aeeda6823f0cf66782af3427 |
|
01-Aug-2013 |
Nadav Rotem <nrotem@apple.com> |
Enable the SLP-vectorizer by default git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187596 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f10fa8d04773410860cd347aebf77c27434aaf26 |
|
01-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
Options: Use AliasArgs for -O -> -O2 translation. This way we can do the translation in the .td file rather than manually. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b793f0d3448a15277cd6b6cc4ba558ded39a8084 |
|
01-Aug-2013 |
Tim Northover <tnorthover@apple.com> |
AArch64: initial NEON support Patch by Ana Pazos - Completed implementation of instruction formats: AdvSIMD three same AdvSIMD modified immediate AdvSIMD scalar pairwise - Completed implementation of instruction classes (some of the instructions in these classes belong to yet unfinished instruction formats): Vector Arithmetic Vector Immediate Vector Pairwise Arithmetic - Initial implementation of instruction formats: AdvSIMD scalar two-reg misc AdvSIMD scalar three same - Intial implementation of instruction class: Scalar Arithmetic - Initial clang changes to support arm v8 intrinsics. Note: no clang changes for scalar intrinsics function name mangling yet. - Comprehensive test cases for added instructions To verify auto codegen, encoding, decoding, diagnosis, intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187568 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b087a5d13d6edd8b54fbb0683d6b9d1768a86c47 |
|
01-Aug-2013 |
Hans Wennborg <hans@hanshq.net> |
Make -m[no-]pascal-strings an alias of -f[no]pascal-strings in the .td file This way we don't have to translate it manually in Clang::ConstructJob. Differential Revision: http://llvm-reviews.chandlerc.com/D1249 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
adbb455012fff8c9a72ddf24290d25d035fd056d |
|
31-Jul-2013 |
Hans Wennborg <hans@hanshq.net> |
Fix a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ea7fb0ce25acc04664a2e7c2b24af03cef2c0d1f |
|
26-Jul-2013 |
Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
[PowerPC] Support powerpc64le as a syntax-checking target. This patch provides basic support for powerpc64le as an LLVM target. However, use of this target will not actually generate little-endian code. Instead, use of the target will cause the correct little-endian built-in defines to be generated, so that code that tests for __LITTLE_ENDIAN__, for example, will be correctly parsed for syntax-only testing. Code generation will otherwise be the same as powerpc64 (big-endian), for now. The patch leaves open the possibility of creating a little-endian PowerPC64 back end, but there is no immediate intent to create such a thing. The new test case variant ensures that correct built-in defines for little-endian code are generated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
19caff4f9a38c23bffdc8ff801a36026ab61ebd7 |
|
26-Jul-2013 |
Hans Wennborg <hans@hanshq.net> |
Options.td: fold the NoForward flag into DriverOption They seemed to have the same implications, and this makes for one less flag to worry about. Differential Revision: http://llvm-reviews.chandlerc.com/D1219 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187168 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
73168db4feadbb5e8915e71369aad33292860427 |
|
25-Jul-2013 |
David Blaikie <dblaikie@gmail.com> |
Don't forward all assembler arguments untouched to -cc1as Use the same filtering for assembly arguments to -cc1as as we do for -cc1, this allows a consistent (& more useful) diagnostic experience for users (rather than getting an error from -cc1as (which a user shouldn't really be thinking about) about --foo, they get an error from clang about --foo in -Wa,) I'm sort of surprised by the separation of -cc1as & the separate argument handling, etc, but at least this removes a little bit of the duplication. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187156 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8f4269a401814bbe27ff2756131e398fd1708fac |
|
25-Jul-2013 |
Eli Bendersky <eliben@google.com> |
Simplify code - no functionality change. getToolChain().getTriple().getArch() can be replaced by getToolChain().getArch() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f3ecf899b55216d6de90ad67e583df064716cfc6 |
|
24-Jul-2013 |
Eli Bendersky <eliben@google.com> |
Pass -fno-math-builtin from the Clang driver to -cc1 for the l32 arch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cdbc3b36bd6167fcb1e2de080e0d9bcd35b166ea |
|
19-Jul-2013 |
Akira Hatanaka <ahatanaka@mips.com> |
[mips] Add support for command-line options -mno-check-zero-division and -mcheck-zero-division. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5c92b9ab4e4dce3233ea3e400a02c443f9afd372 |
|
19-Jul-2013 |
Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
[SystemZ] Add -march= command-line option git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0e373ecd52d595ebfc3054efdbacd7e6815bcd1e |
|
19-Jul-2013 |
Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
[SystemZ] Enable frame-pointer elimination for -O1 and above Copies the x86 behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186674 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
76b86c2e79a58910a641d449f229889d671d8a38 |
|
18-Jul-2013 |
Hans Wennborg <hans@hanshq.net> |
Turn Driver::CCCIsCXX and CCCIsCPP into a single Mode enum, and add a new option --driver-mode= to control it explicitly. The CCCIsCXX and CCCIsCPP flags were non-overlapping, i.e. there are currently really three modes that Clang can run in: gcc, g++ or cpp, so it makes sense to represent them as an enum. Having a command line flag to control it helps testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186605 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d58915eae3849225070230c3b89ebf3d987a3270 |
|
15-Jul-2013 |
Aaron Ballman <aaron@aaronballman.com> |
Replacing an empty switch with its moral equivalent. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d412999a3da6387dbfaf00f7647132082e94310e |
|
09-Jul-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
ObjC migrator: Add -objcmt-migrate-property to do property migration. Also, fixes an old bug where older migration flags were not being checked for properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185948 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9e0b647bccb9e22936e1dacbe33ec7f941764d87 |
|
03-Jul-2013 |
Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
Fix PR16454: Don't #include altivec.h when preprocessing assembly. When the -maltivec flag is present, altivec.h is auto-included for the compilation. This is not appropriate when the job action is to preprocess a file containing assembly code. So don't do that. I was unable to convert the test in the bug report into a regression test. The original symptom was exposed with: % touch x.S % ./bin/clang -target powerpc64-unknown-linux-gnu -maltivec -S -o - x.S I tried this test (and numerous variants) on a PPC64 system: ---------------------------------------------------------------------------- // RUN: touch %t // RUN: %clang -maltivec -S %t -o - | FileCheck %s // Verify that assembling an empty file does not auto-include altivec.h. // CHECK-NOT: static vector ---------------------------------------------------------------------------- However, this test passes for some reason even on a clang built without the fix. I'd be happy to add a test case but at this point I'm not able to figure one out, and I don't want to hold up the patch unnecessarily. Please let me know if you have ideas. Thanks, Bill git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185544 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ed38d8046e642c2d81775ada2ecee821f2e2a02 |
|
03-Jul-2013 |
Manman Ren <mren@apple.com> |
Debug Info: set default to gdwarf-2 for Darwin. Darwin systems currently do not support dwarf version 3 or above. When we are ready, we can bump the default to gdwarf-4 for Darwin. For other systems, the default is dwarf version 3, if everything goes smoothly, we can bump the version to 4. rdar://13591116 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185483 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cbed3bfe79bbd16ced68078c7385bd21151f44cd |
|
27-Jun-2013 |
Joey Gouly <joey.gouly@arm.com> |
Add support for passing v8fp options via -mfpu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4ec8d5b63d3e2a2c0d9f35243e5f798a89cd97bd |
|
26-Jun-2013 |
Joey Gouly <joey.gouly@arm.com> |
Add support for passing '-target armv8' through the Driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f8edb990b845691d2c4e8553a7bdf72e292d7734 |
|
25-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use PathV1.h in Tools.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
829e88d5ccd11381d8844c9825b5b36e9a9ea983 |
|
25-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use the simpler version of llvm::sys::fs::exists. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8db7ec0779d9ed6a8d4762bfeda16bdc3f8f2133 |
|
25-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use the new llvm::sys::EnvPathSeparator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fdf137b9073aa52423183fe886d072bc3b7d3889 |
|
25-Jun-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Make -vectorize-... proper cc1 flags instead of abusing -backend-option. Fixes usage of clang as a library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f75ece4a7e77583d9ac8172e3e44e0131a4061f4 |
|
24-Jun-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt/driver] For the -ccc-arcmt-* flags, claim them when -fno-objc-arc is passed to avoid the "argument unused during compilation" warning. rdar://14240566 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80a393ead5632b8f3343c0348e8c50157cd7e922 |
|
24-Jun-2013 |
Chandler Carruth <chandlerc@gmail.com> |
The profile library must come before the C library so that it can use atexit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9db37cd0aa8fa6ec840bfd9166090be5a39b691a |
|
23-Jun-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Fix the addition of Clang's profile runtime library to the link step when specifying --coverage (or related) flags. The system for doing this was based on the old LLVM-hosted profile_rt library, and hadn't been updated for Linux to use the new compiler-rt library. Also, it couldn't possibly work on multiarch or biarch systems in many cases. The whole thing now works much the same as the sanitizer libraries that are built and used out of the compiler-rt repo. Note that other target OSes haven't been updated because I don't know if they're doing anything special with the installation path of profile_rt. I suspect however that *all* of these are wrong and would encourage maintainers of each target to take a hard look at how compiler-rt runtime libraries are linked on their platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184666 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e40bc4b791eeb38a2f43e5a099a1c06048dc8c15 |
|
20-Jun-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Fix typo in r184308. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184391 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4cd90dfbf4e6ddfb34c4c14c2e06ac9fca6154d8 |
|
19-Jun-2013 |
Reid Kleckner <reid@kleckner.net> |
[Driver] Don't forward source file input args to gcc gcc's inputs are already added by the InputInfoList passed to Action::ConstructJob. Fixes a regression from r183989. This was manifesting when targetting mingw as an extra input argument to gcc when assembling. It presumably affects other situations where clang calls gcc. Prior to r183989, forwardToGCC() was returning false because the INPUT option defined in OptParser.td had the DriverOption flag set on it. LLVM's Option library does not set this flag for INPUT. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D999 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184308 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc0f91cf0673775ce4b8b174dbb05ad2e4e6cd01 |
|
19-Jun-2013 |
Manman Ren <mren@apple.com> |
Debug Info: support for gdwarf-2 gdwarf-3 gdwarf-4 These options will add a module flag with name "Dwarf Version". The behavior flag is currently set to Warning, so when two values disagree, a warning will be emitted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184276 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b8b52972c72b2ba6fe171c522e5d3d7d69503021 |
|
18-Jun-2013 |
John McCall <rjmccall@apple.com> |
Add support for -fpcc-struct-return. Patch by Arthur O'Dwyer! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184166 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3e8ac1b4d50a3b13bdda99f9d842b0127315ecf0 |
|
18-Jun-2013 |
Eric Christopher <echristo@gmail.com> |
Accept and ignore -fdebug-types-section for now. This will be used later with dwarf4 type hashing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a372f40dac73b69936f6a713df0808c740bb326c |
|
17-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Include PathV1.h only where it is used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184090 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b1e25a1bc03292dc538d336573e0be1490223171 |
|
14-Jun-2013 |
Reid Kleckner <reid@kleckner.net> |
[Driver] Refactor clang driver to use LLVM's Option library The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183989 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4889a1fe91b0fd590e7beff16017086336064e6c |
|
13-Jun-2013 |
Tim Northover <tnorthover@apple.com> |
Teach clang about the armv4/armv4t distinction When choosing a default CPU, clang used to pick ARM7TDMI (which has Thumb) even when the more restrictive armv4 triple was specified. This should fix that. Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
61f0868f1920f80814e6d0195a1bc5b0f0bfc1b1 |
|
08-Jun-2013 |
Eric Christopher <echristo@gmail.com> |
When we're compiling with -pg make sure to link with gcrt1.o on linux. Be sure to do this always, this matches the behavior for the gcc driver. Fixes PR16251. Based on a patch by Qiao Yang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c47b6f3c9efcd6b3039856a39665a3aef1ed334e |
|
06-Jun-2013 |
Eric Christopher <echristo@gmail.com> |
If we're splitting the dwarf for fission and don't want to use the integrated assembler then go ahead and still split the dwarf anyhow. Add two tests, one to exercise existing behavior of not splitting when we're just emitting assembly files and the other to test that we split when we're not in integrated as mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9adba39460dfa5282b75dbd27db44ccfb4d1f511 |
|
05-Jun-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Default to PIE and using stack protection on OpenBSD. Patch by Matthew Dempsky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183295 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bdaa13418851be5cc1ca3be88fbd82b15efecde7 |
|
27-May-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Driver: implement --dyld-prefix option. This option is used to select a dynamic loader prefix to be used at runtime. Currently this is implemented for the Linux toolchain. Differential Revision: http://llvm-reviews.chandlerc.com/D851 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182744 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
050309fdc6d8416b217f651141d5f391512b1041 |
|
27-May-2013 |
Sergey Matveev <earthdok@google.com> |
Add -fsanitize=leak to driver options. If -fsanitize=leak is specified, link the program with the LeakSanitizer runtime. Ignore this option when -fsanitize=address is specified, because AddressSanitizer has this functionality built in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182729 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3a8aff9493b6930c34f8efd5b6184fff3ce01cdb |
|
24-May-2013 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Add -lrt to sanitizer link arguments. Sanitizer runtime intercepts functions from librt. Not doing this will fail if the librt dependency is not present at program startup (ex. comes from a dlopen()ed library). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b69557ed6f6d5063705e60f771a612aa62ec6b22 |
|
18-May-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Fix a logic bug in the handling of -fmath-errno in the driver. We would imply -fno-math-errno if the user passed -fno-fast-math OR -ffast-math, regardless of in which order and regardless of the tool chain default. I've fixed this to follow the logic: 1) If the last dominating flag is -fno-math-errno, -ffast-math, or -Ofast, then do not use math-errno. 2) If the last dominating flag is an explicit -fmath-errno, do use math-errno. 3) Otherwise, use the toolchain default. This, for example, allows the flag sequence '-ffast-math ... -fno-fast-math' with no mention of '-fmath-errno' or '-fno-math-errno' to preserve the toolchain default. Most notably, this should prevent users trying to disable fast-math optimizations on Darwin and BSD platforms from simultaneously enabling (pointless) -fmath-errno. I've enhanced the tests (after more reorganization) to cover this and other weird permutations of flags and targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6bdc4c65c0bfac1f42c3b57680ac4e45b622b266 |
|
11-May-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Add -mldc1-sdc1 / -mno-ldc1-sdc1 command line options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181660 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e7565635002ce0daaaf4b714cdb472507af462ee |
|
08-May-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
C++1y: Add a step limit to constexpr evaluation, to catch runaway loops. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b8409215523e5478b8b0aa9cdcd10038cf7651fe |
|
06-May-2013 |
Ulrich Weigand <ulrich.weigand@de.ibm.com> |
Add SystemZ support This patch then adds all the usual platform-specific pieces for SystemZ: driver support, basic target info, register names and constraints, ABI info and vararg support. It also adds new tests to verify pre-defined macros and inline asm, and updates a test for the minimum alignment change. This version of the patch incorporates feedback from reviews by Eric Christopher and John McCall. Thanks to all reviewers! Patch by Richard Sandiford. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fd4aa4bec35161615fcee1db2c39ca1c25b1426e |
|
06-May-2013 |
Tom Stellard <thomas.stellard@amd.com> |
R600: Update GPU variants in -mcpu option We've added the RS880 variant in the LLVM backend to represent an R600 GPU with no vertex cache, so we need to update the GPU mappings for -mcpu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9dbfc6135580357428966ff05427f654dba44cd3 |
|
30-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Pass -mips16, -mmicromips, -mdsp and -mdspr2 flags to the assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180775 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99d2eb487f8d9fbb4e74d0b7154eff5b2232e10f |
|
27-Apr-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Exit early when $PWD isn't set. Remove unused unistd.h include. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6089adc7310e5e70ac42b5d942344cddb8a48f55 |
|
27-Apr-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Use LLVM's preferred current_path API instead of calling getcwd(3) directly. The existing code also failed to allocate a buffer for it so getcwd corrupted the stack. sys::fs::current_path takes care of the memory management. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7c993747da28138cadb40fd0b34587cf3a9be499 |
|
27-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Revert r180652 and 180658 and temporarily #define MAXPATHLEN to make the gdb tests and the Windows bots happy. The Path::GetCurrentDirectory API is not equivalent to ::getcwd(), so r180652 causes a gdb tests to fail. On the other hand, <sys/param.h> isn't defined on Windows systems, so that causes Windows builds to fail. rdar://12237559 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d22fa209d194c8ab676498b13ff5e25cb07d17d |
|
27-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
Fix the dangling pointer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180658 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e1c4ac314f69b1590dd3046233b6530cc154ebb5 |
|
27-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Use the llvm equivalent of getcwd(). Hopefully, this makes the Windows bots recover. rdar://12237559 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b1c8122b43058fc0c049a9c6fc8aaef044005798 |
|
26-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Implement the -fdebug-compilation-dir in a way that is compatible with gcc. No test case included as I'm having problems finding a test case where the inode/dev don't match. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3142279baca34d4c9c9054e6848215740896b1bb |
|
24-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Put -fvectorize under the -Ofast umbrella flag. Part of rdar://13622687 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b82e117e4af1062b9f0d1aab89abf4aa804558f1 |
|
24-Apr-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Improve the implementation of the -Ofast option. Specifically, allow the flags that fall under this umbrella (i.e., -O3, -ffast-math, and -fstrict-aliasing) to be overridden/disabled with the individual -O[0|1|2|s|z]/-fno- flags. This also fixes the handling of various floating point optimization flags that are modified by -ffast-math (and thus -Ofast as well). Part of rdar://13622687 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180204 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c7e2a4e08a14ff04de41146c418b71cd577c0a0d |
|
21-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Convert a GNU style Mips ABI name to the name accepted by LLVM Mips backend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179981 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9753d462fabba1db75a977cb1f75ea66e9081120 |
|
17-Apr-2013 |
Nico Weber <nicolasweber@gmx.de> |
Add support for gcc's spelling of -fcolor-diagnostics. See http://gcc.gnu.org/onlinedocs/gcc/Language-Independent-Options.html git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4910132078b4b8852fc46657f3150ed472f4654 |
|
16-Apr-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Modules] Convert module specific -fno-modules-autolink into -fno-autolink. - There is no reason to have a modules specific flag for disabling autolinking. Instead, convert the existing flag into -fno-autolink (which should cover other autolinking code generation paths like #pragmas if and when we support them). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c6a9b052373f656268557904d229a8ad8b7686f |
|
15-Apr-2013 |
Nadav Rotem <nrotem@apple.com> |
Add a new flag -vectorize-slp-aggressive to enable Hals BB vectorizer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
50ea96332b5dae54cc724f924b343084cb9ea834 |
|
15-Apr-2013 |
Nadav Rotem <nrotem@apple.com> |
Rename the slp-vectorizer clang/llvm flags. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
321ae79aae228aa069795e78449a95fa35e2abfd |
|
14-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Support -mmicromips / -mno-micromips command line options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a8141614514634c7bd0ee4bc96e19fb3c10f72f2 |
|
14-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Fix indentation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179488 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7c06cba04d7ab12a46bbdc5191a794bd9579ddd3 |
|
14-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Follow-up to r179481. Reduce code duplication. Use AddTargetFeature() routine to handle -msingle-float / -mdouble-float options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ed42b86da17b8fc54480bf34e1965e20eee89f5 |
|
14-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Remove "single" from the list of valid MIPS float ABI names. Add two new options –msingle-float and –mdouble-float. These options can be used simultaneously with float ABI selection options (-mfloat-abi, -mhard-float, -msoft-float). They mark whether a floating-point coprocessor supports double-precision operations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7f74c6b77ac7b3231d63093692b85bb2ebd07ef |
|
13-Apr-2013 |
Simon Atanasyan <simon@atanasyan.com> |
Remove duplicated comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179454 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8cfb720c857e66b7fb64bf3cb80fd82fcd0c0ac3 |
|
12-Apr-2013 |
John McCall <rjmccall@apple.com> |
Fix the driver logic for recent versions of DragonFly. Patch by John Marino. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f6f77bd900ccc847c6601a34457c8b5f3cb48219 |
|
11-Apr-2013 |
Bob Wilson <bob.wilson@apple.com> |
Add a new -mimplicit-float option for symmetry with -mno-implicit-float. This new option is the default, but it is useful to have a flag to override -mno-implicit-float by putting -mimplicit-float later on the command line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
29828082ff7319f3c2e95e7bcc3cf6cc71f0da30 |
|
11-Apr-2013 |
Jyotsna Verma <jverma@codeaurora.org> |
Hexagon: Remove -g option from the assembler command line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
708d72a33de05579ba5ca1c22eeea92d1e47a9ee |
|
10-Apr-2013 |
Eric Christopher <echristo@gmail.com> |
For split dwarf we should also run the objcopy action if we're just assembling a file and have passed the option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6fd7d3067dd06584ef3940e88e31fea1a0e83588 |
|
10-Apr-2013 |
Dmitri Gribenko <gribozavr@gmail.com> |
Add an option to parse all comments as documentation comments Patch by Amin Shali. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db68e5a1f239d7d6d2348fef7c492ee99a2b8bbc |
|
09-Apr-2013 |
Alexey Samsonov <samsonov@google.com> |
One more follow-up to r179082 - parse PIC/PIE arguments even on platfroms that force default PIC (like Darwin x86-64), otherwise specifying -fPIC will produce bogus unused argument warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179092 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4a1ea52e1d1a565aa2c5d70b082cad210203224a |
|
09-Apr-2013 |
Alexey Samsonov <samsonov@google.com> |
Follow-up for r179082: more careful handling of -f(no-)sanitize-address-zero-base-shadow on Android git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
52ca70dc304c694923ac804630d88b1d95bfa941 |
|
09-Apr-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
If the user requested a zero-base-shadow sanitizer, infer -pie and -fPIC when appropriate. Differential Revision: http://llvm-reviews.chandlerc.com/D502 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e449edc5bdace60f9d754c32abc5459bc7d94a14 |
|
05-Apr-2013 |
Jordan Rose <jordan_rose@apple.com> |
[analyzer] Re-enable cplusplus.NewDelete (but not NewDeleteLeaks). As mentioned in the previous commit message, the use-after-free and double-free warnings for 'delete' are worth enabling even while the leak warnings still have false positives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b37a73d5c6a0c8bb1f6e363d3b53980e4fa0cead |
|
04-Apr-2013 |
Manman Ren <mren@apple.com> |
Initial support for struct-path aware TBAA. Added TBAABaseType and TBAAOffset in LValue. These two fields are initialized to the actual type and 0, and are updated in EmitLValueForField. Path-aware TBAA tags are enabled for EmitLoadOfScalar and EmitStoreOfScalar. Added command line option -struct-path-tbaa. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7cc0a110bcf3fe9c4d1269ea2ae7e72aa7f37531 |
|
04-Apr-2013 |
Manman Ren <mren@apple.com> |
revert r178784 since it does not have a commit message git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ab4ffe242935ae0dd66fbe0dcc792c1ad38b00c1 |
|
04-Apr-2013 |
Manman Ren <mren@apple.com> |
Index: include/clang/Driver/CC1Options.td =================================================================== --- include/clang/Driver/CC1Options.td (revision 178718) +++ include/clang/Driver/CC1Options.td (working copy) @@ -161,6 +161,8 @@ HelpText<"Use register sized accesses to bit-fields, when possible.">; def relaxed_aliasing : Flag<["-"], "relaxed-aliasing">, HelpText<"Turn off Type Based Alias Analysis">; +def struct_path_tbaa : Flag<["-"], "struct-path-tbaa">, + HelpText<"Turn on struct-path aware Type Based Alias Analysis">; def masm_verbose : Flag<["-"], "masm-verbose">, HelpText<"Generate verbose assembly output">; def mcode_model : Separate<["-"], "mcode-model">, Index: include/clang/Driver/Options.td =================================================================== --- include/clang/Driver/Options.td (revision 178718) +++ include/clang/Driver/Options.td (working copy) @@ -587,6 +587,7 @@ Flags<[CC1Option]>, HelpText<"Disable spell-checking">; def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>; def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>; +def fstruct_path_tbaa : Flag<["-"], "fstruct-path-tbaa">, Group<f_Group>; def fno_strict_enums : Flag<["-"], "fno-strict-enums">, Group<f_Group>; def fno_strict_overflow : Flag<["-"], "fno-strict-overflow">, Group<f_Group>; def fno_threadsafe_statics : Flag<["-"], "fno-threadsafe-statics">, Group<f_Group>, Index: include/clang/Frontend/CodeGenOptions.def =================================================================== --- include/clang/Frontend/CodeGenOptions.def (revision 178718) +++ include/clang/Frontend/CodeGenOptions.def (working copy) @@ -85,6 +85,7 @@ VALUE_CODEGENOPT(OptimizeSize, 2, 0) ///< If -Os (==1) or -Oz (==2) is specified. CODEGENOPT(RelaxAll , 1, 0) ///< Relax all machine code instructions. CODEGENOPT(RelaxedAliasing , 1, 0) ///< Set when -fno-strict-aliasing is enabled. +CODEGENOPT(StructPathTBAA , 1, 0) ///< Whether or not to use struct-path TBAA. CODEGENOPT(SaveTempLabels , 1, 0) ///< Save temporary labels. CODEGENOPT(SanitizeAddressZeroBaseShadow , 1, 0) ///< Map shadow memory at zero ///< offset in AddressSanitizer. Index: lib/CodeGen/CGExpr.cpp =================================================================== --- lib/CodeGen/CGExpr.cpp (revision 178718) +++ lib/CodeGen/CGExpr.cpp (working copy) @@ -1044,7 +1044,8 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(LValue lvalue) { return EmitLoadOfScalar(lvalue.getAddress(), lvalue.isVolatile(), lvalue.getAlignment().getQuantity(), - lvalue.getType(), lvalue.getTBAAInfo()); + lvalue.getType(), lvalue.getTBAAInfo(), + lvalue.getTBAABaseType(), lvalue.getTBAAOffset()); } static bool hasBooleanRepresentation(QualType Ty) { @@ -1106,7 +1107,9 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(llvm::Value *Addr, bool Volatile, unsigned Alignment, QualType Ty, - llvm::MDNode *TBAAInfo) { + llvm::MDNode *TBAAInfo, + QualType TBAABaseType, + uint64_t TBAAOffset) { // For better performance, handle vector loads differently. if (Ty->isVectorType()) { llvm::Value *V; @@ -1158,8 +1161,11 @@ Load->setVolatile(true); if (Alignment) Load->setAlignment(Alignment); - if (TBAAInfo) - CGM.DecorateInstruction(Load, TBAAInfo); + if (TBAAInfo) { + llvm::MDNode *TBAAPath = CGM.getTBAAStructTagInfo(TBAABaseType, TBAAInfo, + TBAAOffset); + CGM.DecorateInstruction(Load, TBAAPath); + } if ((SanOpts->Bool && hasBooleanRepresentation(Ty)) || (SanOpts->Enum && Ty->getAs<EnumType>())) { @@ -1217,7 +1223,8 @@ bool Volatile, unsigned Alignment, QualType Ty, llvm::MDNode *TBAAInfo, - bool isInit) { + bool isInit, QualType TBAABaseType, + uint64_t TBAAOffset) { // Handle vectors differently to get better performance. if (Ty->isVectorType()) { @@ -1268,15 +1275,19 @@ llvm::StoreInst *Store = Builder.CreateStore(Value, Addr, Volatile); if (Alignment) Store->setAlignment(Alignment); - if (TBAAInfo) - CGM.DecorateInstruction(Store, TBAAInfo); + if (TBAAInfo) { + llvm::MDNode *TBAAPath = CGM.getTBAAStructTagInfo(TBAABaseType, TBAAInfo, + TBAAOffset); + CGM.DecorateInstruction(Store, TBAAPath); + } } void CodeGenFunction::EmitStoreOfScalar(llvm::Value *value, LValue lvalue, bool isInit) { EmitStoreOfScalar(value, lvalue.getAddress(), lvalue.isVolatile(), lvalue.getAlignment().getQuantity(), lvalue.getType(), - lvalue.getTBAAInfo(), isInit); + lvalue.getTBAAInfo(), isInit, lvalue.getTBAABaseType(), + lvalue.getTBAAOffset()); } /// EmitLoadOfLValue - Given an expression that represents a value lvalue, this @@ -2494,9 +2505,12 @@ llvm::Value *addr = base.getAddress(); unsigned cvr = base.getVRQualifiers(); + bool TBAAPath = CGM.getCodeGenOpts().StructPathTBAA; if (rec->isUnion()) { // For unions, there is no pointer adjustment. assert(!type->isReferenceType() && "union has reference member"); + // TODO: handle path-aware TBAA for union. + TBAAPath = false; } else { // For structs, we GEP to the field that the record layout suggests. unsigned idx = CGM.getTypes().getCGRecordLayout(rec).getLLVMFieldNo(field); @@ -2508,6 +2522,8 @@ if (cvr & Qualifiers::Volatile) load->setVolatile(true); load->setAlignment(alignment.getQuantity()); + // Loading the reference will disable path-aware TBAA. + TBAAPath = false; if (CGM.shouldUseTBAA()) { llvm::MDNode *tbaa; if (mayAlias) @@ -2541,6 +2557,16 @@ LValue LV = MakeAddrLValue(addr, type, alignment); LV.getQuals().addCVRQualifiers(cvr); + if (TBAAPath) { + const ASTRecordLayout &Layout = + getContext().getASTRecordLayout(field->getParent()); + // Set the base type to be the base type of the base LValue and + // update offset to be relative to the base type. + LV.setTBAABaseType(base.getTBAABaseType()); + LV.setTBAAOffset(base.getTBAAOffset() + + Layout.getFieldOffset(field->getFieldIndex()) / + getContext().getCharWidth()); + } // __weak attribute on a field is ignored. if (LV.getQuals().getObjCGCAttr() == Qualifiers::Weak) Index: lib/CodeGen/CGValue.h =================================================================== --- lib/CodeGen/CGValue.h (revision 178718) +++ lib/CodeGen/CGValue.h (working copy) @@ -157,6 +157,11 @@ Expr *BaseIvarExp; + /// Used by struct-path-aware TBAA. + QualType TBAABaseType; + /// Offset relative to the base type. + uint64_t TBAAOffset; + /// TBAAInfo - TBAA information to attach to dereferences of this LValue. llvm::MDNode *TBAAInfo; @@ -175,6 +180,10 @@ this->ImpreciseLifetime = false; this->ThreadLocalRef = false; this->BaseIvarExp = 0; + + // Initialize fields for TBAA. + this->TBAABaseType = Type; + this->TBAAOffset = 0; this->TBAAInfo = TBAAInfo; } @@ -232,6 +241,12 @@ Expr *getBaseIvarExp() const { return BaseIvarExp; } void setBaseIvarExp(Expr *V) { BaseIvarExp = V; } + QualType getTBAABaseType() const { return TBAABaseType; } + void setTBAABaseType(QualType T) { TBAABaseType = T; } + + uint64_t getTBAAOffset() const { return TBAAOffset; } + void setTBAAOffset(uint64_t O) { TBAAOffset = O; } + llvm::MDNode *getTBAAInfo() const { return TBAAInfo; } void setTBAAInfo(llvm::MDNode *N) { TBAAInfo = N; } Index: lib/CodeGen/CodeGenFunction.h =================================================================== --- lib/CodeGen/CodeGenFunction.h (revision 178718) +++ lib/CodeGen/CodeGenFunction.h (working copy) @@ -2211,7 +2211,9 @@ /// the LLVM value representation. llvm::Value *EmitLoadOfScalar(llvm::Value *Addr, bool Volatile, unsigned Alignment, QualType Ty, - llvm::MDNode *TBAAInfo = 0); + llvm::MDNode *TBAAInfo = 0, + QualType TBAABaseTy = QualType(), + uint64_t TBAAOffset = 0); /// EmitLoadOfScalar - Load a scalar value from an address, taking /// care to appropriately convert from the memory representation to @@ -2224,7 +2226,9 @@ /// the LLVM value representation. void EmitStoreOfScalar(llvm::Value *Value, llvm::Value *Addr, bool Volatile, unsigned Alignment, QualType Ty, - llvm::MDNode *TBAAInfo = 0, bool isInit=false); + llvm::MDNode *TBAAInfo = 0, bool isInit = false, + QualType TBAABaseTy = QualType(), + uint64_t TBAAOffset = 0); /// EmitStoreOfScalar - Store a scalar value to an address, taking /// care to appropriately convert from the memory representation to Index: lib/CodeGen/CodeGenModule.cpp =================================================================== --- lib/CodeGen/CodeGenModule.cpp (revision 178718) +++ lib/CodeGen/CodeGenModule.cpp (working copy) @@ -227,6 +227,20 @@ return TBAA->getTBAAStructInfo(QTy); } +llvm::MDNode *CodeGenModule::getTBAAStructTypeInfo(QualType QTy) { + if (!TBAA) + return 0; + return TBAA->getTBAAStructTypeInfo(QTy); +} + +llvm::MDNode *CodeGenModule::getTBAAStructTagInfo(QualType BaseTy, + llvm::MDNode *AccessN, + uint64_t O) { + if (!TBAA) + return 0; + return TBAA->getTBAAStructTagInfo(BaseTy, AccessN, O); +} + void CodeGenModule::DecorateInstruction(llvm::Instruction *Inst, llvm::MDNode *TBAAInfo) { Inst->setMetadata(llvm::LLVMContext::MD_tbaa, TBAAInfo); Index: lib/CodeGen/CodeGenModule.h =================================================================== --- lib/CodeGen/CodeGenModule.h (revision 178718) +++ lib/CodeGen/CodeGenModule.h (working copy) @@ -501,6 +501,11 @@ llvm::MDNode *getTBAAInfo(QualType QTy); llvm::MDNode *getTBAAInfoForVTablePtr(); llvm::MDNode *getTBAAStructInfo(QualType QTy); + /// Return the MDNode in the type DAG for the given struct type. + llvm::MDNode *getTBAAStructTypeInfo(QualType QTy); + /// Return the path-aware tag for given base type, access node and offset. + llvm::MDNode *getTBAAStructTagInfo(QualType BaseTy, llvm::MDNode *AccessN, + uint64_t O); bool isTypeConstant(QualType QTy, bool ExcludeCtorDtor); Index: lib/CodeGen/CodeGenTBAA.cpp =================================================================== --- lib/CodeGen/CodeGenTBAA.cpp (revision 178718) +++ lib/CodeGen/CodeGenTBAA.cpp (working copy) @@ -21,6 +21,7 @@ #include "clang/AST/Mangle.h" #include "clang/AST/RecordLayout.h" #include "clang/Frontend/CodeGenOptions.h" +#include "llvm/ADT/SmallSet.h" #include "llvm/IR/Constants.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Metadata.h" @@ -225,3 +226,87 @@ // For now, handle any other kind of type conservatively. return StructMetadataCache[Ty] = NULL; } + +/// Check if the given type can be handled by path-aware TBAA. +static bool isTBAAPathStruct(QualType QTy) { + if (const RecordType *TTy = QTy->getAs<RecordType>()) { + const RecordDecl *RD = TTy->getDecl()->getDefinition(); + // RD can be struct, union, class, interface or enum. + // For now, we only handle struct. + if (RD->isStruct() && !RD->hasFlexibleArrayMember()) + return true; + } + return false; +} + +llvm::MDNode * +CodeGenTBAA::getTBAAStructTypeInfo(QualType QTy) { + const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); + assert(isTBAAPathStruct(QTy)); + + if (llvm::MDNode *N = StructTypeMetadataCache[Ty]) + return N; + + if (const RecordType *TTy = QTy->getAs<RecordType>()) { + const RecordDecl *RD = TTy->getDecl()->getDefinition(); + + const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); + SmallVector <std::pair<uint64_t, llvm::MDNode*>, 4> Fields; + // To reduce the size of MDNode for a given struct type, we only output + // once for all the fields with the same scalar types. + // Offsets for scalar fields in the type DAG are not used. + llvm::SmallSet <llvm::MDNode*, 4> ScalarFieldTypes; + unsigned idx = 0; + for (RecordDecl::field_iterator i = RD->field_begin(), + e = RD->field_end(); i != e; ++i, ++idx) { + QualType FieldQTy = i->getType(); + llvm::MDNode *FieldNode; + if (isTBAAPathStruct(FieldQTy)) + FieldNode = getTBAAStructTypeInfo(FieldQTy); + else { + FieldNode = getTBAAInfo(FieldQTy); + // Ignore this field if the type already exists. + if (ScalarFieldTypes.count(FieldNode)) + continue; + ScalarFieldTypes.insert(FieldNode); + } + if (!FieldNode) + return StructTypeMetadataCache[Ty] = NULL; + Fields.push_back(std::make_pair( + Layout.getFieldOffset(idx) / Context.getCharWidth(), FieldNode)); + } + + // TODO: This is using the RTTI name. Is there a better way to get + // a unique string for a type? + SmallString<256> OutName; + llvm::raw_svector_ostream Out(OutName); + MContext.mangleCXXRTTIName(QualType(Ty, 0), Out); + Out.flush(); + // Create the struct type node with a vector of pairs (offset, type). + return StructTypeMetadataCache[Ty] = + MDHelper.createTBAAStructTypeNode(OutName, Fields); + } + + return StructMetadataCache[Ty] = NULL; +} + +llvm::MDNode * +CodeGenTBAA::getTBAAStructTagInfo(QualType BaseQTy, llvm::MDNode *AccessNode, + uint64_t Offset) { + if (!CodeGenOpts.StructPathTBAA) + return AccessNode; + + const Type *BTy = Context.getCanonicalType(BaseQTy).getTypePtr(); + TBAAPathTag PathTag = TBAAPathTag(BTy, AccessNode, Offset); + if (llvm::MDNode *N = StructTagMetadataCache[PathTag]) + return N; + + llvm::MDNode *BNode = 0; + if (isTBAAPathStruct(BaseQTy)) + BNode = getTBAAStructTypeInfo(BaseQTy); + if (!BNode) + return StructTagMetadataCache[PathTag] = AccessNode; + + return StructTagMetadataCache[PathTag] = + MDHelper.createTBAAStructTagNode(BNode, AccessNode, Offset); +} Index: lib/CodeGen/CodeGenTBAA.h =================================================================== --- lib/CodeGen/CodeGenTBAA.h (revision 178718) +++ lib/CodeGen/CodeGenTBAA.h (working copy) @@ -35,6 +35,14 @@ namespace CodeGen { class CGRecordLayout; + struct TBAAPathTag { + TBAAPathTag(const Type *B, const llvm::MDNode *A, uint64_t O) + : BaseT(B), AccessN(A), Offset(O) {} + const Type *BaseT; + const llvm::MDNode *AccessN; + uint64_t Offset; + }; + /// CodeGenTBAA - This class organizes the cross-module state that is used /// while lowering AST types to LLVM types. class CodeGenTBAA { @@ -46,8 +54,13 @@ // MDHelper - Helper for creating metadata. llvm::MDBuilder MDHelper; - /// MetadataCache - This maps clang::Types to llvm::MDNodes describing them. + /// MetadataCache - This maps clang::Types to scalar llvm::MDNodes describing + /// them. llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; + /// This maps clang::Types to a struct node in the type DAG. + llvm::DenseMap<const Type *, llvm::MDNode *> StructTypeMetadataCache; + /// This maps TBAAPathTags to a tag node. + llvm::DenseMap<TBAAPathTag, llvm::MDNode *> StructTagMetadataCache; /// StructMetadataCache - This maps clang::Types to llvm::MDNodes describing /// them for struct assignments. @@ -89,9 +102,49 @@ /// getTBAAStructInfo - Get the TBAAStruct MDNode to be used for a memcpy of /// the given type. llvm::MDNode *getTBAAStructInfo(QualType QTy); + + /// Get the MDNode in the type DAG for given struct type QType. + llvm::MDNode *getTBAAStructTypeInfo(QualType QType); + /// Get the tag MDNode for a given base type, the actual sclar access MDNode + /// and offset into the base type. + llvm::MDNode *getTBAAStructTagInfo(QualType BaseQType, + llvm::MDNode *AccessNode, uint64_t Offset); }; } // end namespace CodeGen } // end namespace clang +namespace llvm { + +template<> struct DenseMapInfo<clang::CodeGen::TBAAPathTag> { + static clang::CodeGen::TBAAPathTag getEmptyKey() { + return clang::CodeGen::TBAAPathTag( + DenseMapInfo<const clang::Type *>::getEmptyKey(), + DenseMapInfo<const MDNode *>::getEmptyKey(), + DenseMapInfo<uint64_t>::getEmptyKey()); + } + + static clang::CodeGen::TBAAPathTag getTombstoneKey() { + return clang::CodeGen::TBAAPathTag( + DenseMapInfo<const clang::Type *>::getTombstoneKey(), + DenseMapInfo<const MDNode *>::getTombstoneKey(), + DenseMapInfo<uint64_t>::getTombstoneKey()); + } + + static unsigned getHashValue(const clang::CodeGen::TBAAPathTag &Val) { + return DenseMapInfo<const clang::Type *>::getHashValue(Val.BaseT) ^ + DenseMapInfo<const MDNode *>::getHashValue(Val.AccessN) ^ + DenseMapInfo<uint64_t>::getHashValue(Val.Offset); + } + + static bool isEqual(const clang::CodeGen::TBAAPathTag &LHS, + const clang::CodeGen::TBAAPathTag &RHS) { + return LHS.BaseT == RHS.BaseT && + LHS.AccessN == RHS.AccessN && + LHS.Offset == RHS.Offset; + } +}; + +} // end namespace llvm + #endif Index: lib/Driver/Tools.cpp =================================================================== --- lib/Driver/Tools.cpp (revision 178718) +++ lib/Driver/Tools.cpp (working copy) @@ -2105,6 +2105,8 @@ options::OPT_fno_strict_aliasing, getToolChain().IsStrictAliasingDefault())) CmdArgs.push_back("-relaxed-aliasing"); + if (Args.hasArg(options::OPT_fstruct_path_tbaa)) + CmdArgs.push_back("-struct-path-tbaa"); if (Args.hasFlag(options::OPT_fstrict_enums, options::OPT_fno_strict_enums, false)) CmdArgs.push_back("-fstrict-enums"); Index: lib/Frontend/CompilerInvocation.cpp =================================================================== --- lib/Frontend/CompilerInvocation.cpp (revision 178718) +++ lib/Frontend/CompilerInvocation.cpp (working copy) @@ -324,6 +324,7 @@ Opts.UseRegisterSizedBitfieldAccess = Args.hasArg( OPT_fuse_register_sized_bitfield_access); Opts.RelaxedAliasing = Args.hasArg(OPT_relaxed_aliasing); + Opts.StructPathTBAA = Args.hasArg(OPT_struct_path_tbaa); Opts.DwarfDebugFlags = Args.getLastArgValue(OPT_dwarf_debug_flags); Opts.MergeAllConstants = !Args.hasArg(OPT_fno_merge_all_constants); Opts.NoCommon = Args.hasArg(OPT_fno_common); Index: test/CodeGen/tbaa.cpp =================================================================== --- test/CodeGen/tbaa.cpp (revision 0) +++ test/CodeGen/tbaa.cpp (working copy) @@ -0,0 +1,217 @@ +// RUN: %clang_cc1 -O1 -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -O1 -struct-path-tbaa -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s -check-prefix=PATH +// Test TBAA metadata generated by front-end. + +#include <stdint.h> +typedef struct +{ + uint16_t f16; + uint32_t f32; + uint16_t f16_2; + uint32_t f32_2; +} StructA; +typedef struct +{ + uint16_t f16; + StructA a; + uint32_t f32; +} StructB; +typedef struct +{ + uint16_t f16; + StructB b; + uint32_t f32; +} StructC; +typedef struct +{ + uint16_t f16; + StructB b; + uint32_t f32; + uint8_t f8; +} StructD; + +typedef struct +{ + uint16_t f16; + uint32_t f32; +} StructS; +typedef struct +{ + uint16_t f16; + uint32_t f32; +} StructS2; + +uint32_t g(uint32_t *s, StructA *A, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !5 + *s = 1; + A->f32 = 4; + return *s; +} + +uint32_t g2(uint32_t *s, StructA *A, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i16 4, i16* %{{.*}}, align 2, !tbaa !5 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: store i16 4, i16* %{{.*}}, align 2, !tbaa !8 + *s = 1; + A->f16 = 4; + return *s; +} + +uint32_t g3(StructA *A, StructB *B, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !9 + A->f32 = 1; + B->a.f32 = 4; + return A->f32; +} + +uint32_t g4(StructA *A, StructB *B, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i16 4, i16* %{{.*}}, align 2, !tbaa !5 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i16 4, i16* %{{.*}}, align 2, !tbaa !11 + A->f32 = 1; + B->a.f16 = 4; + return A->f32; +} + +uint32_t g5(StructA *A, StructB *B, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !12 + A->f32 = 1; + B->f32 = 4; + return A->f32; +} + +uint32_t g6(StructA *A, StructB *B, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !13 + A->f32 = 1; + B->a.f32_2 = 4; + return A->f32; +} + +uint32_t g7(StructA *A, StructS *S, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !14 + A->f32 = 1; + S->f32 = 4; + return A->f32; +} + +uint32_t g8(StructA *A, StructS *S, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i16 4, i16* %{{.*}}, align 2, !tbaa !5 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !5 +// PATH: store i16 4, i16* %{{.*}}, align 2, !tbaa !16 + A->f32 = 1; + S->f16 = 4; + return A->f32; +} + +uint32_t g9(StructS *S, StructS2 *S2, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !14 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !17 + S->f32 = 1; + S2->f32 = 4; + return S->f32; +} + +uint32_t g10(StructS *S, StructS2 *S2, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i16 4, i16* %{{.*}}, align 2, !tbaa !5 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !14 +// PATH: store i16 4, i16* %{{.*}}, align 2, !tbaa !19 + S->f32 = 1; + S2->f16 = 4; + return S->f32; +} + +uint32_t g11(StructC *C, StructD *D, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !20 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !22 + C->b.a.f32 = 1; + D->b.a.f32 = 4; + return C->b.a.f32; +} + +uint32_t g12(StructC *C, StructD *D, uint64_t count) { +// CHECK: define i32 @{{.*}}( +// CHECK: store i32 1, i32* %{{.*}}, align 4, !tbaa !4 +// CHECK: store i32 4, i32* %{{.*}}, align 4, !tbaa !4 +// TODO: differentiate the two accesses. +// PATH: define i32 @{{.*}}( +// PATH: store i32 1, i32* %{{.*}}, align 4, !tbaa !9 +// PATH: store i32 4, i32* %{{.*}}, align 4, !tbaa !9 + StructB *b1 = &(C->b); + StructB *b2 = &(D->b); + // b1, b2 have different context. + b1->a.f32 = 1; + b2->a.f32 = 4; + return b1->a.f32; +} + +// CHECK: !1 = metadata !{metadata !"omnipotent char", metadata !2} +// CHECK: !2 = metadata !{metadata !"Simple C/C++ TBAA"} +// CHECK: !4 = metadata !{metadata !"int", metadata !1} +// CHECK: !5 = metadata !{metadata !"short", metadata !1} + +// PATH: !1 = metadata !{metadata !"omnipotent char", metadata !2} +// PATH: !4 = metadata !{metadata !"int", metadata !1} +// PATH: !5 = metadata !{metadata !6, metadata !4, i64 4} +// PATH: !6 = metadata !{metadata !"_ZTS7StructA", i64 0, metadata !7, i64 4, metadata !4} +// PATH: !7 = metadata !{metadata !"short", metadata !1} +// PATH: !8 = metadata !{metadata !6, metadata !7, i64 0} +// PATH: !9 = metadata !{metadata !10, metadata !4, i64 8} +// PATH: !10 = metadata !{metadata !"_ZTS7StructB", i64 0, metadata !7, i64 4, metadata !6, i64 20, metadata !4} +// PATH: !11 = metadata !{metadata !10, metadata !7, i64 4} +// PATH: !12 = metadata !{metadata !10, metadata !4, i64 20} +// PATH: !13 = metadata !{metadata !10, metadata !4, i64 16} +// PATH: !14 = metadata !{metadata !15, metadata !4, i64 4} +// PATH: !15 = metadata !{metadata !"_ZTS7StructS", i64 0, metadata !7, i64 4, metadata !4} +// PATH: !16 = metadata !{metadata !15, metadata !7, i64 0} +// PATH: !17 = metadata !{metadata !18, metadata !4, i64 4} +// PATH: !18 = metadata !{metadata !"_ZTS8StructS2", i64 0, metadata !7, i64 4, metadata !4} +// PATH: !19 = metadata !{metadata !18, metadata !7, i64 0} +// PATH: !20 = metadata !{metadata !21, metadata !4, i64 12} +// PATH: !21 = metadata !{metadata !"_ZTS7StructC", i64 0, metadata !7, i64 4, metadata !10, i64 28, metadata !4} +// PATH: !22 = metadata !{metadata !23, metadata !4, i64 12} +// PATH: !23 = metadata !{metadata !"_ZTS7StructD", i64 0, metadata !7, i64 4, metadata !10, i64 28, metadata !4, i64 32, metadata !1} git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3105627bd76d6a0cc5ee305c99f4c96519bac9ac |
|
04-Apr-2013 |
Eric Christopher <echristo@gmail.com> |
Plumb through the -fsplit-stack option using the existing backend support. Caveat: Other than the existing segmented stacks support, no claims are made of this working. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178744 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d3e22dfb776971f140c1b891e35fbcb08bb6faf7 |
|
03-Apr-2013 |
Eric Christopher <echristo@gmail.com> |
From PR9121 gcc defaulted to omitting the frame pointer on linux, however, it doesn't do that unless we're optimizing. Change that and haul out to a helper function. Also make this a driver test appropriate rather than an assembly test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d11708c491a96198ebfee49079ae458ed90eaf8 |
|
02-Apr-2013 |
Anton Yartsev <anton.yartsev@gmail.com> |
[analyzer] Moving cplusplus.NewDelete to alpha.* for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178529 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e25d2f6c5b164b6e2ce1f0cacd62cf3cf59f5c37 |
|
01-Apr-2013 |
Tom Stellard <thomas.stellard@amd.com> |
R600: Handle -mcpu option v3 v2: - Add a test case v3: - Use the -### clang option in the tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fe6b2713656c2d1bf559be357f0e0bf2d09bebd6 |
|
30-Mar-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add support for gcc-compatible -mfprnd -mno-fprnd PPC options gcc provides -mfprnd and -mno-fprnd for controlling the fprnd target feature; support these options as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
577bb0a2335295958b3b0f88bc9cdedf6551c17f |
|
28-Mar-2013 |
Thomas Schwinge <thomas@schwinge.name> |
Rename clang::driver::tools::linuxtools to clang::driver::tools::gnutools. This is about the GNU Binutils' assembler and linker, so reflect that in the name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
829d187e2100d2cfd85acefc2e867d12336e393f |
|
28-Mar-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add support for gcc-compatible -mpopcntd -mno-popcntd PPC options gcc provides -mpopcntd and -mno-popcntd for controlling the popcntd target feature; support these options as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4320ab08da5e4c927ef326c68d5081f5f2a2268 |
|
28-Mar-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add support for gcc-compatible -mmfcrf -mno-mfcrf PPC options gcc provides -mmfcrf and -mno-mfcrf for controlling what we call the mfocrf target feature. Also, PPC is now making use of the static function AddTargetFeature used by the Mips Driver code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178227 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c544ba09695e300f31355af342258bd57619e737 |
|
27-Mar-2013 |
Douglas Gregor <dgregor@apple.com> |
<rdar://problem/13509689> Introduce -module-file-info option that provides information about a particular module file. This option can be useful for end users who want to know why they ended up with a ton of different variants of the "std" module in their module cache. This problem should go away over time, as we reduce the need for module variants, but it will never go away entirely. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d44d2872b2ebe58237de4dbc350b82cab944ccc5 |
|
25-Mar-2013 |
Douglas Gregor <dgregor@apple.com> |
<rdar://problem/13434605> Periodically prune the module cache so that it does not grow forever. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2de19edab6001d2c17720d02fe0760b9b452192a |
|
25-Mar-2013 |
Anton Yartsev <anton.yartsev@gmail.com> |
[analyzer] Adds cplusplus.NewDelete checker that check for memory leaks, double free, and use-after-free problems of memory managed by new/delete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
76e6e1377ff837047fb8e03a199c7f286c53897b |
|
23-Mar-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
If a .syms file is available alongside a sanitizer runtime, pass it to the linker via --dynamic-list instead of using --export-dynamic. This reduces the size of the dynamic symbol table, and thus of the binary (in some cases by up to ~30%). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177783 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
892b6fb1ae818acc594ea54aaee084a4c48458ff |
|
21-Mar-2013 |
Douglas Gregor <dgregor@apple.com> |
<rdar://problem/13477190> Give the Clang module cache directory some structure, so it's easier to find. We now put the Clang module cache in <system-temp-directory>/org.llvm.clang/ModuleCache. Perhaps some day there will be other caches under <system-temp-directory>/org.llvm.clang>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
61a574f6a306a91fe78c39757f70f88e62b6736f |
|
21-Mar-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Split ubsan runtime into three pieces (clang part): * libclang_rt-san-* is sanitizer_common, and is linked in only if no other sanitizer runtime is present. * libclang_rt-ubsan-* is the piece of the runtime which doesn't depend on a C++ ABI library, and is always linked in. * libclang_rt-ubsan_cxx-* is the piece of the runtime which depends on a C++ ABI library, and is only linked in when linking a C++ binary. This change also switches us to using -whole-archive for the ubsan runtime (which is made possible by the above split), and switches us to only linking the sanitizer runtime into the main binary and not into DSOs (which is made possible by using -whole-archive). The motivation for this is to only link a single copy of sanitizer_common into any binary. This is becoming important now because we want to share more state between multiple sanitizers in the same process (for instance, we want a single shared output mutex). The Darwin ubsan runtime is unchanged; because we use a DSO there, we don't need this complexity. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177605 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3309229f77222970cce344eaa6908ad9320d2d82 |
|
20-Mar-2013 |
Hans Wennborg <hans@hanshq.net> |
Fix redundant comparison in gcc::Common::ConstructJob. We were checking "Arch == llvm::Triple::x86_64 || Arch == llvm::Triple::x86_64", but the rhs should actually check for powerpc64. Found while experimenting with a potential new Clang warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177496 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7d0d85f38854b085bfe5c1bd4870126359f578c6 |
|
19-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Make -fsanitize=address always imply -fsanitize=init-order git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177391 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
51be73daa9df0b9eab157318a9274ebe3e46c627 |
|
18-Mar-2013 |
Fariborz Jahanian <fjahanian@apple.com> |
Objective-C modern translator. Don't put line info into the pre-preprocessed file to be passed to modern translator when compiling in no debug mode. // rdar://13138170 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
af370e6e051e505016637e23418354db625dc796 |
|
18-Mar-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Pass an ArgList to every toolchain constructor. Remove the useIntegratedAs argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ce8d82c4182b8b98d4b5c44f5258b9e9b2c1350 |
|
18-Mar-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Inline ShouldUseIntegratedAssembler and move the documentation to useIntegratedAs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177300 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5470cd27e47aea163daaa76dde36010753400663 |
|
18-Mar-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Refactor a bit of duplicated code to useIntegratedAs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b234e7484b8b678977e5c6a6088dee323c72d3ab |
|
18-Mar-2013 |
Anton Korobeynikov <asl@math.spbu.ru> |
Make sure to use same EABI version for external assembler as for integrated as. Patch by Andrew Turner! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ac415b489dd3b22b0335af60d874143c9fdf63a |
|
14-Mar-2013 |
Alexey Samsonov <samsonov@google.com> |
[ASan] Make -fsanitize=address imply -fsanitize=init-order (if the latter is not explicitly disabled). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4c1adcc50df4f825150833ad36ef15a0dc1d8b1c |
|
12-Mar-2013 |
Ted Kremenek <kremenek@apple.com> |
[driver] Only enable -fmodules-autolink if we are using the integrated assembler. Fixes <rdar://problem/13289240> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176897 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c06fcdfacc33ad4f8920bbdf43a0e45bc5e8ac4b |
|
12-Mar-2013 |
Ted Kremenek <kremenek@apple.com> |
Revert "Disallow using -fmodules with -no-integrated-as." Per comment from Benjamin Kramer, this isn't portable (yet). I'll come up with a better fix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ebf0f43f07e2fdc0e35554afb38f41c8be314b02 |
|
11-Mar-2013 |
Ted Kremenek <kremenek@apple.com> |
Disallow using -fmodules with -no-integrated-as. Modules enables features such as auto-linking, and we simply do not want to support a matrix of subtly enabled/disabled features depending on whether or not a user is using the integrated assembler. It isn't clear if this is the best place to do this check. For one thing, these kind of errors are not caught by the serialized diagnostics. Fixes <rdar://problem/13289240> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0f815f1f91e5cf0726fd8296445038fec3bed80b |
|
07-Mar-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Add flags for additional control over coverage generation. Pick the version string to be emitted, and two properties about the files themselves. Use $PWD to absolut-ify the path to the coverage file. Yes, this is what GCC does. Reverts my own r175706. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176617 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2503ebd2cf9b4d28319551debaacff8b38765698 |
|
04-Mar-2013 |
Bob Wilson <bob.wilson@apple.com> |
Add ARM v6m, v7m, and v7em architectures for Cortex-M series processors. <rdar://problem/11314476> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc55345144f636f7687fd37649f0302914981fff |
|
04-Mar-2013 |
Bob Wilson <bob.wilson@apple.com> |
Tidy up lists of Cortex-A series processors, adding entries for A7. Also fix a missing entry for cortex-r5 in one copy of getLLVMArchSuffixForARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176457 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
68f94dbbd20cf41af733f2036c8688894489c3fd |
|
04-Mar-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Check for warnings in a bunch of the linker invocations, and add one with both -static-libgcc and -static on the commandline. Fix a warning in the latter case due to a backwards short circuiting || operator in the driver. No real functionality changed here, just allows the driver to properly consume -static-libgcc when -static is also specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e9616a4972a4c2fdc28128c057f21d7a79516c86 |
|
27-Feb-2013 |
Simon Atanasyan <simon@atanasyan.com> |
[Mips] Add two new aliases for MIPS ABI names 32 (means o32 abi) and 64 (means n64 abi) to improve compatibility with GNU tools. Patch by Jia Liu <proljc@gmail.com>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8614304c0d728d43ef16691708281273101b00af |
|
27-Feb-2013 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] Change driver behavior when linking with -fsanitize=thread and -fsanitize=memory. TSan/MSan also provide their versions of new/delete and should use the same strategy as ASan. Share the code that sets linker flags for all sanitizers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176178 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff971d7973aaa00c286b788d30f6919c7b1f4de2 |
|
23-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Propagate the split dwarf file information through into the backend and through to the debug info in the module. In order to make the testcase a bit more efficient allow the filename to go through compilation for compile and not assemble jobs and turn off the extract for cases where we don't create an object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175935 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
efc5b6713e51726ced594bc566d3291ffbf22ae2 |
|
22-Feb-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: Pass down the -march setting down to -cc1as on x86 too. The assembler historically didn't make use of any target features, but this has changed when support for old CPUs that don't support long nops was added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175919 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80190399f5a062db72127869978699af65951b73 |
|
22-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Split out the command handling for split debug info, we're going to want to propagate some information through the module into the back end and so need to pass it through to codegen. Also make the methods file static so we can use them in other places. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6ebf09130479bc7605aa09a3e6c4dc2ba3513495 |
|
22-Feb-2013 |
Dmitri Gribenko <gribozavr@gmail.com> |
Comment parsing: add CommentOptions to allow specifying custom comment block commands Add an ability to specify custom documentation block comment commands via a new class CommentOptions. The intention is that this class will hold future customizations for comment parsing, including defining documentation comments with specific numbers of parameters, etc. CommentOptions instance is a member of LangOptions. CommentOptions is controlled by a new command-line parameter -fcomment-block-commands=Foo,Bar,Baz. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9e738cc9d4b4655c44dadeb22f3a314daf43b995 |
|
22-Feb-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add -fbracket-depth=N, analogous to -ftemplate-depth= and -fconstexpr-depth=, to control the check for the C 5.2.4.1 / C++ [implimits] restriction on nesting levels for parentheses, brackets and braces. Some code with heavy macro use exceeds the default limit of 256, but we don't want to increase it generally to avoid stack overflow on stack-constrained systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5704d34444ecd7e1baa90026fb36c47207e0a3b7 |
|
22-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Make sure we only use the output file as a base for debug splitting if we're compiling. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
025b3d4f528ce54242f414057cc45a65e39098db |
|
22-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Make logic smaller. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f870e12f2324f48248793035ab0edb35d66e2299 |
|
21-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Don't pass -split-dwarf= to the backend unless we're on linux for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
59320e770f90a59c74f2be10f198e3c390195628 |
|
21-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Remove the SplitDebug action and replace with a set of commands in the compilation setup. Note that this doesn't currently work for -no-integrated-as. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
75f6a66f9a946a6839f70cf4856ceb1fb94aa6ad |
|
21-Feb-2013 |
Nick Lewycky <nicholas@mxc.ca> |
Respect -fno-canonical-prefixes when deciding where to generate .gcno and .gcda files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
24697b0a7297f530822dac42e36feb77738c1885 |
|
19-Feb-2013 |
Alexey Samsonov <samsonov@google.com> |
[Sanitizer] If -fsanitize-blacklist= option is not explicitly specified, make Clang look for the default sanitizer-specific blacklist in the resource directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
98654c938da09e045ff3c18324d26d52d36ee155 |
|
19-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
More grammar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a880b19aa6ef1dc95936f5de052be7a7d6ee6814 |
|
19-Feb-2013 |
John McCall <rjmccall@apple.com> |
Add support for -fvisibility-ms-compat. We treat this as an alternative to -fvisibility=<?> which changes the default value visibility to "hidden" and the default type visibility to "default". Expose a -cc1 option for changing the default type visibility, repurposing -fvisibility as the default value visibility option (also setting type visibility from it in the absence of a specific option). rdar://13079314 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175480 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6c7db8967c383d859eab6d541db816adbeb837a9 |
|
18-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Unify some "kernel or kext" conditionals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3fcdea71152ed2e3efedbf8e3b3c1309dae67ab6 |
|
18-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Add a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cfc01e45dd2ea51017aea299431c119dbcd94e53 |
|
18-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Clean up comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d4440c230d6d70becbd00da168591178720452f2 |
|
18-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Grammar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f0c5456d7d6a9f74281011297d86cb3b1fa53cc1 |
|
10-Feb-2013 |
Bob Wilson <bob.wilson@apple.com> |
Use -mno-implicit-float by default for kernel/kext code. <rdar://13177960> Apple's kernel engineers have been expecting this behavior even though we've never implemented it before, as far as I can tell. In recent months, clang has gotten better at using vector instructions to optimize memcpy-like operations, and that has exposed problems when vector/floating-point instructions are used in kexts that don't support that. This behavior also matches what Apple's GCC did for PowerPC targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7a9e91a1a0b94ea8a34daad41604339b5e0a7101 |
|
10-Feb-2013 |
Bob Wilson <bob.wilson@apple.com> |
Recognize -mno-implicit-float option for x86 as well as ARM. <rdar://13180731> For x86 targets, we've been using the -msoft-float option to control passing the no-implicit-float option to cc1. Since the -mno-implicit-float option is now accepted by the driver, this just makes it work for x86 the same as it does for ARM targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
250172a851a886c0763b5fd61c20bf21791c21e9 |
|
07-Feb-2013 |
Douglas Gregor <dgregor@apple.com> |
Form the default -fmodules-cache-path= properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174674 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
953a61f26bf79932b9699b09add4c388764de170 |
|
07-Feb-2013 |
Douglas Gregor <dgregor@apple.com> |
Rename -fmodule-cache-path <blah> to -fmodules-cache-path=<blah> for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2a06085281d1b6aee628f85e8676eec04542cbc9 |
|
07-Feb-2013 |
Douglas Gregor <dgregor@apple.com> |
Introduce -fmodules-ignore-macro=NNN to ignore a macro when building/loading modules. The use of this flag enables a modules optimization where a given set of macros can be labeled as "ignored" by the modules system. Definitions of those macros will be completely ignored when building the module hash and will be stripped when actually building modules. The overall effect is that this flag can be used to drastically reduce the number of Eventually, we'll want modules to tell us what set of macros they respond to (the "configuration macros"), and anything not in that set will be excluded. However, that requires a lot of per-module information that must be accurate, whereas this option can be used more readily. Fixes the rest of <rdar://problem/13165109>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174560 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c706c8e440abf61910c042380e19c67932998395 |
|
05-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Driver and option support for -gsplit-dwarf. This is a part of the DWARF5 split dwarf proposal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2821e180094459cbdef37e7d7c12bb406d5b82ba |
|
01-Feb-2013 |
Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
Add some missing PPC cpus git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c6aaeb26202b41173dd9ea982833fe975147d80 |
|
01-Feb-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add -mqpx and -mno-qpx feature flags to toggle use of the PPC QPX vector instruction set I've renamed the altivec test to ppc-features (because now there is more than one feature to test). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174204 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5ccd3d0214b9d765a1bb41872da27d3c5530ab2b |
|
01-Feb-2013 |
Hal Finkel <hfinkel@anl.gov> |
Add PPC A2Q core and BG/Q preprocessor definitions The a2q core is the variant of the a2 core used on the BG/Q supercomputers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174151 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
199402b9e081dedc28e19ab6e727470b34f2f64d |
|
01-Feb-2013 |
Bill Schmidt <wschmidt@linux.vnet.ibm.com> |
Enable -fno-altivec, -mno-altivec for PowerPC. Introduces these negation forms explicitly and uses them to control a new "altivec" target feature for PowerPC. This allows avoiding generating Altivec instructions on processors that support Altivec. The new test case verifies that the Altivec "lvx" instruction is not used when -fno-altivec is present on the command line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c264e16a42b3f6c36521857a29ea0949d9781c22 |
|
31-Jan-2013 |
Tim Northover <Tim.Northover@arm.com> |
Add support for AArch64 target. In cooperation with the LLVM patch, this should implement all scalar front-end parts of the C and C++ ABIs for AArch64. This patch excludes the NEON support also reviewed due to an outbreak of batshit insanity in our legal department. That will be committed soon bringing the changes to precisely what has been approved. Further reviews would be gratefully received. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
78d85b1c5830a881c0a20a1b3fea99ee73149590 |
|
30-Jan-2013 |
Chad Rosier <mcrosier@apple.com> |
[ubsan] Implement the -fcatch-undefined-behavior flag using a trapping implementation; this is much more inline with the original implementation (i.e., pre-ubsan) and does not require run-time library support. The trapping implementation can be invoked using either '-fcatch-undefined-behavior' or '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error', with the latter being preferred. Eventually, the -fcatch-undefined-behavior' flag will be removed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3e335c118140c40b264a26b13e44af368514cb87 |
|
28-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
Print warning instead of error if optional ASan features are enabled w/o specifying -fsanitize=address git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9d718635fa805674aaba5d938f3dc6b35b8632ba |
|
24-Jan-2013 |
Chad Rosier <mcrosier@apple.com> |
[driver] Associate a JobAction with each result file. This enables the driver to delete result files for only those commands that fail. Part of rdar://12984531 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b2e2157f905b0b6e27f1d3f5e1f38778c6731813 |
|
22-Jan-2013 |
Chad Rosier <mcrosier@apple.com> |
[ms-inline asm] Remove the -fenable-experimental-ms-inline-asm flag. MS-style inline assembly can be enable with -fasm-blocks or -fms-extensions alone. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173186 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2cb3d300ecd36558bf2201debe28808d12a97be2 |
|
21-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
Port r172856: 'Include ubsan runtime even when building a shared library. We don't require executable to be linked with UBSan.' to Mac git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4bdc60434c79126b75aee2bb391275f3bb746364 |
|
20-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
Add top-level Clang flag -f(no-)sanitize-address-zero-base-shadow that makes AddressSanitizer use bottom of the address space for the shadow memory. On Linux it can be used with -fPIE/-pie to improve performance. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
79188aec47679850214786ae7587d410746b0619 |
|
18-Jan-2013 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Include ubsan runtime even when building a shared library. We don't require the executable to be linked with UBSan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0234179282d59e6dfccc8b2da72a9a71bf5b6ac3 |
|
17-Jan-2013 |
Kevin Enderby <enderby@apple.com> |
We want the dwarf AT_producer for assembly source files to match clang's AT_producer. Which includes clang's version information so we can tell which version of the compiler was used. This is second of the two steps to allow us to do this. The first was a change to llvm-mc with revision 172630 to provide a method to set the AT_producer string. This second step has the clang driver passing the value of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking the integrated assembler on assembly source files. Then using the new setDwarfDebugProducer() method to set the AT_producer string. rdar://12888242 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
17d481fb97b304a58e45a136e3f3e2a2a22b76c8 |
|
17-Jan-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Do not pass -pie flag to linker if -shared specified. This matches the gcc driver and makes it possible to add -pie to $CC or similar and have it apply in the right places. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172753 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
df96e022e95b8540c51e1bdaed03f66d851c6f93 |
|
17-Jan-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Add initial rough support for synthesizing linker options when passed -fopenmp in the link step on Linux. There is probably more tweaking that will need to take place to get good support for linking the relevant libraries on all Linux distributions and/or on other platforms, but this get's the ball moving and allows Clang to build programs which contain OpenMP pragmas that can be safely ignored by a compiler that doesn't implement them, and yet makes direct calls into the OpenMP runtime. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172715 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a40548c36d91189506cb61fc66ab915fb91906e3 |
|
16-Jan-2013 |
Alexey Samsonov <samsonov@google.com> |
Fix uninitialized bool flag access in SanitizerArgs parser git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172605 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f43b7214e812ddca74a6213608c69c960e067956 |
|
16-Jan-2013 |
Douglas Gregor <dgregor@apple.com> |
Add -fmodules-autolink/-fno-modules-autolink (defaults to on) so that users can explicitly enable/disable modules autolinking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172592 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
700d4e44793697288dd827c272ad363945f590a9 |
|
13-Jan-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Refactor the x86 CPU name logic in the driver and pass -march and -mcpu flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. Fixes PR14697. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e1d792f0ee02b5beb4b8e94506b3a0c353df43dd |
|
10-Jan-2013 |
Simon Atanasyan <satanasyan@mips.com> |
[Mips] Pass a combination of +soft-float and -mips16-hard-float flags to the backend if hard float ABI is selected under -mips16 mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6cc2a68c1ecb20054819a0b154ccfb7ff7498595 |
|
31-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Silence some warnings and allow passing down some feature flags to the linker. Patch by Brad Smith. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2d382d149b442b928fd3fb8edcc8d82ea9325872 |
|
30-Dec-2012 |
Will Dietz <wdietz2@illinois.edu> |
[ubsan] Recover by default, use -fno-sanitize-recover to disable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171264 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
34ef11be9d09ebf916ab02a521e37be6e9e102d3 |
|
24-Dec-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Support -fsanitize-memory-track-origins. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ab13751d76be4473e9317d3885cb351b79f18492 |
|
21-Dec-2012 |
Quentin Colombet <qcolombet@apple.com> |
Add ARM cortex-r5 subtarget as available mcpu git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0f6ef2879083d3c556b9b74d2df7a07dc0b227d5 |
|
19-Dec-2012 |
Nadav Rotem <nrotem@apple.com> |
Enable the loop vectorizer in clang via -fvectorize git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
27e2b983beb8b5a29869639637327725623069a8 |
|
18-Dec-2012 |
Eric Christopher <echristo@gmail.com> |
Add support for passing the main file name down to the assembler for location information. Part of PR14624 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170391 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d566df67bed6381f6e859bbd21fd43ff89277cc0 |
|
17-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Fix PR14625 by teaching the driver to detect PWD for assembly files. This also requires adding support to -cc1as for passing the detecting PWD down through LLVM's debug info (which in turn required the LLVM change in r170371). The test case is weak (we only test the driver behavior) because there is currently to infrastructure for running cc1as in the test suite. So those four lines are untested (much like all other lines in that file), but we have a test for the same pattern using llvm-mc in the LLVM repository. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
27fa2364b05ab26138c2ecf0eac1937b7fc6c037 |
|
13-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Initial support for FreeBSD on ARM. Patch by Andrew Turner. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b2c0887457ef509c1a93bcddf9ad8f5e87d9945e |
|
12-Dec-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Don't warn about an unused -flto option. rdar://12851905 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
443c999c967d555f6942834b0924c60226b3e6f2 |
|
11-Dec-2012 |
Hal Finkel <hfinkel@anl.gov> |
Add -fslp-vectorize to enable bb-vectorize Add -fslp-vectorize (with -ftree-slp-vectorize as an alias for gcc compatibility) to provide a way to enable the basic-block vectorization pass. This uses the same acronym as gcc, superword-level parallelism (SLP), also common in the literature, to refer to basic-block vectorization. Nadav suggested this as a follow-up to the adding of -fvectorize. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c04d0934dfc78038ec1c073d9215750bd6a39c76 |
|
11-Dec-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add the -fvectorize flag to enable the loop vectorization passes. rdar://12839978 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d56f40341374ba5970283a15f27fb1999965967a |
|
10-Dec-2012 |
Bill Wendling <isanbard@gmail.com> |
Add support to Darwin for the -export_dynamic' flag to the linker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169775 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d8d4223813506df2f1b71cbb2f4a175faf85e6a |
|
07-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: forward appropriate args to assembler git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1dbaef5fe123c588ed6c995dd0a0b79c285433ae |
|
07-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: add cc1 defaults for hexagon-gcc compatibility git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
33c95f1178999ea06837769f90be8d7b8d57bb4d |
|
06-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: Add/improve support for small data threshold, pic, pie git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5fdf350e39c6e260602dbbd709101a9bb55e75f1 |
|
06-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: Reimplement Link::ConstructJob to call linker directly Rather than calling gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169512 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6781415fa6d98aed548e84a70f1cd3ec31bba7d3 |
|
06-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: Move getHexagonTargetCPU from Tools.cpp to ToolChains.cpp This is in anticipation of forthcoming library path changes. Also ... - Fixes some inconsistencies in how the arch is passed to tools. - Add test cases for various forms of arch flags git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b3489a0d355128f1cc96fdde2a6b11a8361d6740 |
|
06-Dec-2012 |
Matthew Curtis <mcurtis@codeaurora.org> |
Hexagon TC: Update toolchain to add appropriate include paths - Inherit from Linux rather than ToolChain - Override AddClangSystemIncludeArgs and AddClangCXXStdlibIncludeArgs to properly set include paths. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169495 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
15490fd42d7d8dca2f9b5b3a9dc074892ca1acd7 |
|
05-Dec-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver, ms-inline asm] MS-Style inline assembly is controlled by the -fasm-blocks flag, not the -fms-extensions flag. rdar://12808010 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99469f732efbd6600dfd0a70e0a36116a717dd06 |
|
05-Dec-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Reuse an existing diagnostic for tsan/msan needing -pie error. Add a diagnosting for -fsanitize=memory conflicting with other sanitizers. Extend tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d1539875bc0a00935ffb41e27a8fd327054c006 |
|
04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Add -whole-archive around the ASan runtime archive in the link command. This ensures that even though it comes first, we pick up its .o files. Note that if we can use this (or something similar / equivalent) on other platforms, we could potentially remove ReplaceOperatorsNewAndDelete from the ASan runtimes. We should probably do something similar for TSan and MSan as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
45b27380a24dcd6a39faa888b5d31192801c43f4 |
|
04-Dec-2012 |
Matt Beaumont-Gay <matthewbg@google.com> |
Currently, with -fsanitize=address, the driver appends libclang_rt.asan.a to the link command. This all works fine when the driver is also responsible for adding -lstdc++ to the link command. But, if -lstdc++ (or libstdc++.a, etc) is passed explicitly to the driver, the ASan runtime will appear in the link command after the standard library, leading to multiple-definition errors for the global 'operator new' and 'operator delete'. Fix this in a painfully simple way, by inserting libclang_rt.asan.a at the start of the link command instead of the end. If we need to do something more clever, we can walk the link command looking for something that resembles libstdc++ and insert libclang_rt.asan.a as late as possible, but the simple solution works for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55fc873017f10f6f566b182b70f6fc22aefa3464 |
|
04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort all of Clang's files under 'lib', and fix up the broken headers uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
91ecfa6af51836d3ccc90beddab1193b0c060739 |
|
03-Dec-2012 |
Alexey Samsonov <samsonov@google.com> |
Add Clang flags -fsanitize-blacklist and -fno-sanitize-blacklist. Make this flag usable for ASan. Blacklisting can be used to disable sanitizer checks for particular file/function/object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
09ccf39c13cfca102deea2986f45cb908bc232fd |
|
03-Dec-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Add -fsanitize=memory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169124 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bda07ace55e40bd1a620051156fa9b13ad3936aa |
|
01-Dec-2012 |
Simon Atanasyan <satanasyan@mips.com> |
[MIPS] Add -mxgot/-mno-xgot command line options to enable/disable support of GOT larger than 64k. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
056503786410c0e72b1389918719a37e9342817b |
|
01-Dec-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Remove restriction on combining ubsan with asan or tsan. This has worked for a while. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
74632aab3ad87c89823421d8239a47b6697b6e79 |
|
30-Nov-2012 |
Quentin Colombet <qcolombet@apple.com> |
Add ARM cortex-a5 subtarget git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
398b8e86ab421592f9e72b92c4558ea865b26e86 |
|
30-Nov-2012 |
Quentin Colombet <qcolombet@apple.com> |
Revert commit revision r168953, to change the commit message, which was empty git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b3233f5ed4411af458dc66fa566df2ba7510d26f |
|
29-Nov-2012 |
Quentin Colombet <qcolombet@apple.com> |
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4d1a6e41e1eaeaf5a4672c802519f15c8fb91e91 |
|
29-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
This patch exposes to Clang users three more sanitizers are experimental features of ASan: 1) init-order sanitizer: initialization-order checker. Status: usable, but may produce false positives w/o proper blacklisting. 2) use-after-return sanitizer Status: implemented, but heavily understed. Should be optional, as it significanlty slows program down. 3) use-after-scope sanitizer Status: in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6716d9443d5d13f4f49a39b9d02f2e256cb83a97 |
|
29-Nov-2012 |
Eric Christopher <echristo@gmail.com> |
Make sure that we put the rest of the sanitizer libraries on the link line before libstdc++ like we do with ubsan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
586a061ad96f750e2a5aefcf3e2ce9e5474cdd61 |
|
29-Nov-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] -mkernel implies -mstrict-align; don't add the redundant option. rdar://12771737 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3325b1617fce0c8c399b3010f8a65420e623d6f7 |
|
28-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
Refactor -fsanitize, -f*-sanitizer arguments parsing. Provide a more careful diagnostic for invalid sets of sanitizers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
85489080807b47b70d26611ba543801e16bec4cd |
|
23-Nov-2012 |
Joey Gouly <joey.gouly@arm.com> |
PR14306: Move -fbounds-checking to -fsanitize=bounds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
66b8a6671bb5df540dd7200a5286f7ed7a72c1cc |
|
23-Nov-2012 |
Bob Wilson <bob.wilson@apple.com> |
Reapply a subset of r167567 to clean up Darwin-specific code for invoking gcc. Unlike my previous attempt at this, this patch leaves intact the check for whether clang can handle the input file type, and for non-Darwin toolchains it will invoke gcc for things it cannot handle. For Darwin toolchains, the behavior reported in pr14338 still occurs with this patch, but that is a definite improvement from what happens currently, where it just crashes with an assertion failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a6b2581f9595fb803fe7e2ef1d9f25e75b26d2fb |
|
22-Nov-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Fix the '-fuse-init-array' option to actually be an option. Previously, this flag to CC1 was never exposed at the clang driver layer, and if you happened to enable it (by being on Android or GCC 4.7 platform), you couldn't *disable* it, because there was no 'no' variant. The whole thing was confusingly implemented. Now, the target-specific flag processing gets the driver arg list, and we use standard hasFlag with a default based on the GCC version and/or Android platform. The user can still pass the 'no-' variant to forcibly disable the flag, or pass the positive variant to clang itself to enable the flag. The test has also been substantially cleaned up and extended to cover these use cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
529a73de04a108fe74503a19d9933dbb2b1a6cf0 |
|
19-Nov-2012 |
Logan Chien <tzuhsiang.chien@gmail.com> |
Add -ldl for non-static libgcc in Android. According to Android ABI, we have to link with libdl.so, if we are linking with non-static libgcc. Besides, this also fixes MIPS link error of undefined references to `_Unwind_Find_FDE' and `dl_iterate_phdr'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ce816a77dc79f71950e9e96185e3523ee08994b |
|
19-Nov-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Completely re-work how the Clang driver interprets PIC and PIE options. There were numerous issues here that were all entangled, and so I've tried to do a general simplification of the logic. 1) The logic was mimicing actual GCC bugs, rather than "features". These have been fixed in trunk GCC, and this fixes Clang as well. Notably, the logic was always intended to be last-match-wins like any other flag. 2) The logic for handling '-mdynamic-no-pic' was preposterously unclear. It also allowed the use of this flag on non-Darwin platforms where it has no actual meaning. Now this option is handled directly based on tests of how llvm-gcc behaves, and it is only supported on Darwin. 3) The APIs for the Driver's ToolChains had the implementation ugliness of dynamic-no-pic leaking through them. They also had the implementation details of the LLVM relocation model flag names leaking through. 4) The actual results of passing these flags was incorrect on Darwin in many cases. For example, Darwin *always* uses PIC level 2 if it uses in PIC level, and Darwin *always* uses PIC on 64-bit regardless of the flags specified, including -fPIE. Darwin never compiles in PIE mode, but it can *link* in PIE mode. 5) Also, PIC was not always being enabled even when PIE was. This isn't a supported mode at all and may have caused some fallout in builds with complex PIC and PIE interactions. The result is (I hope) cleaner and clearer for readers. I've also left comments and tests about some of the truly strage behavior that is observed on Darwin platforms. We have no real testing of Windows platforms and PIC, but I don't have the tools handy to figure that out. Hopefully others can beef up our testing here. Unfortunately, I can't test this for every platform. =/ If folks have dependencies on these flags that aren't covered by tests, they may break. I've audited and ensured that all the changes in behavior of the existing tests are intentional and good. In particular I've tried to make sure the Darwin behavior (which is more suprising than the Linux behavior) also matches that of 'gcc' on my mac. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c35f908d81c5fd62c6755766a422844fedd768ce |
|
17-Nov-2012 |
Bill Wendling <isanbard@gmail.com> |
Revert r167799. It's not really correct, and it doesn't fix the problem that it was intended to fix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168217 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
75fcb193aeeec5c4f10cc39df60a5ce7526b1b28 |
|
16-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
UBSan: enable proper linking with UBsan runtime on Darwin. Turn on building ubsan on OS X in 'make' build system. Patch by Jean-Daniel Dupas. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168168 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d145f660a23d5bdabdd1ead83c51f3df1489b09 |
|
15-Nov-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
block extended signatur option. Change previous option to a cc1 -fencode-extended-block-signature and pass it to cc1 and recognize this option to produce extended block type signature. // rdar://12109031 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168063 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5bab9ae87c41148ee2f92d312945c1e9303222e8 |
|
15-Nov-2012 |
Nick Lewycky <nicholas@mxc.ca> |
Revert r167567, restoring the ability of clang to run gcc in cases where it can't handle the input file type. This resulted in PR14338. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168024 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b12ecd3a3ef0a7010b33759b2310b83d51fbdc9a |
|
13-Nov-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
This patch makes the behavior of clang consistent with the behavior of gcc 4.6 in cases where both -fPIC and -fPIE is used. - Separately check if -fPIE was specified in the command line and define both __PIC__ and __PIE__ when -fPIE is used. We need to check this separately because -fPIE will infer -fPIC even if its not explicitly used. - Fixed existing tests. - Added new tests for cases where both -fPIC and -fPIE is used. Author: Tareq A. Siraj <tareq.a.siraj@intel.com> Fixes: PR13221 Review: http://llvm-reviews.chandlerc.com/D94 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a50059e34309c3adf76c284a68f91c4ca3574782 |
|
13-Nov-2012 |
Bill Wendling <isanbard@gmail.com> |
Disable accelerator tables when compiling with LTO. 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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
485577dcac0b0877cfb5395b365490a0189c66f5 |
|
09-Nov-2012 |
Chad Rosier <mcrosier@apple.com> |
Implement -mstrict-align using '-backend-option -arm-strict-align' as this saves us from having to make any backend changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7e293276281bd5bf8526c064d298082b08f0bd8b |
|
09-Nov-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add a -mstrict-align compiler option for ARM targets. rdar://12340498 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
85b7f7ddf2f09778ec303f5a39f9e67e3aae1115 |
|
08-Nov-2012 |
Bob Wilson <bob.wilson@apple.com> |
Rip out a bunch of code for invoking gcc from clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
03c60765c7607cbfb4e1e8593028824dab13ad54 |
|
06-Nov-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
clang/lib/Driver/Tools.cpp: Fix abuse of StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167494 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bb1071c0568db9bd7934e869a53d671632eb9291 |
|
06-Nov-2012 |
Alexey Samsonov <samsonov@google.com> |
Follow-up for r167411 to un-break ASan on Mac. Move SanitizerArgs to a header file and use it on Darwin toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
04fd3820d04032df40ec073a901cade92869c765 |
|
06-Nov-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Per discussion on cfe-commits, treat -faddress-sanitizer, -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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d6396a681c9acbe56bc41bbc2bed2db45755bcd7 |
|
05-Nov-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Use the individual -fsanitize=<...> arguments to control which of the UBSan checks to enable. Remove frontend support for -fcatch-undefined-behavior, -faddress-sanitizer and -fthread-sanitizer now that they don't do anything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c4dabadb51475e76b606024f144e7cf93b0bad00 |
|
05-Nov-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add -fsanitize=<sanitizers> argument to driver and frontend, and add -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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
715852c9ce1a0b6afe1928d8da4d51e138aed851 |
|
02-Nov-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Improve x86 android support: * -Bsymbolic must be added for x86 as well. * Default CPU name also set to 'core2' for x86 android. Patch by Edwin Vane. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167307 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
eb52aedbc01f20ddb6e51e2711271324b08ddbef |
|
02-Nov-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add -lpthread when building with Ubsan on Linux, in preparation for making libclang-rt.ubsan pull in sanitizer_common, which in turn depends on pthreads. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d489cf4a04ad0ad8ac2696e4eed0995f3a67288 |
|
01-Nov-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Remove first argument from Arg::getValue; it's been unused since r105760. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cfed8283c3aeb03ddd837411467d19e250068d39 |
|
31-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
getArchTypeForDarwinArchName is only used in the clang driver, copy it there. I will remove it from llvm in the next commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167156 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
89aa2ce6d6de2b9200171bd3ecc97fe917f73d62 |
|
30-Oct-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Older versions of ld expect '-L<dir>' not '-L <dir>'. In Xcode4 and 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
286d6236850ed3710822e659afdfdf08a315716b |
|
27-Oct-2012 |
Mahesha S <mahesha.llvm@gmail.com> |
Reverted back the changes made in 166868 and in 166869 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f3b52315e2ee52bdff9cba31b037c7e6b3adfadc |
|
27-Oct-2012 |
Mahesha S <mahesha.llvm@gmail.com> |
------------------------------------------------- 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) ------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8e1cee6f23e2552b96b81e5ef419ab3f69c5b5c2 |
|
25-Oct-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
-fcatch-undefined-behavior checking for appropriate vptr value: Clang CodeGen side. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3667bbe0f235a8b3fc2496acc8f3136dfb559cc9 |
|
23-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Handle -pthread, -pg and -shared correctly on bitrig. Patch by David Hill. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166483 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c635710bcbb9598acd5a14647ba7ca28bee89a68 |
|
23-Oct-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
[Options] Add prefixes to options. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2e4e110a727a0d379a8fbd0cc2afba1ff3801091 |
|
22-Oct-2012 |
Daniel Dunbar <daniel@zuster.org> |
driver/Darwin: Default to AAPCS for M-class CPUs. - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4bd32957c686891cbdb7e2124630f6686343a2a |
|
21-Oct-2012 |
Simon Atanasyan <satanasyan@mips.com> |
Add support of MIPS n32 ABI to the Clang driver. The fix builds correct 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
91e06dab9335ed6b4474a74353549c708cf3d936 |
|
20-Oct-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
[Options] Make Option non clang specific. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f38523388174760dcbad810ef60d8504d7df6b4c |
|
19-Oct-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert r166223 and the subsequent commits that depend on it, r166230 & r166235. This seems to have introduced assertion hit when building compiler-rt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166245 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
da3301eec823fe770bfa49a1cb19649506caa698 |
|
18-Oct-2012 |
Eric Christopher <echristo@gmail.com> |
Add a new option for and disable column number information as there 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166236 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d2deb91b02ae1d810719e4a5a63dc404f362575a |
|
18-Oct-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
[Options] Make Option non clang specific. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166230 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
891dac73bdb090ff845982e4334f5b4c18353dbe |
|
16-Oct-2012 |
David Chisnall <csdavec@swan.ac.uk> |
GNUstep runtime version default to 1.6, generate correct property attribute metadata. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7a0c064770355a4918df69f95de8dea6338a59a2 |
|
16-Oct-2012 |
Daniel Dunbar <daniel@zuster.org> |
Un-revert r164907 and r164902 (+ follow-ups), 10.6 build fix to follow. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165988 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc0d4e251b4c41b75c5d93f1866a8a0952b1c6ae |
|
15-Oct-2012 |
Nico Weber <nicolasweber@gmx.de> |
Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6. See PR14013. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
96a6eb910a25f083c173e333cc21f1e0b783de4d |
|
09-Oct-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Remove redundant cases due to overlapping commits between Ted (r165531, 165532) and I (r165534), but leave the test case in place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4def70d3040e73707c738f7c366737a986135edf |
|
09-Oct-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
-fcatch-undefined-behavior: emit calls to the runtime library whenever one of the checks fails. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165536 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d372a70c6845efcfc88edc37341f795fc70750c7 |
|
09-Oct-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Remove the -W[no-][int-conversion|constant-conversion|enum-conversion] options when clang invokes cc1plus for i386 kexts. rdar://12459188 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165534 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2c3d8fad4f760b076deaa9a24923a2f48f31c8b2 |
|
09-Oct-2012 |
Ted Kremenek <kremenek@apple.com> |
Don't forward -Wenum-conversion to cc1plus. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
28e2aff71284b12c4819ad11dfd46cf019dfeb5c |
|
09-Oct-2012 |
Ted Kremenek <kremenek@apple.com> |
Don't forward -Wint-conversion to cc1plus. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165531 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
64f7ad9328e877779ec63638f39de4e10d2ff276 |
|
07-Oct-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use getArch instead of getArchName + string compare. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165370 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e20e508aecf413f84b0dc4928cbf4bb5ce6c5bdc |
|
04-Oct-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: Link crtfastmath.o if it's available and -ffast-math is specified. crtfastmath.o contains routines to set the floating point flags to a faster, unsafe mode. Linking it in speeds up code dealing with denormals significantly (PR14024). For now this is only enabled on linux where I can test it and crtfastmath.o is widely available. We may want to provide a similar file with compiler-rt eventually and/or enable it on other platforms too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165240 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6acf8b4f9418be93a24b493c2f8a7d32c203002d |
|
02-Oct-2012 |
Bill Wendling <isanbard@gmail.com> |
During LTO, we call 'dsymutil' when we compile source files. This necessitates clang specifying a temporary file that it later cleans up so that it can survive the linking stage. However, when we compile object files during LTO we don't call 'dsymutil'. That's done at a different stage (if at all). We rely upon the linker to specify a unique name for the temporary file it generates. <rdar://problem/12401423> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165028 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f2f3ce54fc1235bec2d0d0b0ef3b53bdff6d9655 |
|
30-Sep-2012 |
Bob Wilson <bob.wilson@apple.com> |
Add Clang support for iOS6. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
336bfa3fb496228a8ab4070def5b4297e5f88358 |
|
30-Sep-2012 |
Bob Wilson <bob.wilson@apple.com> |
Add armv7s and some other arm variants supported by Mach-O files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a5ee089fffc9c98d454694f80e7b541e97ca495e |
|
28-Sep-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
Modern objcective-C translator. When doing rewriting, Do not use the integrated pre-processor, preprocess in objective-c++ mode. // rdar://12189793. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99c720828a2fcaf368c6a0f2502189d10dbd5c53 |
|
26-Sep-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Allow -MF to be used in combination with -E -M or -E -MM. Fixes PR13851. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164717 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80ecf5e66738a7058da58489ca55200212f3d42c |
|
26-Sep-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add support for the -fno-fast-math option. rdar://12299433 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
70e5b575e187beb10f4a10667d9f4f5227131c40 |
|
24-Sep-2012 |
Anna Zaks <ganna@apple.com> |
[analyzer] Really turn on dynamic-bifurcation on by default. Thanks to Byoungyoung for realizing taht we are not passing the default option correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164543 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8e1c598310d5cd75700cf800cb333b985ce05420 |
|
21-Sep-2012 |
Simon Atanasyan <satanasyan@mips.com> |
Add four new command line options for MIPS CPU selection: -mips32, -mips32r2, -mips64, -mips64r2. The patch reviewed by Eric Christopher. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7de32964026e4c5ff32cbca484ffb24e73393d87 |
|
19-Sep-2012 |
Hal Finkel <hfinkel@anl.gov> |
Add e500mc and e5500 to the list of valid PPC CPU names. Patch by Tobias von Koch! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164176 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2df67ea86f64c2a94b973d8fda2e3c1fd53fc84d |
|
13-Sep-2012 |
Silviu Baranga <silviu.baranga@arm.com> |
This patch introduces A15 as a target in Clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163804 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
127ff2ea6440c3da4b47f9c8b3b190254a97e7b5 |
|
13-Sep-2012 |
Ted Kremenek <kremenek@apple.com> |
Conditionally parse documentation comments in system headers by passing -fretain-comments-from-system-headers. By default, the compiler no longer parses such documentation comments, as they can result in a noticeable compile time/PCH slowdown. Fixes <rdar://problem/11860820>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc6cc87ab68091a714526b391e2a1291d84d485e |
|
13-Sep-2012 |
Eric Christopher <echristo@apple.com> |
Properly link libpthread_p when using profiling on OpenBSD. Patch by Brad Smith. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
53b43a78d575e9e8d0af7a3f4b0a744679d65994 |
|
12-Sep-2012 |
Joerg Sonnenberger <joerg@bec.de> |
Claim --param ssp-buffer-size, even if the stack protector is not active. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163705 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ba7541f12b39aeef4cdb104566dd0503321f48f |
|
12-Sep-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Make -faddress-sanitizer on Android link to the new-style runtime. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a92983d236c88c942c283a1ee98003b2d5b56ea5 |
|
10-Sep-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Wrong crtbegin/crtend pair used for PIE on Android. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163500 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
89d83ff23414240555f895d3dad736bd30f5af4e |
|
10-Sep-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Use -march=arch option to select either generic MIPS ISA, or the name of a particular processor. The patch reviewed by Douglas Gregor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f6513810c9e5bb75336b69e08cf99cc8ba97175f |
|
07-Sep-2012 |
Roman Divacky <rdivacky@freebsd.org> |
Link to crtend.S when PIE in the FreeBSD driver. Patch by Brooks Davis! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c55da4bc1d9bfd7ace9c2bd99f98bc4cf09cd27b |
|
05-Sep-2012 |
Eric Christopher <echristo@apple.com> |
Apply some driver improvements for freebsd-*-mips*. Patch by Brooks Davis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
94a7142f74bb4a9daa53c22087b19d4568073109 |
|
02-Sep-2012 |
Logan Chien <tzuhsiang.chien@gmail.com> |
Rename ANDROIDEABI to Android. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163088 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
50f88b99c60c2ed31b339cd8bd484766cc9e916b |
|
30-Aug-2012 |
Nico Weber <nicolasweber@gmx.de> |
Reland r160052: Default to -std=c++11 on Windows. Also update the tests that rely on c++98 to explicitly mention that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ecbbea47659c13ef4193879001f606868757007e |
|
30-Aug-2012 |
Bill Wendling <isanbard@gmail.com> |
Emit .gcda files as absolute paths instead of relative paths. This improves compatibility with gcc in this regard, and this file generation can be ameliorated with GCOV_PREFIX and GCOV_PREFIX_STRIP. It's also useful if your build directory doesn't specify -o <abspath> and it uses a recursive make structure, so it's not relative to the toplevel. Patch by Joshua Cranmer! <rdar://problem/12179524> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9438016db2332aca8b53fd953da06128373cc5be |
|
28-Aug-2012 |
Roman Divacky <rdivacky@freebsd.org> |
Cleanup FreeBSD linking and add support for -pie. Path by Brooks Davis, tests and fixes from me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162761 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9804b761a9743c8248864e94018e4dc26577d471 |
|
27-Aug-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Use -G option to specify MIPS section threshold. Translate it to the -mllvm -mips-ssection-threshold=<value> pair and pass to the frontend. The patch suggested by Carl Norum. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162697 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a7afeb040416c0eaac19b92db914913a788044f5 |
|
21-Aug-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add support for the --param ssp-buffer-size= driver option. PR9673 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0a7dd788dbef975f35f273c7ab913f480f7edd60 |
|
21-Aug-2012 |
John McCall <rjmccall@apple.com> |
Screw around with ObjCRuntime some more, changing the diagnostics for bad deployment targets and adding a few more predicates. Includes a patch by Jonathan Schleifer to enable ARC for ObjFW. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e276cfc4e30dd3d85e3904ee270e85d5d0e309ad |
|
17-Aug-2012 |
Nick Lewycky <nicholas@mxc.ca> |
Fix -Wl,--no-demangle to actually pass the flag to the linker on Linux instead of silently dropping it on the floor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c9c48dba2004b9d25e96d02e12b932a8826c6632 |
|
10-Aug-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Followup to r161546, to unbreak linking on Bitrig. Patch by David Hill. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
42f74f21ece01dc8573d5377859d327fbb23b26c |
|
09-Aug-2012 |
Eli Friedman <eli.friedman@gmail.com> |
clang support for Bitrig (an OpenBSD fork); patch by David Hill. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a7635f115ed4fdc5f7982989d67743105dd530cf |
|
07-Aug-2012 |
Bob Wilson <bob.wilson@apple.com> |
Don't complain about -fobjc-link-runtime being unused with -fobjc-arc. 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff104a12d61d34af67f12a7a966847c821d7afa8 |
|
31-Jul-2012 |
Jiangning Liu <jiangning.liu@arm.com> |
Support ARM hard float (arm-linux-gnueabihf). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161038 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
761322b3bdea727de087dcdf355fee689f5b8358 |
|
31-Jul-2012 |
Aaron Ballman <aaron@aaronballman.com> |
No longer emitting a PCH file when using -fsyntax-only on a header file. Fixes PR13343. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6cc9dc8403c4a8838f4f932e43402090cfe70d98 |
|
30-Jul-2012 |
Jiangning Liu <jiangning.liu@arm.com> |
Fix dynamic object linker for ARM GNUEABIHF. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dfa210b1e1e403855557f68fe471212787b8540e |
|
29-Jul-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Provide correct linker command line options on FreeBSD 8 (GNU ld 2.15) and on newer FreeBSD (GNU ld 2.17). Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d256f8673bf2499f57e0f40aab30ff243d576c17 |
|
21-Jul-2012 |
Chad Rosier <mcrosier@apple.com> |
Rename -fms-inline-asm to -fenable-experimental-ms-inline-asm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160590 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f925e0414d76d39d612d54d233e9fa2ee04b0a27 |
|
20-Jul-2012 |
Chad Rosier <mcrosier@apple.com> |
Add a new flag, -fms-inline-asm, that enables the output of MS-style inline 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
455e72e7625a8f87c2c302d8d82baee5c111e094 |
|
19-Jul-2012 |
Bob Wilson <bob.wilson@apple.com> |
Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only. This macro was being unconditionally set to zero, preceded by a FIXME comment. This fixes <rdar://problem/11845441>. Patch by Michael Gottesman! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7dae689d322ae2a84b82f4762af780bb3f84b251 |
|
15-Jul-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Enable new linker behaviour on FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6a1f94b89bb497522ad0601350cbd47068fce5f1 |
|
12-Jul-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Revert r160052, "Default to -std=c++11 on Windows.", for now. Failing Tests (3): Clang :: Index/complete-cxx-inline-methods.cpp Clang :: Index/recursive-cxx-member-calls.cpp Clang :: SemaTemplate/inject-templated-friend-post.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
85663e7b40097b2f162f58ba9f4dae2d0f24f648 |
|
11-Jul-2012 |
Nico Weber <nicolasweber@gmx.de> |
Default to -std=c++11 on Windows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e8cf7d143446c45568bb7c9a6fbd8f32ca6ae93e |
|
07-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Re-apply r159875 with fixes. - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3b4c53259603ba389373362f476648b2b1ab9eca |
|
07-Jul-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement -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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
25570a94ca6b706d19812b0f8df25a63ec3445c8 |
|
07-Jul-2012 |
Ted Kremenek <kremenek@apple.com> |
Implement -Wpedantic and --no-pedantic to complement -Weverything. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c9686716d2ceb5518178dca98670ec34c472a1be |
|
06-Jul-2012 |
Lang Hames <lhames@gmail.com> |
Add -ffp-contract = { fast | on | off } command line option support. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d797a85866fd5ce62850dd145396b451364032a3 |
|
05-Jul-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Add -mdsp/-mno-dsp and -mdspr2/-mno-dspr2 command line options support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc536f55c0c85df7644592c69434b7b191d73dc8 |
|
05-Jul-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Factor out the code converting command line options to target features. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0b273efa37a38deab77dadf72540c9c07c63f8cf |
|
05-Jul-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Add -mips16 / -mno-mips16 command line support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2c7886ddec1e2cee68daee9866637d2e02f434ef |
|
04-Jul-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Hoist the logic for selecting the Objective-C dispatch method into the runtime class, from the target. No functionality change, just less duplicated logic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a422cd0ed4da8cb5a172498f29bb02065707c6ce |
|
04-Jul-2012 |
David Chisnall <csdavec@swan.ac.uk> |
A few more cleanups for the GNU family of ObjC runtimes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4e6e791dc53654dd1e6258829d5c3a1e059b11c3 |
|
04-Jul-2012 |
Bob Wilson <bob.wilson@apple.com> |
Move a comment from the commit message into the code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
11d3f4cc27e6b923fc32481dc1bb5ec46c7d1f4b |
|
03-Jul-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Rename the GCC Objective-C runtime to gcc from gnu-fragile and the GNUstep runtime to gnustep from gnu. Fix EH for the GCC runtime. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1fc6e4fa79444b2a7be8a1150f646ffbde68b744 |
|
03-Jul-2012 |
Bob Wilson <bob.wilson@apple.com> |
When using -pg targeting OS X 10.8, pass -no_new_main to the linker. 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> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159683 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
de981f3ff163bc9ec69e4c5e7316e94276412993 |
|
28-Jun-2012 |
Hans Wennborg <hans@hanshq.net> |
Add -ftls-model command-line flag. This allows for setting the default TLS model. (PR9788) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159336 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
92c4fd5c17a5fd433cca7ddecb0ad4a104baa59c |
|
27-Jun-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Enable -mcpu=native and -march=native for arm targets. This is only implemented on linux at the moment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159232 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
246b6aa6763de8c617d564ef33123a8f3293a80e |
|
26-Jun-2012 |
Richard Trieu <rtrieu@google.com> |
Add template type diffing to Clang. This feature will provide a better comparison between two templated types when they both appear in a diagnostic. Type elision will remove indentical template arguments, which can be disabled with -fno-elide-type. Cyan highlighting is applied to the differing types. For more formatting, -fdiagnostic-show-template-tree will output the template type as an indented text tree, with differences appearing inline. Template tree works with or without type elision. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7f3260764a3614e22dcf24d71c1155f14a9b4e6e |
|
21-Jun-2012 |
Alexey Samsonov <samsonov@google.com> |
Improve support for -g options accepted by Clang: 1. Accept flags -g[0-3], -ggdb[0-3], -gdwarf-[2-4] and collapse them to simple -g (except -g0/-ggdb0). 2. Produce driver error on unsupported formats (-gcoff, -gstabs, -gvms) and options (-gtoggle). 3. Recognize and ignore flags -g[no-]strict-dwarf, -g[no-]record-gcc-switches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ab6c24076444fc6bda9a28c1100ba106ddffaa6 |
|
20-Jun-2012 |
Ted Kremenek <kremenek@apple.com> |
Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be designed a bit further. We may wish to just have -Wno flags to silence warnings, and not have a -no-pedantic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
260611a32535c851237926bfcf78869b13c07d5b |
|
20-Jun-2012 |
John McCall <rjmccall@apple.com> |
Restructure how the driver communicates information about the target Objective-C runtime down to the frontend: break this down into a single target runtime kind and version, and compute all the relevant information from that. This makes it relatively painless to add support for new runtimes to the compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z, available at the driver level as a better and more general alternative to -fgnu-runtime and -fnext-runtime. This new concept of an Objective-C runtime also encompasses what we were previously separating out as the "Objective-C ABI", so fragile vs. non-fragile runtimes are now really modelled as different kinds of runtime, paving the way for better overall differentiation. As a sort of special case, continue to accept the -cc1 flag -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak. I won't go so far as to say "no functionality change", even ignoring the new driver flag, but subtle changes in driver semantics are almost certainly not intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8af669f2f1d92436fe6dc43144bb084a620e7516 |
|
19-Jun-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a -fuse-init-array option to cc1 and map to the UseInitArray target option. On the driver, check if we are using libraries from gcc 4.7 or newer and if so pass -fuse-init-array to the frontend. The crtbegin*.o files in gcc 4.7 no longer call the constructors listed in .ctors, so we have to use .init_array. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a2284f5dcab3201bb9dd37568a3bed2041f1ab0b |
|
18-Jun-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
[VS Toolchain] Correctly forward -l linker inputs to link.exe. Patch by Nikola Smiljanic! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
940152f726353e08e3bdcef6f85bc8aa73173597 |
|
14-Jun-2012 |
David Blaikie <dblaikie@gmail.com> |
Support -f[no-]rewrite-includes from the driver. Review by Chandler Carruth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc9327a8da640ecf7b15c5d5b726cd67a0e63284 |
|
13-Jun-2012 |
John McCall <rjmccall@apple.com> |
Provide a -no-pedantic to cancel out -pedantic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
02a84277864e5476b12c0ec687ed09f0b2922471 |
|
12-Jun-2012 |
Hal Finkel <hfinkel@anl.gov> |
Add PPC support for translating gcc-style -mcpu options into LLVM -target-cpu options. This functionality is based on what is done on ARM, and enables selecting PPC CPUs in a way compatible with gcc's driver. Also, mirroring gcc (and what is done on x86), -mcpu=native support was added. This uses the host cpu detection from LLVM (which will also soon be updated by refactoring code currently in backend). In order for this to work, the target needs a list of valid CPUs -- we now accept all CPUs accepted by LLVM. A few preprocessor defines for common CPU types have been added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
837386287f1527c3a1e7ac2ea330c714519ae33a |
|
04-Jun-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Require -pie when linking with ASan on Android. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5e62779634ba002d7112a66efc8e075de9b8a3f1 |
|
02-Jun-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Factor out code selects the float ABI as determined by -msoft-float, -mhard-float, and -mfloat-abi= to the new function getMipsFloatABI. That simplifies reuse of this code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1f0646e064c2d853d64db8585f661cacdde75c43 |
|
29-May-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Pass -KPIC argument to MIPS assembler if necessary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
003ab6682376a0e4544df295bddcf0d991275c40 |
|
29-May-2012 |
Simon Atanasyan <satanasyan@mips.com> |
Factor out the code retrieves the last PIC related argument from the Clang::ConstructJob() to the new ArgList::getLastArg() routine with eight argument. That simplifies reusing of this code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a9cd83b1ddfa7d05e2887f59532e59e626b03ef6 |
|
29-May-2012 |
Alexey Samsonov <samsonov@google.com> |
Make Clang driver pass the last option from -g group to the compiler. Leave a better fixme for different debug info flags git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
189373170330e3d551bdb28c9762d606f3bcb931 |
|
17-May-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Remove obsolete support for -A link option. The standard -A option is used by the preprocessor. Apple's GCC also supported a -A option for linking. The ld man page has the following: -A basefile - Obsolete incremental load format. This option is obsolete. Nick Kledzik confirms this option is no longer needed/supported. rdar://11455614 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
005af27c607536038864ff36d480b5ecd066a267 |
|
16-May-2012 |
Chad Rosier <mcrosier@apple.com> |
Rename the driver option to -mno-implicit-float, per Eli's suggestion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ee9ad5ce4840b3c95024948c89d00945ffdda9bb |
|
16-May-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Allow the driver to directly accept the -no-implicit-float option, so that the generation of implicit floating point instructions can be disable for ARM. rdar://11409142 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156942 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7efb0e7478da45bc7f2d24dbeb08406d2399591 |
|
16-May-2012 |
Kostya Serebryany <kcc@google.com> |
[tsan] add ThreadSanitizer linker flags on Linux and also copy the tsan-rt into the appropriate place at build time git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
04e326b3d0ae1a84643b7366ce0ea5137e06ed69 |
|
15-May-2012 |
Douglas Gregor <dgregor@apple.com> |
Add the Objective-C runtime linking arguments after user-specified linker arguments. Fixes <rdar://problem/11417441>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
63d9f3cddee40a3f3e5579e9004b31ec8663b5d9 |
|
15-May-2012 |
Bob Wilson <bob.wilson@apple.com> |
Do not link with Objective-C libraries with -nostdlib or -nodefaultlibs. <rdar://problem/11433499> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ba542c741c39691940f5d1de0bc88c22f46c430 |
|
14-May-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Teach the driver on Linux to respect -nodefaultlibs. Patch from Andrew C. Morrow. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f9688b7c7fdeafdf530056d49f82d2ec6ca457f |
|
10-May-2012 |
Sirish Pande <spande@codeaurora.org> |
Hexagon V5 FP support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e0cc309536817cc5701c5a26119c8eeb7080057c |
|
09-May-2012 |
Bob Wilson <bob.wilson@apple.com> |
Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b3198a841e7f356f171f1e11faff014b2deb1eb8 |
|
09-May-2012 |
Nuno Lopes <nunoplopes@sapo.pt> |
add -fbounds-checking option. When enabled, clang generates bounds checks for array and pointers dereferences. Work to follow in LLVM's backend. OK'ed by Chad; thanks for the review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156431 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2e4fd6d9a1c8ba9c400324d230cfc49050550dea |
|
04-May-2012 |
Jean-Daniel Dupas <devlists@shadowlab.org> |
Fix -Wlarge-by-value-copy option handling in the driver. CC1 supports only the joined format. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fd00eecad6fa5400cf37269d84361a0551d0e6d3 |
|
04-May-2012 |
Alexey Samsonov <samsonov@google.com> |
This patch adds a new Clang compiler flag "-gline-tables-only". It reduces the amount of emitted debug information: 1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram, DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only. 2) .debug_str contains only function names. 3) No debug data for types/namespaces/variables is emitted. 4) The data in .debug_line is enough to produce valid stack traces with function names and line numbers. Reviewed by Eric Christopher. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8c4b4d3c294a152b6f7f1f9a7155985f2a29a730 |
|
04-May-2012 |
Bob Wilson <bob.wilson@apple.com> |
Remove obsolete code for finding a fallback iOS SDK. <rdar://problem/11378535> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4206c27768e15865f936a9bdb8ea082087118b78 |
|
03-May-2012 |
Bob Wilson <bob.wilson@apple.com> |
Rip out old code for finding libraries in GCC's directories. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
769aa2d46fa5dc0bee5285c95a80ad8749cb79cf |
|
02-May-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Driver: Turn the default value for -fmath-errno into a proper target hook and disable it by default on more platforms. For now -fno-math-errno is the default on BSD-derived platforms (Darwin, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD). If the default is not right for your platform, please yell. I only verified the result with the default compilers on Darwin and FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8049c44d972fc7266b4369e8960875c118c067e0 |
|
02-May-2012 |
James Molloy <james.molloy@arm.com> |
Fix forwarding of -fpack-struct from driver to CC1, and add a test. -fpack-struct's handling has changed in CC1 (one of only two flags that needed changing) because the driver treats "-fpack-struct" as a boolean flag, and CC1 (did) treat it as an option with a separated value. This change causes -fpack-struct=X to be forwarded correctly to -fpack-struct=X instead of erroneously to "-fpack-struct X" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155981 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4f50c50e783461ea1ec47dd6fe9be10aafcd76ad |
|
26-Apr-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Fix a long-standing bug where Clang had a different default from GCC on Linux and other (non-Darwin) platforms and have it use -fmath-errno by default (for better or worse). Darwin has seen the light here and uses -fno-math-errno by default, this patch preserves that. If any maintainers for a non-Linux platform would also like to opt-in to -fno-math-errno by default, I'm happy to add folks, but we're currently getting buts and misleading comparisons with GCC due to this difference in behavior on Linux at least. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155607 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a6ddc02921d47d0a1dc9ffe4d31438f250751e05 |
|
25-Apr-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Clang driver support for linking on Android. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155541 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4add84f83f4505304ab3f94ebfa6bbc0be60058d |
|
25-Apr-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Fix default cpu for -march=armv5e. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155540 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
eca187e9f20886f20bb0ea78b4f4b87a18a96b8c |
|
24-Apr-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Only pass -mcpu, -march, -mfpu to linux-as on ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155431 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6603ff85d415c2aa72579f1a247012b75bfc2a19 |
|
23-Apr-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Revert r155363, due to the underlying patches in LLVM causing regression test suite failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155371 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ac28eca18a9f0a343c78ba90b02dfe52302c1f19 |
|
23-Apr-2012 |
Sirish Pande <spande@codeaurora.org> |
Hexagon V5 (floating point) support in cfe. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0b1c7156844f1e0e37766a64879b1d1d77fc5385 |
|
21-Apr-2012 |
Bob Wilson <bob.wilson@apple.com> |
Link with Foundation whenever -fobjc-link-runtime is used. <rdar://10976177> The check for excluding libarclite on i386 MacOSX should not apply to Foundation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
700c508fd469a971480c36d54ae12fe9011f27c0 |
|
20-Apr-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Pass -mfloat-abi= to linuxtools assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155191 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
103f41d0e72a9e52a07e19cbde58c3afc8735098 |
|
18-Apr-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Revert some Hexagon builtin commits to match reverts done to LLVM in r155047. See the LLVM log for the primary motivation: http://llvm.org/viewvc/llvm-project?rev=155047&view=rev Primary commit r154828: - Several issues were raised in review, and fixed in subsequent commits. - Follow-up commits also reverted, and which should be folded into the original before reposting: - r154837: Re-add the 'undef BUILTIN' thing to fix the build. - r154928: Fix build warnings, re-add (and correct) header and license - r154937: Typo fix. Please resubmit this patch with the relevant LLVM resubmission. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155048 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ac715fd3118362f14574c312b044d22e3afeee9 |
|
16-Apr-2012 |
Sirish Pande <spande@codeaurora.org> |
Hexagon V5(Floating Point) support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4762a2da74875d2ae94e0d77d38ed964816cce36 |
|
16-Apr-2012 |
Sebastian Pop <spop@codeaurora.org> |
use DEFAULT_SYSROOT git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e58e6f9114e61f0e490b5dc1c4f20b23a30f12dc |
|
10-Apr-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Don't link lib[std]c++ when -nostdlib is specified (Solaris driver). Patch by Dmitri Shubin! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e9b4d98f97de6657d4ff77478ba69730f08b9b81 |
|
10-Apr-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Pass -march, -mcpu, -mfpu to linuxtools assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c5151543236bd213b8595a079cf9b1d26de4eeb1 |
|
10-Apr-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix an annoying little bug I found while debugging another LTO issue. Gold requires the -plugin to come before any -plugin-opt options, we were passing them the other way around. With this one can run (for example): clang -o foo foo.c -O4 -Wl,-plugin-opt=generate-api-file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e51fe0972a781e79abae550786ebed7d1da54252 |
|
09-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
objective-c: remove -fobjc-default-synthesize-properties from the driver. cc1 option remains though to invoke default property synthesis. // rdar://11209719 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e52e2e6f4840c2fa8f7e6289cab976e2c8d2fdc0 |
|
09-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
objective-c: Remove -fno-objc-default-synthesize-properties as the driver option. // rdar://11209719 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
561d62280aecff3168097086425a7da0442d0de4 |
|
09-Apr-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Revert r154321, pending more discussion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
649ee3fec12dcf7167630ff88087ad116e9eefa6 |
|
09-Apr-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Add -fobjc-trace to emit a call before and after each Objective-C message send for hooking in code flow visualisation applications. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e2571793ba6fc13e5525b8d7224812f99842a1a4 |
|
09-Apr-2012 |
Anton Korobeynikov <asl@math.spbu.ru> |
Factor out ARM floating ABI determination to new routine git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5e219cf7f896873c1c1e64b9e87a7dade99debba |
|
08-Apr-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Teach Clang about PIE compilations. This is the first step of PR12380. First, this patch cleans up the parsing of the PIC and PIE family of options in the driver. The existing logic failed to claim arguments all over the place resulting in kludges that marked the options as unused. Instead actually walk all of the arguments and claim them properly. We now treat -f{,no-}{pic,PIC,pie,PIE} as a single set, accepting the last one on the commandline. Previously there were lots of ordering bugs that could creep in due to the nature of the parsing. Let me know if folks would like weird things such as "-fPIE -fno-pic" to turn on PIE, but disable full PIC. This doesn't make any sense to me, but we could in theory support it. Options that seem to have intentional "trump" status (-static, -mkernel, etc) continue to do so and are commented as such. Next, a -pie-level flag is threaded into the frontend, rigged to a language option, and handled preprocessor, setting up the appropriate defines. We'll now have the correct defines when compiling with -fpie. The one place outside of the preprocessor that was inspecting the PIC level (as opposed to the relocation model, which is set and handled separately, yay!) is in the GNU ObjC runtime. I changed it to exactly preserve existing behavior. If folks want to change its behavior in the face of PIE, they can do that in a separate patch. Essentially the only functionality changed here is the preprocessor defines and bug-fixes to the argument management. Tests have been updated and extended to test all of this a bit more thoroughly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
073a780f7cb863cd382d1c966ef11d05c6fad075 |
|
08-Apr-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Pass -mabi option to the assmbler when compile MIPS targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154270 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a2768be144256f9eb721bef8b751e56e0b64fa0b |
|
08-Apr-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Move code calculates CPU and ABI names to the separate function to reuse this function later. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154269 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8491cb245f7fccfb049f860444467130f68189d3 |
|
06-Apr-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Provide a correct path to the dynamic linker when build for MIPS 64-bit targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f0a1c12dacadd5a061ea5b57d51cf6798ae22a1 |
|
06-Apr-2012 |
Simon Atanasyan <satanasyan@mips.com> |
MIPS: Pass -EB/-EL argument to the assembler according to selected endian when compile for MIPS targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154195 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3953911de1e81aec780c00102b39a2bfac8f4734 |
|
05-Apr-2012 |
Nico Weber <nicolasweber@gmx.de> |
Honor -fno-pic, -fno-PIC, -fno-pie, -fno-PIE. Review at http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120402/055759.html git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154064 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
30fe6baf95662ea82a794a8fe3b76998713c183d |
|
05-Apr-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] When using the -mfpmath= option, add an error message when trying to enable neonfp on a CPU that doesn't support NEON. rdar://11108618 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
12093861bb0dd68f7a65c41929293275fed4f245 |
|
04-Apr-2012 |
Simon Atanasyan <satanasyan@mips.com> |
Test commit to check commit access. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f80f2a5098218211704bc4e66a8c2f46a8fa1d25 |
|
04-Apr-2012 |
Chad Rosier <mcrosier@apple.com> |
Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
993172757762436d22b2dfc74e7cca1bade1a7bf |
|
04-Apr-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add a static helper function for handling -mfpu= to remove some code duplication. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154049 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d624a5b43a970bd3102d7075baeea89b8ca336a4 |
|
04-Apr-2012 |
David Blaikie <dblaikie@gmail.com> |
Reduce variable scope. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154047 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7a938fa66be42710b034a79106de337a275fd265 |
|
04-Apr-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Create a new -mfpmath= option, which is used to control whether clang uses Neon instructions for single-precision FP. -mfpmath=neon is analogous to passing llc -mattr=+neonfp. -mfpmath=[vfp|vfp2|vfp3|vfp4] is analogous to passing llc -mattr=-neonfp. rdar://11108618 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154046 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e982cc0ea3e9255b8aacf8f0bff559e9b1cfd72e |
|
04-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
modern objc translator. Add more rewriter specific option to cc1 with -rewrite-objc. // rdar://11143173 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
15b77319d0ce4332275992b2f191898a1df50efe |
|
04-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
Remove unused argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154035 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
582b395ea4d5dfe353e2132a470d39efe2f84a54 |
|
02-Apr-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
Use -rewrite-legacy-objc as clang argument for translating objective-c's fragile abi, Use -rewrite-objc for translating objective-c's modern abi. // rdar://11143173 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
651f3d44dbae18c74c5f475d7a601d65b07b45c4 |
|
02-Apr-2012 |
Bob Wilson <bob.wilson@apple.com> |
Ignore unused --serialize-diagnostics option when using llvm-gcc. llvm-gcc doesn't handle --serialize-diagnostics so when compiling i386 kernel/kext code with -Werror, you get an error about that option being unused. Claim the argument to prevent this from breaking builds. <rdar://problem/11161933> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6903313102c4e1ca598305850cc209b62711b1b6 |
|
29-Mar-2012 |
Jim Grosbach <grosbach@apple.com> |
ARM backend knows about cortex-m4. The front end should too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153678 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
82fe6aea407a5a09a6131452ce622087ba83880d |
|
28-Mar-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Move the emission of strict enum range metadata behind a flag (the same flag as GCC uses: -fstrict-enums). There is a *lot* of code making unwarranted assumptions about the underlying type of enums, and it doesn't seem entirely reasonable to eagerly break all of it. Much more importantly, the current state of affairs is *very* good at optimizing based upon this information, which causes failures that are very distant from the actual enum. Before we push for enabling this by default, I think we need to implement -fcatch-undefined-behavior support for instrumenting and trapping whenever we store or load a value outside of the range. That way we can track down the misbehaving code very quickly. I discussed this with Rafael, and currently the only important cases he is aware of are the bool range-based optimizations which are staying hard enabled. We've not seen any issue with those either, and they are much more important for performance. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
afc4baa37c2f38fadf05b15456b10a0994d51b0b |
|
27-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Fix unused argument warnings. 1. Don't short-circuit conditional statements that are checking flags. Otherwise, the driver emits warnings about unused arguments. 2. -mkernel and -fapple-kext imply no exceptions, so claim exception related arguments now to avoid warnings about unused arguments. rdar://11120518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153478 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ec09b3e0c5d96a1b7a3e797cdff2875eca1e9907 |
|
26-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] -mkernel implies -fno-common, so claim the arg to avoid an unused argument warning. Part of rdar://11120518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153470 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d26550ba88d2c15292b3f290d6eadec83749e95 |
|
26-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] -mkernel implies -fno-builtin, so claim the arg to avoid an unused argument warning. Part of rdar://11120518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ad8d8a31b010ceac4cad2553f16fc1a77c4b2e5e |
|
24-Mar-2012 |
Akira Hatanaka <ahatanaka@mips.com> |
Add support for MIPS' floating ABIs (hard, soft and single) to clang driver. Patch by Simon Atanasyan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
57f6d1946b1026eb4d0bbc1904b2833b254d4caa |
|
21-Mar-2012 |
Bob Wilson <bob.wilson@apple.com> |
Duplicated code is bad. At least make it consistent. The getARMTargetCPU and getLLVMArchSuffixForARM functions exist in both Toolchain.cpp and Tools.cpp. This stuff needs a thorough overhaul. In the meantime, this patch at least makes them consistent. One version had been converted to use StringSwitch, and the other version had new Cortex M-series processors added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
09c5c39590caa92aa7ce660607a070ea275f5ad7 |
|
19-Mar-2012 |
Nico Weber <nicolasweber@gmx.de> |
Fix a regression where ':' in CPLUS_INCLUDE_PATH and friends would no longer separate paths. This regressed in r152583. Also add a test to make sure it doesn't regress again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153034 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc055f943d154c9b7463f43a3b59e093723362c9 |
|
15-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[frontend] Fix how the frontend handles -fno-inline. AFAIK clang now matches the behavior of gcc with respect to the -fno-inline and -fno-inline-functions flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152861 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
95187bdd5c955c8edf3527eae41f1e4f80377f27 |
|
15-Mar-2012 |
David Blaikie <dblaikie@gmail.com> |
Reapply r152745 (reverted in 152765) now that compiler-rt is fixed. Original commit message: Provide -Wnull-conversion separately from -Wconversion. Like GCC, provide a NULL conversion to non-pointer conversion as a separate flag, on by default. GCC's flag is "conversion-null" which we provide for cross compatibility, but in the interests of consistency (with -Wint-conversion, -Wbool-conversion, etc) the canonical Clang flag is called -Wnull-conversion. Patch by Lubos Lunak. Review feedback by myself, Chandler Carruth, and Chad Rosier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9ca33fd56720112bcc4bccb8aa6107abbb68cae3 |
|
15-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
Revert r152745 as it's breaking the internal buildbots. Abbreviated commit message: Provide -Wnull-conversion separately from -Wconversion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
47bfaf19ddc980a9eb48f2978f4da9b7861b9cda |
|
14-Mar-2012 |
David Blaikie <dblaikie@gmail.com> |
Provide -Wnull-conversion separately from -Wconversion. Like GCC, provide a NULL conversion to non-pointer conversion as a separate flag, on by default. GCC's flag is "conversion-null" which we provide for cross compatibility, but in the interests of consistency (with -Wint-conversion, -Wbool-conversion, etc) the canonical Clang flag is called -Wnull-conversion. Patch by Lubos Lunak. Review feedback by myself, Chandler Carruth, and Chad Rosier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4574c3d75edb0a496d36246b760094f3acf1ba27 |
|
14-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Clang should report an error for -faltivec on non-ppc. rdar://10963572 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e6dd683d99b14ff8cd886cd81e6588cd1883ca52 |
|
13-Mar-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Tweak linkage order for solaris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d7171582b026e043916fc5d65a7d7aada547206 |
|
12-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Address some of the concerns by Chandler. * s/AddDirectoryList/addDirectoryList/ * Move the call to ::getenv into the function. * FileCheck-ize the testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bdb8f3ce95e3e5c43497292fd05764faa6ad46b1 |
|
12-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Have clang pay attention to the LIBRARY_PATH environment variable. The LIBRARY_PATH environment variable should be honored by clang. Have the driver pass the directories to the linker. <rdar://problem/9743567> and PR10296. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
09c9a5635f10a7dfa3373ef0941597c16b048362 |
|
10-Mar-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Use VersionTuple to manage macosx versions in the driver. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152504 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
df423545a19275559b675bb4f20b6fbe738f0a11 |
|
09-Mar-2012 |
Nico Weber <nicolasweber@gmx.de> |
Update comment after r152140. Clarify a bit too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
66253352131e3e7a22b3bfd0e180607aa2bfb988 |
|
09-Mar-2012 |
Anna Zaks <ganna@apple.com> |
[analyzer] Rework inlining related command line options. - Remove -analyzer-inline-call. - Add -analyzer-ipa=[none|inlining] - Add -analyzer-inlining-mode to allow experimentation for different performance tuning methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
701ec8d11039fd0c571312253e6b15f22f29c592 |
|
08-Mar-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -fno-dwarf2-cfi-asm on linux too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
634a4b1b045b13e7ddfa57934cf2b85d4348f77f |
|
06-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] What was implemented in r152130 was actually -fno-inline-functions, not -fno-inline. Part of rdar://10972766 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
30660a898545416f0fea2d717f16f75640001e38 |
|
06-Mar-2012 |
Ted Kremenek <kremenek@apple.com> |
Add new code migrator support for migrating existing Objective-C code to use the new Objective-C NSArray/NSDictionary/NSNumber literal syntax. This introduces a new library, libEdit, which provides a new way to support migration of code that improves on the original ARC migrator. We now believe that most of its functionality can be refactored into the existing libraries, and thus this new library may shortly disappear. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ebcb57a8d298862c65043e88b2429591ab3c58d3 |
|
06-Mar-2012 |
Ted Kremenek <kremenek@apple.com> |
Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, NSNumber, and boolean literals. This includes both Sema and Codegen support. Included is also support for new Objective-C container subscripting. My apologies for the large patch. It was very difficult to break apart. The patch introduces changes to the driver as well to cause clang to link in additional runtime support when needed to support the new language features. Docs are forthcoming to document the implementation and behavior of these features. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
250008b4678b19ef80866702e300bb4e53d9ff2d |
|
06-Mar-2012 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add support for -fno-inline. rdar://10972766 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
278f1f8d9557babb22b966379dd89039f3f8a440 |
|
01-Mar-2012 |
Anna Zaks <ganna@apple.com> |
[analyzer] Turn inlining on by default for better testing exposure. Fix a test, which was most likely an unintended recursive call. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c93122d31924d6d4a6265f36a0c98a164002da6 |
|
01-Mar-2012 |
Kostya Serebryany <kcc@google.com> |
Add a flag -fthread-sanitizer. This flag enables ThreadSanitizer instrumentation committed to llvm as r150423. The patch includes one test for -fthread-sanitizer and one similar test for -faddress-sanitizer. This patch does not modify the linker flags (as we do it for -faddress-sanitizer) because the run-time library is not yet committed and it's structure in compiler-rt is not 100% clear. The users manual wil be changed in a separate commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
41d476d307973cefddeee5661b0573a2cf1b0f24 |
|
29-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Add -C when linking on Solaris so that the error messages are understandable by actual humans. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5840dd9a09c458ef894e7d47caab1d90dc4c1112 |
|
29-Feb-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[driver] Emit an error when trying to use ARC on macosx earlier than 10.6 rdar://10459258 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7dbefe1b1ffbe1d69cc94d07368065976baa49a1 |
|
28-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Add -lm by default on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151653 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d706a8d118727ace6c12051037f1b0e2bd2aed60 |
|
28-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
It turns out -fno-cxa-atexit just produces broken code, so disable it on Solaris and we'll ship a __cxa_atexit implementation... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151648 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
165329c1d134d000904d6e08b1d166bf34e05517 |
|
28-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Some more Solaris fixes. Now successfully building libc++ on Solaris with clang (and linking clang against it). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b8197bcdd7453ef85d282b0e5141761f4bd83b64 |
|
18-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Default to not using __cxa_atexit on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d1ac03ebac3ab5a8456b955e3f8634f786843f9a |
|
16-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Tweak link order on Solaris so that global ctors work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ceb15656fbab9ee1da319afa4934b8f6a5964758 |
|
15-Feb-2012 |
David Blaikie <dblaikie@gmail.com> |
Remove the unuseful -fdiagnostics-show-name This option was added in r129614 and doesn't have any use case that I'm aware of. It's possible that external tools are using these names - and if that's the case we can certainly reassess the functionality, but for now it lets us shave out a few unneeded bits from clang. Move the "StaticDiagNameIndex" table into the only remaining consumer, diagtool. This removes the actual diagnostic name strings from clang entirely. Reviewed by Chris Lattner & Ted Kremenek. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b622959527c07cc6b68739eac1412f75f0ca77fa |
|
15-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
Add some Solaris include paths and fix a -lgcc_eh that apparently should be -lgcc_s. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
31c4690047f5f362ecf886f1586844b1aef0c4d2 |
|
15-Feb-2012 |
David Chisnall <csdavec@swan.ac.uk> |
First pass at Solaris toolchain support. This version compiles and links hello world on Solaris 11 for both x86 and x86-64 using the built-in assembler and Solaris (not GNU) ld, however it currently relies on a hard-coded GCC location to find crtbegin.o and crtend.o, as well as libgcc and libgcc_eh. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150580 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc30829694e62040c14f329f5491724fe7476241 |
|
10-Feb-2012 |
Jim Grosbach <grosbach@apple.com> |
Have the driver pass CPU and target feature information to cc1as. When creating the MCSubtargetInfo, the assembler driver uses the CPU and feature string to construct a more accurate model of what instructions are and are not legal. rdar://10840476 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2872c8d5465623c1207b17873f228f5d96038d5e |
|
07-Feb-2012 |
Bob Wilson <bob.wilson@apple.com> |
Filter a few more options not recognized by gcc. <rdar://problem/10814020> These are new options that gcc doesn't recognize so the clang driver needs to remove them when it falls back to invoking gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b822f72c708e235a135fcaf9eb1dba8c20c6a680 |
|
06-Feb-2012 |
Eric Christopher <echristo@apple.com> |
Rewrite the debug action handling to take -verify into account. Add a quiet option for dwarfdump and move it out of NDEBUG only. Still requires an option as we don't want this on by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149894 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1c79dc4086a5fc754689ace567cb7418ed022fcc |
|
06-Feb-2012 |
Eric Christopher <echristo@apple.com> |
Update the command line here and update the comment, we're just going to leave this as a debug only option for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7ccbad5d9949e7ddd1cbef43d482553b811e026 |
|
05-Feb-2012 |
Dylan Noblesmith <nobled@dreamwidth.org> |
Basic: import SmallString<> into clang namespace (I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
71fd6cc843719cab528a5df0899ad3d15cb9297f |
|
03-Feb-2012 |
Bob Wilson <bob.wilson@apple.com> |
Fix -ftrap-function fallout from llvm r145714. <rdar://problem/10799325> That llvm change removed the -trap-func backend option, so that using -ftrap-function with clang would cause the backend to complain. Fix it by adding the trap function name to the CodeGenOptions and passing it through to the TargetOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7fc800356f3c86a0c63e94353d7a1ac5a0ffbf66 |
|
30-Jan-2012 |
Anna Zaks <ganna@apple.com> |
[analyzer] Rename the checker as per Ted's comment. Remove the reference from the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149276 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1bd91374498ac78e72545f08f4daa6491f9c9d14 |
|
26-Jan-2012 |
Joerg Sonnenberger <joerg@bec.de> |
Remove the ToolTriple logic in NetBSD, which was completely broken by the recent refactoring. All interesting NetBSD release have a GNU as version on i386 that supports --32, so don't bother with the conditional setting of it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8dc0506df167a426df324f47d8367bd824f26e7f |
|
26-Jan-2012 |
Ted Kremenek <kremenek@apple.com> |
Enable several checkers under --analyze for general testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149016 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
18d7f3af752c41a197552a1ff25ddd639224b4bb |
|
25-Jan-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Delete the driver's HostInfo class. This abstraction just never really did anything. The two big pieces of functionality it tried to provide was to cache the ToolChain objects for each target, and to figure out the exact target based on the flag set coming in to an invocation. However, it had a lot of flaws even with those goals: - Neither of these have anything to do with the host, or its info. - The HostInfo class was setup as a full blown class *hierarchy* with a separate implementation for each "host" OS. This required dispatching just to create the objects in the first place. - The hierarchy claimed to represent the host, when in fact it was based on the target OS. - Each leaf in the hierarchy was responsible for implementing the flag processing and caching, resulting in a *lot* of copy-paste code and quite a few bugs. - The caching was consistently done based on architecture alone, even though *any* aspect of the targeted triple might change the behavior of the configured toolchain. - Flag processing was already being done in the Driver proper, separating the flag handling even more than it already is. Instead of this, we can simply have the dispatch logic in the Driver which previously created a HostInfo object create the ToolChain objects. Adding caching in the Driver layer is a tiny amount of code. Finally, pulling the flag processing into the Driver puts it where it belongs and consolidates it in one location. The result is that two functions, and maybe 100 lines of new code replace over 10 classes and 800 lines of code. Woot. This also paves the way to introduce more detailed ToolChain objects for various OSes without threading through a new HostInfo type as well, and the accompanying boiler plate. That, of course, was the yak I started to shave that began this entire refactoring escapade. Wheee! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1db772bd68502e0dabbd8efeb7f7c64a4ab2e37a |
|
23-Jan-2012 |
Nick Lewycky <nicholas@mxc.ca> |
Add support for -fno-optimize-sibling-calls. Currently only implemented in the X86 backend in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b4f90c28fabd167d59c63b445757b744dcb42971 |
|
21-Jan-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
[Cygwin] Abandon Cygwin-1.5 and g++-3. Use g++-4.3 and higher on Cygwin-1.7. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a8180e5a8795b4b80587662167dfc13646a494a1 |
|
20-Jan-2012 |
Ted Kremenek <kremenek@apple.com> |
Reenable DeadStoresChecker under --analyze, and move the IdempotentOperationsChecker to the 'experimental' category. Fixes <rdar://problem/10146347>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148533 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
64554ba9fc5f251108fd7d10a9c218e7bf985941 |
|
18-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
In the driver, -fmodules enables modules for C/Objective-C but one also needs -fcxx-modules to enable modules for C++/Objective-C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43115d4904431917ef6852ee089a8520b9940ba5 |
|
13-Jan-2012 |
Sebastian Pop <spop@codeaurora.org> |
remove assertions in the Hexagon backend specific clang driver Patch from Jyotsna Verma: I have made the changes to remove assertions in the Hexagon backend specific clang driver. Instead of asserting on invalid arch name, it has been modified to use the default value. I have changed the implementation of the CPU flag validation for the Hexagon backend. Earlier, the clang driver performed the check and asserted on invalid inputs. In the new implementation, the driver passes the last CPU flag (or sets to "v4" if not specified) to the compiler (and also to the assembler and linker which perform their own check) instead of asserting on incorrect values. This patch changes the setCPU function for the Hexagon backend in clang/lib/Basic/Targets.cpp which causes the compiler to error out on incorrect CPU flag values. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3d33622cf50fe8bd2f10e71b9135bc5c74b1786e |
|
12-Jan-2012 |
Ted Kremenek <kremenek@apple.com> |
Adjust set of default checkers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
35dd732fdff0e31ef0a24d76b7106597862adfcf |
|
11-Jan-2012 |
Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
Fix -mfpu parsing on ARM. - Support gcc-compatible vfpv3 name in addition to vfp3. - Support vfpv3-d16. - Disable neon feature for -mfpu=vfp* (yes, we were emitting Neon instructions for those!). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b43550bf1bd944a16cdae9703cb1c2049b04e6bd |
|
10-Jan-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Add support for the androideabi environment to our triple support, and for the arm-linux-androideabi triple in particular. Also use this to do a better job of selecting soft FP settings. Patch by Evgeniy Stepanov. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8f0a403945b60a8a8a56a7721bb66f6b84ec129b |
|
10-Jan-2012 |
Eric Christopher <echristo@apple.com> |
Add -g to the cc1as flags only if we're dealing with an original source file. Otherwise -g -save-temps will error out on the compile of any .c file. Fixes about 4000 of the errors in the clang-tests gdb test suite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
46d2a5c7f95a5dc2df95103c82802d2324b333e9 |
|
10-Jan-2012 |
Eric Christopher <echristo@apple.com> |
Remove extraneous braces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d97927d69b277120f8d403580c44acd84907d7b4 |
|
06-Jan-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Revert r147664; it's breaking clang regression tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2d5f0952a93dae4b648f2b33bab621ad6e932d9a |
|
06-Jan-2012 |
Jakub Staszak <kubastaszak@gmail.com> |
Silence GCC warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d2d2088c569a15c8ad75e70f995ff5a879f4fc49 |
|
04-Jan-2012 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Remove a hack that avoided passing -demangle to iOS linkers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ed002bd2f9eaea6ed5030ccd90fdaa870598a16a |
|
03-Jan-2012 |
Chad Rosier <mcrosier@apple.com> |
Fixed by Chandler in r147434. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7025d2cc327ec75353454586df2987afce5e5789 |
|
03-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Add -fno-modules to the driver, to turn off modules (although they're off by default anyway). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147449 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c514a8a0eaa575cf46b038cc27fa1e4e8c22f89a |
|
03-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Rename the command-line option for mapping #include/#import over to module imports from -fauto-module-import to -fmodules. The new name will eventually be used to enable modules, and the #include/#import mapping is a crucial part of the feature. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
abf07a7fb669dcb74040eef948d61dfe3c59ff17 |
|
02-Jan-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Fix PR11685 by implementing -ffast-math and its various friends in the Clang driver. This involves a bunch of silly option parsing code to try to carefully emulate GCC's options. Currently, this takes a conservative approach, and unless all of the unsafe optimizations are enabled, none of them are. The fine grained control doesn't seem particularly useful. If it ever becomes useful, we can add that to LLVM first, and then expose it here. This also fixes a few tiny bugs in the flag management around -fhonor-infinities and -fhonor-nans; the flags now form proper sets both for enabling and disabling, with the last flag winning. I've also implemented a moderately terrifying GCC feature where a language change is also provided by the '-ffast-math' flag by defining the __FAST_MATH__ preprocessor macro. This feature is tracked and serialized in the frontend but it isn't used yet. A subsequent patch will add the preprocessor macro and tests for it. I've manually tested that codegen appears to respect this, but I've not dug in enough to see if there is an easy way to test codegen options w/o relying on the particulars of LLVM's optimizations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a11d3098624dd9c136c713ff8a513150ce88580e |
|
26-Dec-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix potential use after free. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147277 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
17ba267cae596d5eb35fa0963ebcf73571572940 |
|
23-Dec-2011 |
Anton Yartsev <anton.yartsev@gmail.com> |
fix for PR11634 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
567003e572eed69cf1e8a04601076c8803355c7a |
|
22-Dec-2011 |
Kevin Enderby <enderby@apple.com> |
Last part of support for generating dwarf for assembly source files. This gets the clang driver to enable this when assembling a .s file. rdar://9275556 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99ba9e3bd70671f3441fb974895f226a83ce0e66 |
|
20-Dec-2011 |
David Blaikie <dblaikie@gmail.com> |
Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146959 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
657849c60378b045a9e904f35ece8fd84425a20a |
|
17-Dec-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Fix an abiguous-else warning from GCC. I have no idea why Clang doesn't have this warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
08d6e032a2a0a8656d12b3b7b93942987bb12eb7 |
|
16-Dec-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
C++11 constexpr: Add note stacks containing backtraces if constant evaluation fails within a call to a constexpr function. Add -fconstexpr-backtrace-limit argument to driver and frontend, to control the maximum number of notes so produced (default 10). Fix APValue printing to be able to pretty-print all APValue types, and move the testing for this functionality from a unittest to a -verify test now that it's visible in clang's output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146749 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
62d829abaf61d70483a5a584059440a549a306bf |
|
15-Dec-2011 |
Eli Friedman <eli.friedman@gmail.com> |
gcov-style profiling support for OpenBSD. Patch by Jonathan Gray. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a2a178989b2f6623b6a8ccf73dc0ccd98ee5bdf9 |
|
14-Dec-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix typos. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6af27ec69560f7e4b0dac4a0b4341cd6062f6852 |
|
14-Dec-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use the frame pointer on linux x86 and x86_64 if optimizing. This matches gcc's behavior. Fixes PR8186. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db103cc92518a3986a12802b06db74371e2cfce8 |
|
13-Dec-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Fix "control may reach end of non-void function" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9631939f82c0eaa6fb3936a0ce58a41adfbc9011 |
|
12-Dec-2011 |
Tony Linthicum <tlinth@codeaurora.org> |
Hexagon backend support git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
001f628a693960380e37c2b58a1009da77d7e425 |
|
10-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Handle -f{no-}honor-infinities, -f{no-}honor-nans, and -ffinite-math-only. - No test case yet, I don't know how to construct a situation where this matters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6d402dc963aa32194f3604af4463b113858291ae |
|
09-Dec-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Misc Minix-specific changes to clang: . move compiler-rt to a separate directory so the -L argument only includes compiler-rt (thanks joerg) . build all clang subdirs . switches the Minix platform to ELF . normalizes toolchain invocation Patch by Ben Gras. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4ce83eba01c582fa4cbed25f74aaa2c5bf7d4fde |
|
08-Dec-2011 |
Bob Wilson <bob.wilson@apple.com> |
Minor cleanup. Avoid redundant getTriple() calls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146122 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8cd0d25df91d7172bfd0ed6013f89ad0083ce301 |
|
08-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Linux: Fix the ASAN library path to match current compiler-rt integration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7b5f1013c5b7f541dc1fae7fc43189377874eabb |
|
06-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] Mac: do not link dynamic libs with the asan-rt, use -undefined dynamic_lookup for dynamic libs. Style fixes. Patch by glider@google.com git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145955 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4e785c908ae01519d3592eae2828e2cc94fb02eb |
|
06-Dec-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Stack realignment is a tristate. Add -mno-stackrealign to turn off all stack realignment, even with locals with alignment exceeding the ABI guarantee. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e9d11dbfe1f3286c5f8a2f2fc8ac759f63890655 |
|
06-Dec-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Add -mstack-alignment=X and fix -mstackrealign handling now that the backend options are gone. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8179aa77b679cd483a4307c80e40fa02996eb874 |
|
05-Dec-2011 |
Kostya Serebryany <kcc@google.com> |
[asan] don't require libstdc++ for asan on linux. Mac fix will go separately git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c85900f4d6aec17ef29140bfc97977463ac75cb2 |
|
30-Nov-2011 |
Akira Hatanaka <ahatanaka@mips.com> |
Get the -march argument based on the target MIPS architecture or cpu and pass it to GNU assembler. In addition, change function getMipsArchFromCPU() so that it can be reused in ConstructJob(). Patch by Simon Atanasyan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145509 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dff466c0791465f929a1d8cd551d4c84b360ba32 |
|
30-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
when -faddress-sanitizer is present, add required flags to the linker command (linux-only) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145467 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
592d26eafab66ba6288c09b66068c67ab2764c35 |
|
30-Nov-2011 |
Akira Hatanaka <ahatanaka@mips.com> |
Change processor names. Patch by Simon Atanasyan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145453 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7972c88f674475037fa11fea718565e5bcdd61a6 |
|
29-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
A couple driver fixes for PPC Linux. Patches by Michael Kostylev. PR11444/PR11445. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c18c42345636e2866fed75c7e434fb659d747672 |
|
21-Nov-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add driver arguments -ftemplate-depth=N and -fconstexpr-depth=N, with the same semantics and defaults as the corresponding g++ arguments. The historical g++ argument -ftemplate-depth-N is kept for compatibility, but modern g++ versions no longer document that option. Add -cc1 argument -fconstexpr-depth N to implement the corresponding functionality. The -ftemplate-depth=N part of this fixes PR9890. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145045 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1052c1dc52447643dac5484d3a22ab836c781f47 |
|
21-Nov-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Change the linker emulation name for FreeBSD/PPC32. Submitted by Andreas Tobler! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5d4d9807a65291cbe6ab88d4a4f74cb7fff01bde |
|
21-Nov-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Teach the driver about failure result files, which are compilation output files that are valid regardless of whether the compilation succeeded or failed (but not if we crash). Add depfiles to the failure result file list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145018 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f471487ff1e673531543576bc170898c2ab19f41 |
|
17-Nov-2011 |
Daniel Dunbar <daniel@zuster.org> |
clang/Darwin: Use the compiler-rt provided profile library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1b4eca67e073f0beefb9924cbe6c65427869f1fa |
|
16-Nov-2011 |
Kostya Serebryany <kcc@google.com> |
Add -f[no-]address-sanitizer flag git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e1ba5be96e57738ba0d6302cdb471e12107a3201 |
|
15-Nov-2011 |
Matt Beaumont-Gay <matthewbg@google.com> |
Don't track depfiles as result files which need to be cleaned up on failure. This is a partial revert of r143846. While cleaning up after a crash is probably a good idea, we were also deleting .d files if the compilation failed due to invalid input, which is not the desired behavior. The test is XFAIL'd until the cleanup code can be reworked to do the right thing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144590 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
36f6e30d5c21a693abf2612ef086e83e9696f0e0 |
|
11-Nov-2011 |
Ted Kremenek <kremenek@apple.com> |
Add top-level driver option '--serialize-diagnostics' for serialize compiler diagnostics to a file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144339 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5bea4f6860543017be326e3fbe702edb2678d898 |
|
08-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Misc fixes for clang driver on Mips Linux. Patch by Simon Atanasyan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cf6ba2eeaeabb03541ee98859805800c39759a47 |
|
07-Nov-2011 |
Chad Rosier <mcrosier@apple.com> |
Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144002 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55ccbd5fbfc6dce1b93779ba2dac0da259503ae0 |
|
07-Nov-2011 |
Chad Rosier <mcrosier@apple.com> |
Tablegenify -g options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f2db04c49429a6d53069b813d42999fa36ddd9a4 |
|
07-Nov-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix an unsafe use of Twine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b84575ef14b41b402f6c1222568fd595f15f2695 |
|
06-Nov-2011 |
David Blaikie <dblaikie@gmail.com> |
Fixing -g break caused by a dead reference to a temporary introduced in r143732. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
54db68bf0e389b8aabe1a434f825a81a9c1f7db8 |
|
06-Nov-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Add the depfile as a result file so that it is deleted if we crash, and prevent the diagnostic preprocessor run from writing a depfile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7d7e9f963a4977e36efb90fd9c369f33ced1a95a |
|
05-Nov-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Move the Linux header searching from the Frontend to the Driver. This is the first (and diff-noisiest) step to making Linux header searching tremendously more principled and less brittle. Note that this step should have essentially no functional impact. We still search the exact same set of paths in the exact same order. The only change here is where the code implementing such a search lives. This has one obvious negative impact -- we now pass a ludicrous number of flags to the CC1 layer. That should go away as I re-base this logic on the logic to detect a GCC installation. I want to do this in two phases so the bots can tell me if this step alone breaks something, and so that the diffs of the refactoring make more sense. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
79d481a08522ab031528c0047df565330c1cd562 |
|
05-Nov-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
On Linux, enable the gold plugin if we are using LTO. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
033be8bd33e0f84db8158771e13528e071563b73 |
|
04-Nov-2011 |
Devang Patel <dpatel@apple.com> |
Enable -flimit-debug-info by default. Now, clang lazily emits debug info for structs. Original behavior can be restored using -fno-limit-debug-info. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2875bda1505bce995f745002affb20862765ed04 |
|
04-Nov-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Don't blindly accept all -g options. rdar://10383444 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a461442ed99883d2760833592f65e1e95a4889bb |
|
04-Nov-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Sink the strange '-stdlib=...' flag handling into the C++ include handling logic of the generic ToolChain. This flag, despite its name, has *nothing* to do with the GCC flag '-nostdlib' that relates (exclusively) to the linking behavior. It is a most unfortunate name in that regard... It is used to tell InitHeaderSearch.cpp *which* set of C++ standard library header search paths to use -- those for libstdc++ from GCC's installation, or those from a libc++ installation. As this logic is hoisted out of the Frontend, and into the Driver as part of this ToolChain, the generic method will be overridden for the platform, where it can implement this logic directly. As such, hiding the CC1 option passing in the generic space is a natural fit despite the odd naming. Also, expand on the comments to clarify whats going on, and tidy up the Tools.cpp code now that its simpler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ffa0325bd61f656697f99434334d425c39af309 |
|
04-Nov-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Sink the handling of -fobjc-arc-cxxlib to live with the other -fobjc-arc implementation in the driver. This cleans up the signature and semantics of the include flag adding component of the toolchain. Another step to ready it for holding all the InitHeaderSearch logic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b5870e77a9a872e2a84e904a332bb60bbe207da9 |
|
04-Nov-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Add a FIXME to cleanup the CPATH handling. It's currently burried with the rest of the mess in InitHeaderSearch.cpp. We could hoist it into the driver profitably, removing more noise from the driver -> frontend communication. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143685 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
88491fc6dfc7ebbd856d57a9acb49fb83077d6c8 |
|
04-Nov-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Add a system include management interface to the toolchain, and call it and the C++ include management routine from the proper place when forming preprocessor options in the driver. This is the first step to teaching the driver to manage all of the header search paths. Currently, these methods remain just stubs in the abstract toolchain. Subsequent patches will flesh them out with implementations for various toolchains based on the current code in InitHeaderSearch.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
591ff15d4a7ae25ea7ac3f00f04f203d3ccec0b7 |
|
02-Nov-2011 |
Bob Wilson <bob.wilson@apple.com> |
Invoke the Darwin assembler with -g instead of --gdwarf2. The -g and --gdwarf2 options are currently synonyms to the Darwin assembler. But clang itself does not recognize --gdwarf2, so if we want to experiment with using clang, with its integrated assembler, to replace the default assembler, it is necessary to use -g. <rdar://problem/10349486> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143533 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
19bda3ad8b5d37e505214e82fab1d0a0bf00f0fd |
|
02-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Add an option to emulate the strange Apple gcc behavior of #pragma pack. <rdar://problem/10374763> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1a1764bd15406f86d53c51b4c7f8a54afee2a541 |
|
30-Oct-2011 |
Bob Wilson <bob.wilson@apple.com> |
Stop disabling integrated assembler with -static. <rdar://problem/10175391> The integrated assembler seems to be working pretty well for -static code now, so remove the hacks to disable it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e88c4513157cc551ed8080b1e3b3b875a9a570e1 |
|
25-Oct-2011 |
Eric Christopher <echristo@apple.com> |
Allow the -fno-operator-names option to be passed down to the rest of the compiler. Fixes PR10198 Patch by Brian Foley! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0986eb5c59c43809df95bac10138edd44c1ebb69 |
|
25-Oct-2011 |
Dan Gohman <gohman@apple.com> |
Remove the SystemZ backend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ba97b6ea0e8933ab801b0d06bba133836627794a |
|
24-Oct-2011 |
Douglas Gregor <dgregor@apple.com> |
Have -fms-no-extensions turn off -fms-compatibility git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142798 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
813a40750f7e8cd1e09a8aa1091283224a6adf21 |
|
22-Oct-2011 |
NAKAMURA Takumi <geek4civic@gmail.com> |
lib/Driver/Tools.cpp: Use PathV2::is_absolute() to add -fdebug-compilation-dir. pwd[0] might not be '/' on Win32 hosts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142720 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7c4fd9121f5885096fd3258d20a984e3f08f8603 |
|
21-Oct-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is closer to what GCC does, except that GCC also checks that the inodes for $PWD and '.' match. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
024f4be866d13dd2b0ec062e694a62ca84c37191 |
|
18-Oct-2011 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Support -iframework. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ea523d73a6de06f828952a02f5ff86e4cc631695 |
|
18-Oct-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Wire up support for the controlling the extended dwarf .file directive. With r142300 but not this patch, clang -S may emit .s files that assemblers other than llvm-mc can't parse. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
19706f8e702c04d19bc1ace504cbb9df008b6daa |
|
18-Oct-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -static-libstdc++ for linux. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
abf3ac7131ba8eab1a2ec99397a776fb0c75ff55 |
|
17-Oct-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -static-libgcc on linux and refactor the code responsible for adding libgcc to the link line into a helper function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142269 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
905c45f15a25598620d19160c139c6b785aeea89 |
|
14-Oct-2011 |
Bob Wilson <bob.wilson@apple.com> |
Use Triple.isOSDarwin() instead of comparing against Triple::Darwin. There are now separate Triple::MacOSX and Triple::IOS values for the OS so comparing against Triple::Darwin will fail to match those. Note that I changed the expected output for the Driver/rewrite-objc.m test, which had previously not been passing Darwin-specific options with the macosx triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141944 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
575fdda948e07c1afc6fcdced9e5cf0b7905a54e |
|
14-Oct-2011 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Rename -Wc++0x-compat, -Wc++0x-extensions and -Wc++0x-narrowing from c++0x to c++11. The old names are kept for backwards-compatibility. Patch by Ahmed Charles! Names for backwards-compatible DiagGroups removed by me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d596c4d3f8931f4d479e965bf46d0e7edad85570 |
|
12-Oct-2011 |
Douglas Gregor <dgregor@apple.com> |
The Objective-C rewriter uses the fragile ABI, always. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141795 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
92d6d404833468120f9a86fb360691ac60585551 |
|
11-Oct-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add support for a new -nostdlibinc option. - This disables the system include directories, but not the compiler builtin directories. Useful for projects that want to use things like the intrinsic headers, but are otherwise freestanding. - I'm willing to reconsider the option naming, I also considered providing an explicit -builtinc (which would match -nobuiltininc), but this is more consistent with existing options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141692 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a268fc0f2229eb132ebc8501b140093aeb5516bf |
|
11-Oct-2011 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Replace -nostdinc by -nostdsysteminc (which is just system include paths). The -nostdinc behavior is now -nostdsysteminc + -nobuiltininc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141691 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8642f21ca7b5963293a5424de7fe158305ae5229 |
|
10-Oct-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Link in Scrt1.o instead of crt1.o when -pie is specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
228971738f80de6f02aee0d6f8018f5209cf7c9c |
|
08-Oct-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Ignore linking errors when doing ARC migration, rdar://10247606 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ae1aee6683d486d1c92e51b2a5da6ba75f633308 |
|
07-Oct-2011 |
Chad Rosier <mcrosier@apple.com> |
More cleanup using StringSwitch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fd22cce762c875178f491a8db0050b9cbfe4429f |
|
06-Oct-2011 |
Bob Wilson <bob.wilson@apple.com> |
Remove DISABLE_ARM_DARWIN_USE_MOVT ifdefs. Radar 9456730. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141320 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
08f35a79f7506d6ac0349764aa4d6021a1e1c6e2 |
|
06-Oct-2011 |
Ivan Krasin <krasin@chromium.org> |
Add -Wlanguage-extension-token option for ext_token_used warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
88934e85f81abdc4fb5202325252be3bcab5ebf0 |
|
05-Oct-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver & AST: Implement support for -fpack-struct and -fpack-struct= command line options. - <rdar://problem/10120602>, PR9631 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43f7e62442f17a2527f6eed387c86b38ffd5dc2a |
|
05-Oct-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Improve r141053 by only emitting the warning if the original input was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d0790b8a0687f5874bc46fc298133a8b070fb667 |
|
04-Oct-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Improve r141053 by only emitting the warning if the original input was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
968b7a71c88bcd157f7d271517d7ceb266fed63a |
|
04-Oct-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Emit a warning if the user has requested debug information and we're using the integrated assembler. rdar://10216353 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d1e40d5389a4382cbebc97d54792f41ee0414af4 |
|
02-Oct-2011 |
John McCall <rjmccall@apple.com> |
Make -fobjc-nonfragile-abi the -cc1 default, since it's the increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore. This required a little bit of reshuffling with exceptions because a check was assuming that ObjCNonFragileABI was only being set in ObjC mode, and that's actually a bit obnoxious to do. Most, though, it involved a perl script to translate a ton of test cases. Mostly no functionality change for driver users, although there are corner cases with disabling language-specific exceptions that we should handle more correctly now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c3ccd283f8c35dbb200a76eacfa17f7861e03bb |
|
30-Sep-2011 |
David Chisnall <csdavec@swan.ac.uk> |
Remove the conditional that avoided passing the Objective-C runtime specification flags to cc1. This fixes PR10369 (__builtin_NSStringMakeConstantString() selecting the wrong runtime in C / C++ code and crashing, although it doesn't fix the problem that instantiating the Mac runtime for non-Darwin targets was crashing.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5adcec16cb8d9e7bebf310b6c07249dfd852346b |
|
28-Sep-2011 |
David Chisnall <csdavec@swan.ac.uk> |
Check for GCC paths that have the target triple in them. This is required for a lot of cross-compile toolchains. Also add some slightly better support for -B. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9f36062866e6e4bbbfd3efce85fcfb1ce62df97f |
|
26-Sep-2011 |
Akira Hatanaka <ahatanak@gmail.com> |
Make necessary changes in AddMIPSTargetArgs for targeting Mips64. Enable use of -mcpu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140562 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b219cfc4d75f0a03630b7c4509ef791b7e97b2c8 |
|
23-Sep-2011 |
David Blaikie <dblaikie@gmail.com> |
Switch assert(0/false) llvm_unreachable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
47adebef0df6dce752fe9a45e9190e8005b5d07c |
|
22-Sep-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add support for CPATH and friends. This moves the existing code for CPATH into the driver and adds the environment lookup and path splitting there. The paths are then passed down to cc1 with -I options (CPATH), added after the normal user-specified include dirs. Language specific paths are passed via -LANG-isystem and the actual filtering is performed in the frontend. I tried to match GCC's behavior as close as possible Fixes PR8971. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ec0258505a11e7e8229d2c96507be6bbc40d7c1 |
|
21-Sep-2011 |
Akira Hatanaka <ahatanak@gmail.com> |
Add case labels for Mips64 architectures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
61ab80a8b35e6fe9363e8ef1b3d27209b0e89349 |
|
20-Sep-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Default to arm mode when using the integrated assembler. rdar://10125227 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ae55608a29d61737b7c5390e2d1bb30ab8d5febb |
|
17-Sep-2011 |
Francois Pichet <pichet2000@gmail.com> |
As per discussion with Doug Gregor on the IRC channel, introduce a new compiler switch: -fms-compatility. Microsoft specific tweaking will now fall into 2 categories: - fms-extension: Microsoft specific extensions that should never change the meaning of an otherwise well formed code. Currently map to LangOptions::Microsoft. (To be clearer, I am planning to change the name to LangOptions::MicrosoftExt). - fms-compatibility: Really a MSVC emulation mode. Map to LangOptions::MicrosoftMode. Can change the meaning of an otherwise standard conformant program. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139978 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9bdbec17c3bc44aaa5ea88c62a958d47d1031016 |
|
17-Sep-2011 |
Douglas Gregor <dgregor@apple.com> |
Pass -fmodule-cache-path along to -cc1 properly git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fba18aa8f2cd1994dc65e8cb9f4be201c560dc0b |
|
16-Sep-2011 |
Douglas Gregor <dgregor@apple.com> |
Add an experimental flag -fauto-module-import that automatically turns #include or #import direcctives of framework headers into module imports of the corresponding framework module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139860 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ee51ef211bfed9ce04bc93835e19aee014f2fae |
|
14-Sep-2011 |
Douglas Gregor <dgregor@apple.com> |
Teach the driver to always pass down a module cache path. If none is supplied, use something derived from the system's temporary directory. Depends on LLVM r139725. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
13db5cfc4e5f03eb70efe0d227b53b8280f16161 |
|
09-Sep-2011 |
John McCall <rjmccall@apple.com> |
Treat the weak export of block runtime symbols as a deployment-target feature akin to the ARC runtime checks. Removes a terrible hack where IR gen needed to find the declarations of those symbols in the translation unit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4fe4d73bce7aba5446dcbfa36ee8782c6d496710 |
|
08-Sep-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] i386 kext preprocessor jobs also need their unsupported options filtered. This happenis when -save-temps is specified. <rdar://problem/10088387> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139269 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8efcc0184a6dfe1ea799d3a6b9c1312ef1fac11d |
|
01-Sep-2011 |
Francois Pichet <pichet2000@gmail.com> |
Enable -fdelayed-template-parsing by default on Win32. I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138942 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8697d308c1bdd50e5c45757ac11be701c26e9e97 |
|
01-Sep-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
objective-c: this patch (re)introduces objective-c's default property synthesis. This new feature is currently placed under -fobjc-default-synthesize-properties option and is off by default pending further testing. It will become the default feature soon. // rdar://8843851 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fe87fc73c0091a8d6ba04b7e3b5f144d4a0517a3 |
|
26-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] When generating temporary files allow a prefix to be added. In many cases we want the prefix to be the original file name less the suffix. For an input such as test.c to named temporary would be something like test-3O4Clq.o Part of <rdar://problem/8314451> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
807179763b87a24de26b3c89e7ae9e898bab420c |
|
26-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Remove a few more options when clang invokes cc1plus for i386 kexts. <rdar://problem/10027287> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1b9060553221720152e12981109549e0a1d8e3a1 |
|
26-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Add -mglobal-merge/-mno-global-merge machine options to enable/disable merging of globals during codegen. Fixes <rdar://problem/10017909>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
805bc1f6fb9b7bc85222d0211761a8c624f2dd75 |
|
26-Aug-2011 |
Francois Pichet <pichet2000@gmail.com> |
revert 138610, accidental commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0bb39319cf0c53554caa669b883d7130d39b04c7 |
|
26-Aug-2011 |
Francois Pichet <pichet2000@gmail.com> |
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f857186fd1995b34185d063a29b11ad4f948519f |
|
23-Aug-2011 |
Eric Christopher <echristo@apple.com> |
Add support for a verifier to the driver. Currently only verifies debug output on darwin so is hard coded there. As a note this will need a little bit of refactoring in the class hierarchy to separate it out for different verifiers based on input type. Fixes rdar://8256258. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2fef11164cbe804f7b808c07757c6f900c08d765 |
|
23-Aug-2011 |
Nico Weber <nicolasweber@gmx.de> |
enable -fstack-protector on 10.5 for usermode binaries by default. This matches gcc's behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138324 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
88b7cf00fcb582728c642da3927c59468efaf926 |
|
19-Aug-2011 |
Eric Christopher <echristo@apple.com> |
Add a completely hacky workaround for pch kext files with different extensions when falling back to cc1plus for our compile. rdar://9963920 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8722a5d48340659c98c79af820b9088a64ef0303 |
|
18-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
Use StringRef, rather than C string APIs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7e9e74b0cc298f206dcb173bd056da8556010202 |
|
18-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
No seriously, remove the unsupported warning options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f01f8474e2ae14bba4855f20dcc59f3a8e23d730 |
|
18-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
Fix off by one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137915 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
04225c1409d1cc9fe0aca758ab0b6f1d213ce267 |
|
18-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Implement in a more table-like manner and add many more warning options that aren't handled by llvm-gcc on fallback. Enhancement to rdar://9964354 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
81ae90200aa11be15ec12e9639bd82a3798b8e07 |
|
18-Aug-2011 |
Eric Christopher <echristo@apple.com> |
Add some more options that aren't handled by llvm-gcc on fallback. This is going to be made a table. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3060178ad9df29789505c1e6debcfc80a3a13587 |
|
18-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
Fix else style. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137896 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cc0de8c08128023544dd0c9c7ee67b105fed2985 |
|
17-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
Fix iterator end for r137842. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
285f9a284704c07cd50e4597408d5f93518cd7c3 |
|
17-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
[driver] Clang doesn't support -mkernel/-fapple-kext for i386, so it's automatically invoking llvm-gcc's cc1plus, which doesn't support all options supported by Clang. Therefore, filter out unsupported options. rdar://9964354 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a544aeece3e16296bdbbc9ee32053fac9616f85b |
|
14-Aug-2011 |
Bob Wilson <bob.wilson@apple.com> |
Reject -mkernel for i386/Darwin C++ code; fall back to llvm-gcc instead. Since -mkernel implies -fapple-kext, this just extends the current behavior for -fapple-kext to apply for -mkernel as well. Radar 9933387. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137566 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cc52a0688f46cd04dd6b4670b304cbe82e3018c0 |
|
14-Aug-2011 |
Nico Weber <nicolasweber@gmx.de> |
Add support of -x objc-cpp-output, -x objc++-cpp-output to the Driver. Matches gcc, and is also required for using ccache with clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137563 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2b81910618f63e4ce2373c926a26e76b4b91373f |
|
02-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
When the compiler crashes, the compiler driver now produces diagnostic information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. rdar://9575623 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136702 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8c221b84caff1f10ef4aad5c6ff77d36633f607c |
|
01-Aug-2011 |
Chad Rosier <mcrosier@apple.com> |
Driver: When compiling i386 -fapple-kext code, we fallback to llvmgcc. Unfortunately, llvmgcc doesn't always work when writing temporary output to /dev/null. Therefore, create a temp file that is later deleted. rdar://9837692 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136644 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
65e02fa80e1c185f18e5f81cefc30d75383a7301 |
|
28-Jul-2011 |
Douglas Gregor <dgregor@apple.com> |
Introduce the "-index-header-map" option, to give special semantics for quoted header lookup when dealing with not-yet-installed frameworks. Fixes <rdar://problem/9824020>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f9e272e632e951b1efe824cd16acb4d96077930 |
|
23-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports them into the clang namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
19d9d2ebbed9164e3f3a20fa065a26585c990a2e |
|
22-Jul-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Avoid warning on "clang -c -Dfoo test.i". Lines like these are created when using ccache and libtool.m4 assumes that the compiler cannot print warnings about options it knows about. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d7a3ba03f69892aac02e0771eb2e6d1b7b1d1267 |
|
20-Jul-2011 |
Chad Rosier <mcrosier@apple.com> |
Temporarily revert r135614 while I fix the cmake build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135621 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2da13b15959365df7edf1ed12a049b599b39c276 |
|
20-Jul-2011 |
Chad Rosier <mcrosier@apple.com> |
When the compiler crashes, the compiler driver now produces diagnostic information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9594675cc1eb52a054de13c4a21e466643847480 |
|
20-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
introduce a centralized place to introduce and inject llvm types into the clang namespace. There are a number of LLVM types that are used pervasively and it doesn't make sense to keep qualifying them. Start with casting operators. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135574 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ee2049278b98d42709380054eb83f4952af1200 |
|
19-Jul-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Add some additional driver flags to optionally emit or save the pre-migration ARC errors. -arcmt-migrate-emit-errors : Emits the pre-migration ARC errors but it doesn't affect anything else -arcmt-migrate-report-output : Writes out the pre-migration ARC errors to the provided plist file rdar://9791454 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bb52786da8d055568eef6e5694288c1258bc8c2a |
|
12-Jul-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Implement -MG. Fixes PR9613 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134996 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
69325d5b7cfecf1b3128745efc33612aedf1b8b4 |
|
09-Jul-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Introduce new '-ccc-arcmt-migrate <path>' ARC migration driver option. This is a new mode of migration, where we avoid modifying the original files but we emit temporary files instead. <path> will be used to keep migration process metadata. Currently the temporary files that are produced are put in the system's temp directory but we can put them in the <path> if is necessary. Also introduce new ARC migration functions in libclang whose only purpose, currently, is to accept <path> and provide pairs of original file/transformed file to map from the originals to the files after transformations are applied. Finally introduce the c-arcmt-test utility that exercises the new libclang functions, update arcmt-test, and add tests for the whole process. rdar://9735086. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134844 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
72ac120023abb73f3ff9386e193fed55fa9a96e2 |
|
07-Jul-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Add -ccc-arcmt-check/-ccc-arcmt-modify driver option aliases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f1443bedeb68a461c548f7a552fc0964520f24cb |
|
06-Jul-2011 |
John McCall <rjmccall@apple.com> |
Somehow the -fgnu-runtime option itself got lost in all that shuffling. Restore it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
256a76e0b0e0c9e65a3122917d553ef10bc84d29 |
|
06-Jul-2011 |
John McCall <rjmccall@apple.com> |
Call objc_terminate() instead of abort() when a cleanup throws an exception in Objective-C; in Objective-C++ we still use std::terminate(). This is only available in very recent runtimes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134456 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9f084a3166b684573ba49df28fc5792bc37d92e1 |
|
06-Jul-2011 |
John McCall <rjmccall@apple.com> |
Change the driver's logic about Objective-C runtimes: abstract out a structure to hold inferred information, then propagate each invididual bit down to -cc1. Separate the bits of "supports weak" and "has a native ARC runtime"; make the latter a CodeGenOption. The tool chain is still driving this decision, because it's the place that has the required deployment target information on Darwin, but at least it's better-factored now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134453 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5b2b89b3e8aac573e49b3225ace4e0bb91663014 |
|
05-Jul-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Drop "soft" argument that would be considered as file argument by cc1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134438 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d18eecac712bfbf63372cb78940d662ce9017840 |
|
02-Jul-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Make clang behave in a gcc-compatible way in the presence of multiple flags for the same x86 target feature (e.g. -mno-sse -msse). gcc uses a somewhat unintuitive algorithm here in that the enabled SSE instructions is based on the order of the *last* flag for *each* feature-level, so that "-mno-sse -msse2" only enables SSE2, but "-mno-sse -msse2 -msse" enables all SSE levels. Issue reported on cfe-dev. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
aa7333c860ac651c75da495217e0d6a9c10c0bb0 |
|
02-Jul-2011 |
Eric Christopher <echristo@apple.com> |
Update for llvm commit r134291. Fixes rdar://9714064 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5d9b6bf9de98a33427fc7a3beeca90a3002b4744 |
|
29-Jun-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
Use existing -fcatch-undefined-behavior option, replacing -freset-local-blocks. // rdar://9227352 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1077e420b89c9541396135157f22a1eff6062edf |
|
29-Jun-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
Under a compiler flag, -freset-local-blocks, wipe out stack blocks when they go out of scope. // rdar://9227352 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134045 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
99ca47b21f6b32ea8a92b0c8e0bea18170f86b9e |
|
28-Jun-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: -force_load can be specified multiple times. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3f4be6fb8872942f567166ab8d99c89885f26103 |
|
27-Jun-2011 |
Bill Wendling <isanbard@gmail.com> |
libprofile_rt may be installed as a dylib on Darwin. If we cannot find the static library, use the dylib instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d71315c5511bd1204732216964faa6254dc4b2b6 |
|
22-Jun-2011 |
John McCall <rjmccall@apple.com> |
It is possible to request the nonfragile ABI with -fobjc-abi-version=2; respect that when deciding whether -objc-exceptions implies the -fexceptions -cc1 option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133590 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a68e1c398a0ab9c24e82090fbb26c755dbc62c3c |
|
21-Jun-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Fixup version check for -object_path_lto support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133548 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
13c4f2144b35bda21746eb60ad90e52a9bd8dcda |
|
21-Jun-2011 |
Bob Wilson <bob.wilson@apple.com> |
Fix the default libc++ header search path to be sysrooted. Radar 9639692. The -cxx-isystem path is not prefixed with the sysroot directory, so it's not a good way for the driver to set the system default C++ search path. Instead, add -stdlib as a cc1 option and teach the frontend how to find the headers. The driver can then just pass -stdlib through to "cc1". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5bfa656e132560e616310b455d65604a49e33e35 |
|
21-Jun-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: When invoking the linker, automatically pass -object_path_lto so that the linker has a place to put the temporary object file and can leave it around (for the driver to clean up). This is important so that the object file references in the debug info are preserved for possible use by dsymutil. - <rdar://problem/8294279> executable has no debug symbols when compiled with LTO git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133543 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c3b9014c7236a15cf467662264b243a22c420312 |
|
21-Jun-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Add support for -Wa,--noexecstack when building from a non-assembly file. For an assembly file it worked correctly, while for a .c file it would given an error about how --noexecstack is not a supported argument to -Wa. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c2e70b46b686c8debb3020891a5593f298b053ae |
|
18-Jun-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[arcmt] Remove '-arcmt-modify-in-memory', it turned out less useful than we hoped it would be. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7a883e3e1798efdb12f06e4e1b722f9a659dbac3 |
|
17-Jun-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Add support for -force_load flag, for compat with Apple gcc. rdar://9555962 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8f0e8d22960d56f8390f4971e2c0f2f0a0884602 |
|
16-Jun-2011 |
John McCall <rjmccall@apple.com> |
The ARC Migration Tool. All the credit goes to Argyrios and Fariborz for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133104 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f85e193739c953358c865005855253af4f68a497 |
|
16-Jun-2011 |
John McCall <rjmccall@apple.com> |
Automatic Reference Counting. Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
74da19fc3a52d7e3005eeb7a7833859da84fd12a |
|
15-Jun-2011 |
Douglas Gregor <dgregor@apple.com> |
Introduce a -cc1-level option to turn off related result type inference, to be used (only) by the Objective-C rewriter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4c4efee6d3113f20b41efaeec08934332d2ea40e |
|
13-Jun-2011 |
Douglas Gregor <dgregor@apple.com> |
Eliminate the -f[no]objc-infer-related-result-type flags; there's no reason to allow the user to control these semantics through a flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132919 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
926df6cfabf3eaa4afc990c097fa4619b76a9b57 |
|
11-Jun-2011 |
Douglas Gregor <dgregor@apple.com> |
Implement Objective-C Related Result Type semantics. Related result types apply Cocoa conventions to the type of message sends and property accesses to Objective-C methods that are known to always return objects whose type is the same as the type of the receiving class (or a subclass thereof), such as +alloc and -init. This tightens up static type safety for Objective-C, so that we now diagnose mistakes like this: t.m:4:10: warning: incompatible pointer types initializing 'NSSet *' with an expression of type 'NSArray *' [-Wincompatible-pointer-types] NSSet *array = [[NSArray alloc] init]; ^ ~~~~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:72:1: note: instance method 'init' is assumed to return an instance of its receiver type ('NSArray *') - (id)init; ^ It also means that we get decent type inference when writing code in Objective-C++0x: auto array = [[NSMutableArray alloc] initWithObjects:@"one", @"two",nil]; // ^ now infers NSMutableArray* rather than id git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db6393f259b8e634302e27d538ca4760f4221d91 |
|
08-Jun-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Sort -lgcc after -lgcc_s for NetBSD, otherwise shared libraries on i386 may pick it up. This would create bad text relocations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
000a6552adc6372576d65170dfb5969fd03cc521 |
|
04-Jun-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Adjust the linker for PowerPC64/-m32 on FreeBSD too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3393cef18e887723aaa2395d33550ab35551af1d |
|
04-Jun-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Make -m32 work on FreeBSD/PowerPC64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80df02592ccc283b20b66959f74c6d61af28cadb |
|
04-Jun-2011 |
Nick Lewycky <nicholas@mxc.ca> |
On linux, -nostdlib was causing a --start-group with no --end-group to be passed to the linker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db3f24ac0dafad175e9daef1b8733600194f56e0 |
|
02-Jun-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Change how we link libprofile_rt.a. While at it, refactor the code a bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
01ba8545fb6bae2a370606b4f40f0d17eb0a8c6c |
|
02-Jun-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add -fno-gnu89-inline. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fb3f4aad0436a9c40e9130598162150890c405b5 |
|
02-Jun-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -fgnu89-inline. Fixes PR10041. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
446b8472c77b71b3aa7fed2158b62fde171c2922 |
|
01-Jun-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add the necessary -L option for finding libprofile_rt.a. It might be a good idea at some point to split out the directories where we install our runtime libraries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132425 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
951733d6ce270679db19e144782d76d9866eb166 |
|
31-May-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Clang: Simplify code to use arch enumerations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2e95a6d7d0b5aed39747875d7474c27824f7319f |
|
24-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
When given one of the applicable coverage flags, try to link against libprofile_rt.a. On Darwin, don't try to link -lgcov. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
776bff74a63b3ebf52b0a7cf9af878c108031208 |
|
24-May-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Let amd64 be used in target triple instead of x86_64 on FreeBSD. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5b4e7b11e745329d8a55fd56504450dede1b2100 |
|
24-May-2011 |
Jim Grosbach <grosbach@apple.com> |
For non-Darwin, a plain 'char' type is unsigned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c9471b0ff1815ed0149dbfcad0f385ed8648eeb0 |
|
21-May-2011 |
Douglas Gregor <dgregor@apple.com> |
Introduce the -fdiagnostics-format=xxx option to control how Clang prints the file, line, and column of a diagnostic. We currently support Clang's normal format, MSVC, and Vi formats. Note that we no longer change the diagnostic format based on -fms-extensions. Patch by Andrew Fish! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
46a49391efab20d7a2a1c18f22edb3d76b465252 |
|
19-May-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Correction for r131662, the GNU as option is --fatal-warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d793350dee89688f1cc939096dc60c3bc15c20fe |
|
19-May-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Support -fatal-warnings for the assembler frontend git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cb773921b1e8e7cf2a5dba25bd596d4f258a9daa |
|
17-May-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131478 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
97f6abb4470a82be4a8c6f1603e7bb303f9079b5 |
|
17-May-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
The logic about -static is darwin only. For now assume that all non darwin assembler can handle cfi. Add a test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
182564cd14a2105fff05fd52f5940eff96161d57 |
|
16-May-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Make the triple an explicit argument of FindTargetProgramPath. Preserve the original triple in the NetBSD toolchain when using -m32 or -m64 and the resulting effective target is different from the triple it started with. This allows -m32 to use the same assembler/linking in cross-compiling mode and avoids confusion about passing down target specific flags in that case like --32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
03e92303e6e9d366ff35388b982eea7f7db33e62 |
|
09-May-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Put dsymutil -o arguments first, so that dysmutil doesn't barf when POSIXLY_COMPLIANT is set. - Patch by Dave Vasilevsky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131084 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
359cf927cf4980099a04b3f3cf040b81d181fe3d |
|
06-May-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Move logic for passing down -mrelax-all / -relax-all into a common function. Extend the logic to check if the input was compiled. Use -relax-all as default only if -O0 is used for compilation. Fixes bug 9290. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130983 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3dc05418538c719fea48b906bfa4febe5296e126 |
|
05-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Preserve the full name of the file, so that '-c -o foo.pic.o' produces foo.pic.gcno instead of foo.gcno. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5ea4f44e34449a78d6b38aa47c14b527839d7aac |
|
04-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Record where the GCOV data files should be placed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
574bb5a5bbc7ffd726981e67e476ca1f8840276c |
|
04-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
No, fix this use after free properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130833 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c989fc446fd8118aba964e8e0005ae510e4c621 |
|
04-May-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Fix use after free through StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1a584022c86bd0778cf7ad1fbea08c78869cf216 |
|
02-May-2011 |
Eric Christopher <echristo@apple.com> |
Add the -mstackrealign option which just communicates the need to force align the stack to the backend. Fixes rdar://9289631 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cc95719054ef9949c88d21c6c8d349dac8b4fd36 |
|
02-May-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Honor --sysroot= when invoking the linker, on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
61b1efe2d0b459a98962fd9b4c097ad8bb9bfdec |
|
02-May-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Disable CFI if not using the integrated assembler. We should probably do this only for OS X, but it is probably not all that important. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130697 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f24a151d645abc89f94aa58ad59f3131502041b1 |
|
30-Apr-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -fno-dwarf2-cfi-asm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b7f5ef73aee479b2fa54c30cfebed665be8fccb9 |
|
30-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: When using -mios-simulator-version-min, explicitly pass this on to the linker. - Only do this explicitly with the argument for now, the linker will need to explicitly add support for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130594 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a0fa203f04235cb6d05eeb8cea3392a01aa7571b |
|
30-Apr-2011 |
Bob Wilson <bob.wilson@apple.com> |
Add -Oz option and use it to set the inline threshold to 25. Radar 9333566. Patch by Chad Rosier! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130554 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3df2325a0fd4b868b804aa1708beb3634402c22d |
|
29-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/cc1as: Forward -mllvm arguments when compiling assembly files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130516 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ce911f5fd76375948d18e6528fe7a7314c6e1ac9 |
|
28-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/ld: Set the deployment target following the version information in the tool chain, instead of based on the translated arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130440 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
295163797a75c7c8b1f4b21fa7ac4a200bff9395 |
|
28-Apr-2011 |
Ted Kremenek <kremenek@apple.com> |
Make the top-level driver ignore -fobjc-default-synthesize-properties while this feature undergoes more review and development. This is still available as a -cc1 option for testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f8c247d247f9f7ab2bf4965677e6d056711c99d5 |
|
23-Apr-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Move all of the logic for __DEPRECATED to the driver based on comments from dgregor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1cfe3c305c0d5393fd94167808b8f5d96cd65227 |
|
23-Apr-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Fix Clang's __DEPRECATED define to be controled by -Wdeprecated. This matches GCC behavior which libstdc++ uses to limit #warning-based messages about deprecation. The machinery involves threading this through a new '-fdeprecated-macro' flag for CC1. The flag defaults to "on", similarly to -Wdeprecated. We turn the flag off in the driver when the warning is turned off (modulo matching some GCC bugs). We record this as a language option, and key the preprocessor on the option when introducing the define. A separate flag rather than a '-D' flag allows us to properly represent the difference between C and C++ builds (only C++ receives the define), and it allows the specific behavior of following -Wdeprecated without potentially impacting the set of user-provided macro flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
50465d1d2f5f6dd3d8e18e2cf7bad4691e5ca6a8 |
|
23-Apr-2011 |
Chandler Carruth <chandlerc@gmail.com> |
There were some frustrating problems with the implementation of -Wwrite-strings. First and foremost, once the positive form of the flag was passed, it could never be disabled by passing -Wno-write-strings. Also, the diagnostic engine couldn't in turn use -Wwrite-strings to control diagnostics (as GCC does) because it was essentially hijacked to drive the language semantics. Fix this by giving CC1 a clean '-fconst-strings' flag to enable const-qualified strings in C and ObjC compilations. Corresponding '-fno-const-strings' is also added. Then the driver is taught to introduce '-fconst-strings' in the CC1 command when '-Wwrite-strings' dominates. This entire flag is basically GCC-bug-compatibility driven, so we also match GCC's bug where '-w' doesn't actually disable -Wwrite-strings. I'm open to changing this though as it seems insane. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130051 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8387e2a41eef6fa17fb140a18c29b6eee9dd2b8a |
|
23-Apr-2011 |
Francois Pichet <pichet2000@gmail.com> |
Add -fdelayed-template-parsing option. Using this option all templated function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such all the symbols of the TU are available during name lookup. Using this flag is necessary for compatibility with Microsoft template code. This also provides some parsing speed improvement. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e8ba8d78a258ec992d3521eebdae8324db777b14 |
|
22-Apr-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Wire up the -ftest-coverage and -fprofile-arcs flags to .gcno file emission (at compile time) and .gcda emission (at runtime). --coverage enables both. This does not yet add the profile_rt library to the link step if -fprofile-arcs is enabled when linking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3cc3ffc740e932e07519fdfc38ba4a76884e6e8d |
|
22-Apr-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Fix indentation. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129954 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b5fbb8931466eeab70a30a27a8d5f385472305a1 |
|
18-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Disable movw/movt with -mkernel or -fapple-kext. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7d2b8c1fcc2b707be78b09930a7767477822462f |
|
16-Apr-2011 |
Douglas Gregor <dgregor@apple.com> |
Initial work to improve documentation for Clang's diagnostics, from Matthieu Monrocq git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc8f0e14ad142ed811e90fbd9a30e419e301c717 |
|
15-Apr-2011 |
Chris Lattner <sabre@nondot.org> |
fix a bunch of comment typos found by codespell. Patch by Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
34bac1f7b1ad8018b0d456f38744891c4bf56f63 |
|
13-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/no-integrated-as: Fix forwarding of -g flag to assembler, when .s input undergoes preprocessing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
09f43ed8a1be67360fde9b335eac60bac8db8e19 |
|
11-Apr-2011 |
Chris Lattner <sabre@nondot.org> |
fix the path to ld.so for darwin/ppc, resolving PR9677. Patch by Jeremy Huddleston! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b8a3e8139b9fe513500c89bbcd9133415654a689 |
|
09-Apr-2011 |
Dylan Noblesmith <nobled@dreamwidth.org> |
refactor -ccc-gcc-name code Put the logic for deciding the default name for gcc/g++ in the only place that actually cares about it. This also pushes an ifdef out of the generic driver code to a little further down, when the target is actually known. Hopefully it can be changed into just a runtime check in the future. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
49af1f3cedc55726e4a3dd343eb4a8e24eab8439 |
|
08-Apr-2011 |
Evan Cheng <evan.cheng@apple.com> |
Rename -mtrap_function= to -ftrap_function= since it's now a target neutral options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129153 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b20e442b31287b7e926a118dec36bddc34dbe730 |
|
08-Apr-2011 |
Evan Cheng <evan.cheng@apple.com> |
Add -mtrap_function=<> option. rdar://9257465 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f44a1a04a36453527de2285c402fbe9453184121 |
|
08-Apr-2011 |
Chris Lattner <sabre@nondot.org> |
fix a typo, patch by PaX team. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
089f872fedb175f7569f24f1dba362ffbc403528 |
|
07-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Don't attempt to forward some Clang-only options to cc1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c8a22b091677c02003880166e5d5767ca8d74b70 |
|
07-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Sketch driver support for a CC_LOG_DIAGNOSTICS options, similar to the existing CC_PRINT_OPTIONS and CC_PRINT_HEADERS, which can be used to transparently capture the compiler diagnostics from a build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43ac2978291bf1471e2c916a88c7f1c1e170dc19 |
|
06-Apr-2011 |
Ted Kremenek <kremenek@apple.com> |
Add ToolChain support to get Clang to recognize Ubuntu/ppc and Gentoo/ppc64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128944 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1051fc0ba0fb924d6d4a88a2113460a40a542614 |
|
01-Apr-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Tweak simulator link logic a bit more to be closer to GCC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4035580e3475db9013f335ce2b8a49dd1988a79a |
|
31-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Tweak link logic for simulator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
969323239f16589329d091a2b8ef200fcfe7c9e9 |
|
29-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Integrated-As: Support -Wa,-L when using the integrated assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
abaca7a8be8e79cc01354676e3bcb26575640311 |
|
27-Mar-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Add an option to suppress include stack printing on note diagnostics. These stacks are often less important than those on primary diagnostics. As the number of notes grows, this becomes increasingly important. The include stack printing is clever and doesn't print stacks for adjacent diagnostics from the same file, but when a note is in between a sequence of errors in a header file, and the notes all refer to some other file, we end up getting a worst-case ping-pong of include stacks that take up a great deal of vertical space. Still, for now, the default behavior isn't changed. We can evaluate user feedback with the flag. Patch by Richard Trieu, a couple of style tweaks from me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128371 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5adb5a84bfb4f2e5f1ea28fdfc6ee1cd9b622c60 |
|
27-Mar-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Add -f[no-]strict-overflow to the Clang driver. Use it to set the default for -fwrapv if that flag isn't specified explicitly. We always prefer an explict setting of -fwrapv when present. Also adds support for -fno-wrapv to allow disabling -fwrapv even when -fno-strict-overflow is passed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5188507b9a1b09ec95c14ffadf0e832f2b47aa8a |
|
24-Mar-2011 |
Ted Kremenek <kremenek@apple.com> |
Rework checker "packages" and groups to be more hierarchical. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3c66d30d513106bb794990c5e4ba36a31ac19f15 |
|
22-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Add a more explicit -backend-option flag for passing backend command line options, instead of leveraging the blanket -mllvm option. - This allows using the frontend itself without requiring the backend have those options available (i.e., if the target wasn't built). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1ec0ade3bb7d1468c3dfa6ba7ce7a48b2b95d9d3 |
|
21-Mar-2011 |
Bob Wilson <bob.wilson@apple.com> |
Add clang support for cortex-m0 cpus. Patch by James Orr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128018 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
10c6435e90631afd9a3f4f9e9ba0c3f53370d019 |
|
21-Mar-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Introduce FindTargetProgramPath to check for a target-specific helper program and fallback to plain version otherwise. Use this for the NetBSD target to make it try e.g. i486--netbsdelf-as and -ld for target i486--netbsdelf. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127996 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ab2bdcc4f397e100c684ede8e8ca6e226e1380a |
|
21-Mar-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Remember sysroot in Driver. Pass it down to ld for NetBSD, FreeBSD and DragonFly. Use the --sysroot= form for Linux. Fix handling of = prefix for -B. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d98750f065fd8d6278df72f6218e3d59b2df2aa9 |
|
18-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward -traditional and -traditional-cpp in preprocessing modes. - We don't really support the majority of the horrible -traditional-cpp behavior, but it is unlikely that we ever will either. This allows us to start trying to use clang as a /usr/bin/cpp replacement and see what pieces of -traditional-cpp mode people actually care about. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
32096695c76033a6b0b1747c439f7378a11e8312 |
|
18-Mar-2011 |
John McCall <rjmccall@apple.com> |
The Darwin kernel does not provide useful guard variable support. Issue this as an IR-gen error; it's not really worthwhile doing this "right", i.e. in Sema, because IR gen knows a lot of tricks beyond what the constant evaluator knows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d47ea693706f7b0ffa68e879b73a71609a337786 |
|
18-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Obj-C: Be compatible with GCC behavior in that -fno-exceptions *does not* disable Obj-C exceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0133917074027e4bd5cd6dabb9da03a6214a21b6 |
|
17-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: These are command line options, not target features. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127820 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7f6f8c8ab29db9221ed40ab7d5317df29848cc52 |
|
17-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Suppress spurious warning about -force_cpusubtype_ALL. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fa41d6975058ceb1b8a24564f6dcec72f89f62e8 |
|
17-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/ARM: Kernel/kext code has more strict alignment requirements. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7187fac0f19f75c62f575c9f15f0ed68b7d97810 |
|
17-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/ARM: Match GCC behavior in that -msoft-float disables NEON, despite this not being consistent at all with other parts of the GCC implementation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ade3195a201e16e989e9f93a568fb1806519077c |
|
12-Mar-2011 |
Ted Kremenek <kremenek@apple.com> |
Re-enable the IdempotentOperations checker for --analyze, and put it and the DeadStores checker into the "deadcode" group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127531 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9ade4ae4fb7ed1fcbd63835d9f8f53052f0657a2 |
|
07-Mar-2011 |
Joerg Sonnenberger <joerg@bec.de> |
If called as *cpp or *cpp-[^-]*, run only the preprocessor. If no input is specified, use stdin implicitly. Based on a patch from Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f0594d8b64cf32c55dde7a49ba849e864446c92b |
|
06-Mar-2011 |
Douglas Gregor <dgregor@apple.com> |
Fix driver for thumb-capable ARM hosts, from Mikko Lehtonen! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db04e2e26dd991ecddb6badf8c91ee46de80c31c |
|
02-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Allow disabling movt/movw from build, for testing purposes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bbe8e3eff56ac1d79f3668d706536e3cebe28c18 |
|
01-Mar-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Be bug compatible with GCC and ignore -pg on ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
451f8caf37fb6691936f9003833e857e1d1dc987 |
|
01-Mar-2011 |
Roman Divacky <rdivacky@freebsd.org> |
The default CPU on FreeBSD for i386 should be i486, not pentium4. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
58e5ac9d41d8186bea92e892d572e2eea28d3f9c |
|
01-Mar-2011 |
Roman Divacky <rdivacky@freebsd.org> |
For linking on FreeBSD, don't add a hardcoded "-L/usr/lib", but retrieve the library paths from the ToolChain object instead. Copy the relevant code from linuxtools::Link::ConstructJob(), and replace the std::string stuff with llvm::StringRef, while we're here. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cfe9af250f466e7e38becea4428990448ae07737 |
|
01-Mar-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Implement -mrtd which sets the StdCall calling convention to be the default one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126756 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9c094fbcfaba49fc1aeca119c0e12bec59779692 |
|
01-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Disable more warnings so that it is safe to use CC="clang -use-gold-plugin -emit-llvm" CXX="clang++ -use-gold-plugin -emit-llvm" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
035ff0c6746a2689667c83d4c02a47d5a7b71e82 |
|
01-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't warn about "clang -use-gold-plugin -c ...". With this users can say CC="clang -use-gold-plugin" CFLAGS=-emit-llvm ../configure... and not be hit with a warning for each .c file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c4d2c9074be6eb2091086eddd6c8f052f3b245c8 |
|
28-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Remove '-analyzer-check-objc-mem' flag, the nominee for best misnomer award. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e6533ffc680e84cd193b4ea0d81548e251cb1f2f |
|
28-Feb-2011 |
David Chisnall <csdavec@swan.ac.uk> |
Make -fobjc-nonfragile-abi and -fgnu-runtime imply -fblocks (unless -fno-blocks is specified), because this combination of flags defines an Objective-C runtime that includes a blocks runtime. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126654 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43f220f6d74e01f2606e429810484177903a28e6 |
|
28-Feb-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Fix a tiny goof in the Driver's logic which caused the explicit presence of -fexceptions to disably C++ exceptions. The correct code was in the ObjC branch, this just mirrors that logic on the C++ side of things. Thanks to John Wiegley for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
15348aeb81285c75b2e92b5bf8d2db3445d147c2 |
|
28-Feb-2011 |
Anders Carlsson <andersca@mac.com> |
Add a -fcxx-exceptions flag to the frontend, which can be used to enable C++ exceptions, even when exceptions have been turned off using -fno-exceptions. Make the -fobjc-exceptions flag do the same thing, but for Objective-C exceptions. C++ and Objective-C exceptions can also be disabled using -fno-cxx-excptions and -fno-objc-exceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a676d501a001657892c483bd4d651650e168f337 |
|
28-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Move the DeadStores checker out of the 'core' package. -Now it gets enabled with '-analyzer-checker=DeadStores'. -The driver passes the above flag by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
525544de0835d5ee7497f4897e255727b162e0aa |
|
28-Feb-2011 |
Anders Carlsson <andersca@mac.com> |
Factor code out into a helper function, shouldUseExceptionTablesForObjCExceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e9b801f7633b11b18d357a71442bd003435784e8 |
|
22-Feb-2011 |
Anders Carlsson <andersca@mac.com> |
Make clang -cc1 disable Objective-C exceptions by default, and add a -fobjc-exceptions flag to turn them on. Update all tests accordingly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a2e40219e0a8f609a6c4cfc213223f02a3cef3c9 |
|
21-Feb-2011 |
Chris Lattner <sabre@nondot.org> |
Pass the right linker flag in openbsd::Link::ConstructJob, patch by Matthew Dempsky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126133 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
da4b7cf09ebfd4e4098b516081fa9dae2f5c99e0 |
|
20-Feb-2011 |
Anders Carlsson <andersca@mac.com> |
Add a new ObjCExceptions member variable to LangOptions. This controls whether Objective-C exceptions are enabled or not (they are by default). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8899ab01d43ca7359cd852e58c5c3182cd0979c5 |
|
19-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without crashing; enable it for C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126026 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8ac38d7b5d88d12f454a7cda1275bf429813151d |
|
19-Feb-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Support -Wl, with -Xarch_. This doesn't work naturally because of the special way we model "linker input" arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7dd445ec20e704846cfbdb132e56539280d71311 |
|
17-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Use the new registration mechanism on the non-path-sensitive-checkers: DeadStoresChecker ObjCMethSigsChecker ObjCUnusedIvarsChecker SizeofPointerChecker ObjCDeallocChecker SecuritySyntaxChecker git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0aa205765aec0aa5eed672f8e3cade543372edcd |
|
17-Feb-2011 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 instead. No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125742 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
125b4cb35536e45201f8f2cb19ee620e3ad67c49 |
|
17-Feb-2011 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c9f2e0f286500c7e747849b3aa9c0e67a4dc90d7 |
|
15-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Use the new registration mechanism on the IdempotentOperationChecker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
027a6abdd6cedc0b8203da72eed6d15c796dce9d |
|
15-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Use the new registration mechanism on some of the internal checks. These are: StackAddrLeakChecker ObjCAtSyncChecker UnixAPIChecker MacOSXAPIChecker The rest have/create implicit dependencies between checkers and need to be handled differently. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43dee220252ef0b42c5f8a3bb1eca97f84f2565f |
|
14-Feb-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Overhauling of the checker registration mechanism. -Checkers will be defined in the tablegen file 'Checkers.td'. -Apart from checkers, we can define checker "packages" that will contain a collection of checkers. -Checkers can be enabled with -analyzer-checker=<name> and disabled with -analyzer-disable-checker=<name> e.g: Enable checkers from 'cocoa' and 'corefoundation' packages except the self-initialization checker: -analyzer-checker=cocoa -analyzer-checker=corefoundation -analyzer-disable-checker=cocoa.SelfInit -Introduces CheckerManager and CheckerProvider. CheckerProviders get the set of checker names to enable/disable and register them with the CheckerManager which will be the entry point for all checker-related functionality. Currently only the self-initialization checker takes advantage of the new mechanism. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
242302673bdcf35b49579a30fed9dc068a4e10f2 |
|
10-Feb-2011 |
Matt Beaumont-Gay <matthewbg@google.com> |
Add braces to quiet a gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c16bb76f25ada63864aa89827a9906c1579d2ad3 |
|
10-Feb-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Adjust the object files to be linked in when mcount profiling is specified in the FreeBSD linker driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
be4c8705e499b55548467eb7adaa23cbc6edfef9 |
|
10-Feb-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Implement mcount profiling, enabled via -pg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125282 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
17d3fea677753e6e3e82ffe2cbdeccbf5f2e7497 |
|
09-Feb-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Frontend: Wire up -mregparm=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125201 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc2bd7c3efed6756a030d58a5f6ae31947e7d451 |
|
04-Feb-2011 |
Bob Wilson <bob.wilson@apple.com> |
Add better support for ARM EABI triples. Patch by Renato Golin! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124878 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2843c1900b6da763885f47d0999e923e7c67fd65 |
|
04-Feb-2011 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix spurious warning (from -cc1) about unused -fapple-kext on C inputs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
398c610b16728b4398214367dd0effd9d2e61340 |
|
04-Feb-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Add support for DISABLE_DEFAULT_STRICT_ALIASING, which does what one might expect. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
322c29fefe7fa33f03273136eb5f8b7f5b4df7c0 |
|
02-Feb-2011 |
Daniel Dunbar <daniel@zuster.org> |
clang: Add support for a CC_PRINT_HEADERS environment variable, which mirrors CC_PRINT_OPTIONS and can be used to get some out-of-band information on header usage from a build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8e50a96b387dca7525caa8a6add31420dd82a2cd |
|
02-Feb-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add NetBSD target support. Patch by Joerg Sonnenberger. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b2d11cc3abd5ddf421a9bd36c6ec558038748a83 |
|
02-Feb-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Turn on -momit-leaf-frame-pointer by default on all non-Darwin platforms. Fixes PR9121! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124718 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6f75550e40a9177db9979fc130ce3ece026b137d |
|
01-Feb-2011 |
Douglas Gregor <dgregor@apple.com> |
Basic support for -mms-bitfields, from Carl Norum! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
80f0ab78f60379589c815b41de5d149c9479ca98 |
|
30-Jan-2011 |
Roman Divacky <rdivacky@freebsd.org> |
Add hardcoded -L/usr/lib after all -L options to the FreeBSD linker invocation. This mimics what gcc does and fixes libtool check for libraries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bd5a94e263137dc3ce7c100485626bae025cf58e |
|
26-Jan-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[analyzer] Enable the self-init checker under command-line option '-analyzer-check-objc-self-init' which by default is enabled by the driver for '--analyze'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124266 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
657ca6683d754c903026221a3aa3aa9cedb7556f |
|
16-Jan-2011 |
Chris Lattner <sabre@nondot.org> |
improve compatibility with GCC: when generating the ".d" filename to use and the filename has multiple .'s in it, use the last. For example, "foo.bar.cpp" should produce "foo.bar.d" not "foo.d". Patch by Johan Boule in PR8391 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123576 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f0335171b4908939bac410f865fc09ceb06ac632 |
|
14-Jan-2011 |
Ted Kremenek <kremenek@apple.com> |
Driver: tweak handling of '--analyze' to invoke analyzer -cc1 options that are tailored to the input type. If the input type is "C++", we should only run the dead stores checker (for now). Similarly, checks specific to Objective-C should only run on Objective-C Code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
32bef4edba854303800b3b01cb49a282e5da4f69 |
|
10-Jan-2011 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Replace all uses of PathV1::exists with PathV2::fs::exists. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b466d01e464b21832c23eeed90112bc5c26c0236 |
|
07-Jan-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
Add all options needed to support -fapple-kext. wip. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
112c3307aaa9ae9ee6ff5c2b4f6a53b1ea3c6f19 |
|
04-Jan-2011 |
Fariborz Jahanian <fjahanian@apple.com> |
Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi. // rdar://8818375 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c32647d111e516593b9ba242cad7b8ff4016c155 |
|
23-Dec-2010 |
Ted Kremenek <kremenek@apple.com> |
Add -fobjc-default-synthesized-properties flag to allow us to explicitly control whether or not Objective-C properties are default synthesized. Currently this feature only works when using the -fobjc-non-fragile-abi2 flag (so there is no functionality change), but we can now turn off this feature without turning off all the features coupled with -fobjc-non-fragile-abi2. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
592f241d0abd000f404a12fba1474d4d963d7ff7 |
|
20-Dec-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix PR8639 by making the "argument unused during compilation" less agressive. Now we don't warn if an argument is not used because it is shadowed by a subsequent argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122281 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
472ccff00cdbcd095c3ba933b9e3f202719f118f |
|
18-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Replace all uses of PathV1::getLast with PathV2::filename. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9eb93b07ea913e7ad0bcd15bd3e3662e2760c323 |
|
08-Dec-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: M and MM should be grouped together, <rdar://problem/8744831>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
49c64fdcf354c7998b8b301402fb6140c24df36a |
|
01-Dec-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Handle -nostartfiles. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120528 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
03013fa9a0bf1ef4b907f5fec006c8f4000fdd21 |
|
29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Merge System into Support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a4c2475961184a4bad6f6f087eeb1038bb784cad |
|
21-Nov-2010 |
Anders Carlsson <andersca@mac.com> |
Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119915 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a30d6cdc3a32af8bd06d5a1a218a32840cd70a00 |
|
19-Nov-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Don't pass -demangle to an iOS linker, which may not understand it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d02bba8e2abceebd91c162ee4479623791f455b5 |
|
19-Nov-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Ignore -force_cpusubtype_ALL. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119803 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1380a147d4578b619c215b23aa79ce17036d3c46 |
|
18-Nov-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
-Rename -Wargument-larger-than -> -Wlarge-by-value-copy -Improve the diagnostic message -Add some comments Suggestions by Chris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119594 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3532fdd1db8ff6f353f2a5b215cebe3e0e2ff3c2 |
|
18-Nov-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce option -Wargument-larger-than[=N] which warns about function definitions if they take by-value or return by-value any POD that is larger than some threshold (default is 64 bytes). Implements rdar://8548050. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fdda17179047ff0b5e28cc777dc89ebc42f083cf |
|
17-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement -pie. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119577 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dbe80d9933e1fb0c26bd339e1f1f2f2d76dcac0a |
|
17-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't warn about clang -w -c foo.s Helps with the gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119574 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7f6458b7e265d1870f3bd5be2b49bc4d368446b3 |
|
17-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't warn about -w not being used in a link. Necessary to get sane results in the gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
db85e058ed244931c81cefecbebf1a4a3030ea2d |
|
17-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Silence warning for "clang -O2 -O0 -c foo.c -o foo.o. Fixes PR8607. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119498 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
26f14c309e8de2db8c144342808cca2e869c1777 |
|
15-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fixes PR8611. Silence warning about -g not being used during linking. I couldn't find any change in behavior in gcc liking when given -g. Please open another bug if I missed something. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119166 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5e3bc947e305b307c6bd8e5d49b5b06e2fe6bbf4 |
|
13-Nov-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Support -Oz as an alias for -Os. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119003 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
89414b384a0004c698244cc675f49d0669bb3463 |
|
12-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support for -nostdlib in the linux toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118878 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e0e6d3b5cf61dfefad3c0393f4786d2cf3d9c272 |
|
11-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support for -s, -pthread and -pthreads. Thanks to Hans Wennborg and Cosmin Truta for reporting it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
de17ba7af23bd3693add73af127600b568cb210b |
|
11-Nov-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Allow build system override of default non-fragile ABI version. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
65ba55da577b23b24513b815031fc870d1d27971 |
|
11-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add -rdynamic to freebsd and openbsd. Patch by Ruben. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9284d215022457ba867080a713f08f026d89ea17 |
|
09-Nov-2010 |
Bruno Cardoso Lopes <bruno.cardoso@gmail.com> |
Add support for soft/hard float options to the Sparc target git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dc1b76ddfc687c713a55cc9e3e054e9a0de1aa74 |
|
07-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support for -rdynamic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c1da981bba867681004004b2d54ec2fdf3c08913 |
|
07-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use ld directly on linux. Changes from the previous try: *) Try to detect as much as possible from the system itself, not the distro. This should make it easier to port to a new distro and more likely to work on a unknown one. *) The distro enum now doesn't include the arch. Just use the existing host detection support in LLVM. *) Correctly handle --sysroot. A small regression is that now clang will pass bitcode file to the linker. This is necessary for the gold plugin support to work. It might be better to detect this at configure/cmake time, but doing it in c++ first is a lot easier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
389db16c63eec6ecfa9b235155252d8da766e94e |
|
03-Nov-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Implement -working-directory. When -working-directory is passed in command line, file paths are resolved relative to the specified directory. This helps both when using libclang (where we can't require the user to actually change the working directory) and to help reproduce test cases when the reproduction work comes along. --FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains the working directory value if set). --FileSystemOptions are passed around to various interfaces that perform file operations. --Opening & reading the content of files should be done only through FileManager. This is useful in general since file operations will be abstracted in the future for the reproduction mechanism. FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same FileManager but with different FileSystemOptions. Addresses rdar://8583824. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
138e66ffa8008b95121580f5459af45487df9803 |
|
03-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Revert while I debug test failures :-( git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
29a88f441fb9d82cfa898774cf6711e54bcba2ff |
|
03-Nov-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Switch clang to run ld directly on linux. I tested this on all the linux distros listed by running gcc main.o -o main g++ main.o -o main gcc main.o -o main -static g++ main.o -o main -static gcc f.o -o f.so -shared g++ f.o -o f.so -shared and comparing the ld line with the one created by clang. I also added -m32/m64 in distros that support it. While I tested many distros, there will always be more. If you are hit by this it should be somewhat easy to add your distro. If you are in a hurry, do revert this, but please inform how to detect you distro and the ld command lines produced by the above gcc invocations. Most distros have some patches on gcc :-( git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
168943947a42d6819dce56b420dc5aef4d0831ce |
|
02-Nov-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Silently ignore -fasm-blocks for now instead of error'ing, this cause some unexpected fallout. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b14eed0ed44ed3af881219dab7dc6464cad5303b |
|
28-Oct-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/IA: Ignore -L for now, which users shouldn't be using for semantic effect. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dae4ac4fe56ec60fc93b3e3c9f51e79e682084b9 |
|
21-Oct-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Reorganize predefined macros for all Windows targets. This adds an option to set the _MSC_VER macro without recompiling. This is very useful when testing compatibility with the Windows SDK and c++stdlib headers. -fmsc-version=<version> (defaults to VS2003 (1300)) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
20249a1af2e462dcafdd6a350f1c7967b264ff25 |
|
21-Oct-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
feee58ce268765742e41c473c8648607fd4831a7 |
|
20-Oct-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Add support for the '--sysroot' flag, and an accompanying test of its interactions with -isysroot and other driver commands. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
25b26ebdebe46bb4576247e0c64d1c11410a8e9d |
|
19-Oct-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Reject -fasm-blocks except on X86 (where we just ignore it, since passing it is very prevalent in some circles). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116761 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fcec10bded7b9b9268af5232fa17617db0df68ed |
|
19-Oct-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/IA: Accept and ignore -force_cpusubtype_ALL, as in 'clang -c -Wa,-force_cpusubtype_ALL t.c'. - Tweaks -Wa, and -Xassembler handling to only accept an explicit short list of arguments and give an obvious unsupported error on others. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
270073c1e44d073e9732204fc099f280b368fab5 |
|
19-Oct-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Forward -ObjC when linking, which may be needed when using static libraries with Objective-C code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
06205ca78ca2fd4384b237f120ec66614df0d9fc |
|
16-Oct-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Error on -fno-for-scope, which we have no intention of supporting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
63d907bc55ccb6abfc57b409cab3cfa7c0d1f38a |
|
15-Oct-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert r116605, a lot more were committed by mistake. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
721f38c7f866259e1472af775239a83d8f06f6a8 |
|
15-Oct-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Add '-include-pch' option to the driver, so it can get passed to the cc1 driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116605 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4d5625e15bb215c2241c022df8dc7b04438970c6 |
|
15-Oct-2010 |
Dan Gohman <gohman@apple.com> |
Wire up the -fstrict-aliasing and -fno-strict-aliasing options to CodeGenOption flags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116530 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d3ab63e0f66429abf2a3e4cde889e420e41e8790 |
|
12-Oct-2010 |
Douglas Gregor <dgregor@apple.com> |
Eliminate -fdiagnostics-binary and all of the infrastructure for emitting diagnostics in a binary form to be consumed by libclang, since libclang no longer does any of its work out-of-process, making this code dead. Besides, this stuff never worked at 100% anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cd7a30b12c6780d790f4c7924aff05caee05670d |
|
10-Oct-2010 |
NAKAMURA Takumi <geek4civic@gmail.com> |
lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9a2b9d794bdf349b517ff799170f4409f45d147c |
|
08-Oct-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Implement -fshort-enums (rdar://8490496). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4a1cdb5803ea0ad49ccbefb7f9ae14df9d677173 |
|
06-Oct-2010 |
John McCall <rjmccall@apple.com> |
Teach the driver to pass -fexceptions in Objective-C inputs on ARM. I don't know when this stopped happening, but this seems to be the right place to do it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115730 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c69e1cf04323f2e786d40e8a5ba84e77ee1c6827 |
|
30-Sep-2010 |
Devang Patel <dpatel@apple.com> |
Introduce -flimit-debug-info. In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
990142a23e41392ef7c0f14db4c0fcac67311cdf |
|
30-Sep-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Driver: Ignore the found PCH file if its '-include' is not the first one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115158 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
48f9994bdd9f7f1853782109595b1f80f50afcfa |
|
25-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Linux: Translate rewritten lib options back to standard -l form when using generic GCC tools. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e94db4771856659c12e1f269141cbbc4e55b1c47 |
|
24-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add -fallow-unsupported which disables some of the eager error'ing we do to prevent users from trying unsupported stuff. Useful for testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114749 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e3365aa452673f7ea3244bb6638551f13ab7570d |
|
24-Sep-2010 |
Nick Lewycky <nicholas@mxc.ca> |
Fix header comment so we don't break emacs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f765d76407d82e629337bba4ca6c26bdfc8bc9a6 |
|
23-Sep-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
If -fcolor-diagnostics is explicitly passed to the driver respect that even if the driver is of the opinion that stderr can't handle them. (see http://llvm.org/PR8150) Patch by Frits van Bommel! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dea63134a51d463cf32f3eec3c359d9215359d69 |
|
20-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Objective-C: Retool Objective-C ABI flags to be more usable, and actually document behavior. Will wonders never cease. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7433fedce98a58341d0f30c2e12e8d53f3bba575 |
|
17-Sep-2010 |
Shantonu Sen <ssen@apple.com> |
Driver: implement driver automagic support for -lcc_kext Rewrite linker arguments to use libclang_rt.cc_kext.a instead of gcc-specific libcc_kext.a Resolves Radar 7808495 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7f18e67e1b577a50402e8b43508ab2311a5c45b5 |
|
17-Sep-2010 |
David Chisnall <csdavec@swan.ac.uk> |
Add a -ftrapv-handler= option which allows a handler to invoke instead of simply aborting when a signed operation overflows. This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
132e35d2f87895d20e7ea146c8c00404b80221a1 |
|
17-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix spelling of AddCXXStdlibLibArgs, which I copy-n-pasto'd. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114147 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e5a37f48388c7e4cc081f44d13a4910bfa56cd35 |
|
17-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add magic handling for "reserved library names", starting with -lstdc++. This is the best gross solution for a gross problem. This issue is that historically, GCC has add -L options to its internally library directories. This has allowed users and platforms to end up depending on the layout of GCC's internal library directories. We want to correct this mistake by eliminating that -L, but this means that existing libraries which are in the GCC lib dir won't be found. We are going to handle this by treating those -l names as "reserved", and requiring toolchains to know how to add the right full path to the reserved library. The immediately side effect of this is that users trying to use -L to find their own -lstdc++ will need to start using -nostdlib (which is a good idea anyway). Another side effect is that -stdlib=libc++ -lstdc++ will now do the "right" thing, for curious definitions of right. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2008feead855f08500fb01ff43ef5eebee05d1e5 |
|
17-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Factor out AddLinkerInputs() function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f81d8aa26ad4de6568772c4768b272af96c18be |
|
15-Sep-2010 |
Fariborz Jahanian <fjahanian@apple.com> |
Make the new -fobjc-nonfragile-abi2 the default abi for clang's objective-c compilations. (radar 8353555). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
641b98b7b52e0067beaf3978f2a8721e5d16c111 |
|
15-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Factor out some code for handling the C++ standard library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1a2cd4fd5d384faf171a39dea7136ca4672ac35e |
|
15-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113889 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d0a57d53223eccb482757c5aab436e8bd5a9c794 |
|
11-Sep-2010 |
Anton Korobeynikov <asl@math.spbu.ru> |
Disable cxa_atexit by default on MingW. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113683 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
748de8eda222f087434d8bd703176b316a061341 |
|
09-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Make the compilation object available in AddLinkArgs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fee1add2ee677144cda2c809f9b3485b8e58c01b |
|
09-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Mark function as nounwind when -mkernel or -fapple-kext is present. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113541 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9ced7049caf7c9543badb302f3bb43a6bc264705 |
|
07-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Catch another case where ld ends up using ld_classic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bcf1da8ff6ab007a23a8d1be8e950d92cee4241e |
|
07-Sep-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Don't pass -demangle to the linker when we know it is going to use ld_classic. This is a temporary workaround, the linkr itself should handle this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
79e9e9dd533de9609ef141449bf50e705fa68fd0 |
|
06-Sep-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Make "-ccc-cxx" option work on Linux. Patch by nobled. I also took the opportunity to make the field private since now it is only ready from the outside. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
400b607546a8dbfcee3b690f3d0a2fee0ea6480b |
|
03-Sep-2010 |
Dawn Perchik <dawn@burble.org> |
Add support for Borland extensions via option -fborland-extensions (original patch r112791 was reverted due to a bug). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112915 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d0b4e7c8723c031cd8d743b2ff63943a3d0563ff |
|
02-Sep-2010 |
Dawn Perchik <dawn@burble.org> |
Reverting rev 112791 - apparently -fborland-extensions is on all the time?! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
621a2f36af707747d70b8103bda6f65237fce899 |
|
02-Sep-2010 |
Dawn Perchik <dawn@burble.org> |
Add support for Borland extensions via option -fborland-extensions git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7c16d903f11814e2d6780e2a2e189b7a7afc4ed |
|
25-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Frontend: Add basic -H support. - I didn't implement the GCC "multiple include guard" detection parts, because it doesn't seem useful or obvious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111983 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ca0e0545c216afaacba6da6c82a270dc2efc4e3f |
|
24-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Clang: Forward -Wa, and -Xassembler to clang -cc1 when using the integrated assembler. For now this mostly just means that we will error out if someone tries to use this mechanism to send an argument to the assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
00577ada44c889fbe311d61c51a8da89e65c7c9a |
|
24-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Move Clang "triple" computation routines to method on the ToolChain. This fixes a potenial bad cast when running Clang on PPC code, since the tool chain in effect is not a subclass of the Darwin one, but we were treating it like it was. - This introduces some gross code duplication, but the right fix for it is to just move the Driver to start depending on the targets in libBasic, so I am not planning on fixing it immediately. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff58e3610f4e12094def69eb2d6dcb4330378d8f |
|
21-Aug-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Visual Studio tools used on win32 hosts when targeting win32. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4786c15f4977c7cee98fde3ebdee213dba23848b |
|
19-Aug-2010 |
Douglas Gregor <dgregor@apple.com> |
Add machine-parseable Fix-It output as part of diagnostics, under the flag -fdiagnostics-parseable-fixits, from Eelis van der Weegen! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c736377543edcfbb00a4150fae79b4d9d9f66849 |
|
16-Aug-2010 |
David Chisnall <csdavec@swan.ac.uk> |
Pass some things to the linker that gcc passes. -r is the only one of these that I'm sure about, but the others seem to be listed on FreeBSD by gcc -dumpspecs, so I hope they're right. Apparently -r is also not passed on GNU/Linux (and should be), but I can't see where the toolchain definition for this platform live. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e5c35377020d6c38d16434c9f373a5fa9bb4f2eb |
|
12-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Switch on PCH for C++. C++ fans all over the world rejoice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b18dc5b8376f42f7b4802bf1279e95eeb813fa06 |
|
12-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Pass -demangle when linking, if the linker supports it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c176bc6be6f1407e7c6bd062f05a8636ea9a08e3 |
|
12-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add -mlinker-version=, which forwards to -target-linker-version. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
79a79f5d323155ac99155c621a360ef8a68055a8 |
|
10-Aug-2010 |
Ted Kremenek <kremenek@apple.com> |
Turn on idempotent operations checker when using --analyze. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ba30bbe4e36a30a274da809a11a42f9cdc168e92 |
|
10-Aug-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Run the assembler instead of gcc on Linux. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f84d409903dd4107c8cef5a08fcfce6e5c21d4de |
|
08-Aug-2010 |
Eric Christopher <echristo@apple.com> |
Make -funroll-loops turn on loop unrolling in the optimizer instead of just ignoring it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110525 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2dffe2d9d631fefd79d4999f6ffe7ac0d70882b1 |
|
03-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Don't forward any -g options to GCC, when using it to drive the assembler. - Fixes PR6218, hopefully. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2fe238ed293bd4bc27af9beb9fa151fad2146fa8 |
|
02-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add Compilation::addCommand and switch tools to using it, now that we don't have to deal with nested jobs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110015 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7c1e46533cae07216e2a67d5636a5afb44253155 |
|
02-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Eliminate special InputInfo kind for pipes, it is now unused. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
95c0457054518102af6250e718a13a5b2ee5dbea |
|
02-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/OpenBSD: Update toolchain for compiler changes / C++; patch by Jonathan Gray. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f5438e3462f37d7c58f847b594b4b3ab84085d67 |
|
22-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Set -force_cpusubtype_ALL only by default on x86. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
405861d4ae824795f506d03cd7578f011cbf5b87 |
|
20-Jul-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add -lstdc++ to DragonFly tools. Patch by Sascha Wildner. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5314e448631f166c89e908cc1ab45dc7eda916ba |
|
19-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Make -fnext-runtime the default when rewriting Objective-C. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a001c1ce5fcb669624a5b8e50d0a629d673da901 |
|
18-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix a possible use after free. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b9a822639c570b1853c75c235e9d6bad485f9e01 |
|
14-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: When re'execing clang, use path to the main executable instead of looking up Clang in the normal search paths (which may end up finding the wrong clang). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4a7e88978cf646ad10d654020cb00b3877069210 |
|
14-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Remove some unused arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
47e879dfa735f81472a51b1bd69cc4eb9159db39 |
|
14-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Pass -pie/-no_pie to the linker when -fpie/-fno-pie and friends are explicitly given. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a0068fc64351db9c47916566e3b85ab733cd8d6d |
|
09-Jul-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce -f{no-}spell-checking options to enable/disable spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
38e317d6dce161b249508686cc67eb7176958762 |
|
07-Jul-2010 |
Chris Lattner <sabre@nondot.org> |
add driver support for minix, patch by Kees van Reeuwijk from PR7583 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1ad6648cce57bd187f1853f58fef26cd9bf4934f |
|
01-Jul-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/IRgen: Add support for -momit-leaf-frame-pointer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bcd6df662471e0ac2d3d85fdba09b1295c2fc468 |
|
28-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Set the default arch based on the triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7e9cebfe1246bb9051a364474b6570eb40dbac4b |
|
27-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use softfp for linux gnueabi, keep the warning for everything else. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a4d71455f0d418e16cc0c5c5aa55a3bad3494aee |
|
26-Jun-2010 |
Chris Lattner <sabre@nondot.org> |
Implement support for -fwrapv, rdar://7221421 As part of this, pull together trapv handling into the same enum. This also add support for NSW multiplies. This also makes PCH disagreement on overflow behavior silent, since it really doesn't matter except for warnings and codegen (no macros get defined etc). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
be6d8e3bc409fe70964e5fdb675571fde37a59d0 |
|
22-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Remove some dead code left around after a refactoring. Found by the Clang static analyzer! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106568 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7255a2d997b15beae82e627052fdb1b2474495c2 |
|
22-Jun-2010 |
Chris Lattner <sabre@nondot.org> |
implement support for -finstrument-functions, patch by Nelson Elhage! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1ed1a594e9befc91ebf00d81b41a2fdfab862657 |
|
16-Jun-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Change the test for which ABI/CC to use on ARM to be base on the environment (the last argument of the triple). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7cf84d66965a7706004d8590b5af5fe54b85f525 |
|
15-Jun-2010 |
Douglas Gregor <dgregor@apple.com> |
Implement -fvisibility-inlines-hidden. <rdar://problem/7819834> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106003 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0e10031ba5d0f9b3e5bc5570f39382d288779ab8 |
|
14-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Eliminate uses of Arg::getIndex. Also, fix a memory leak. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105963 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7e4953e5c60409007545288f14b430bd23d68570 |
|
12-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix arg_iterator typing to reflect that it is really an iterator over Arg*s. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5edbdcc62098e305cd55654814dcf783a3f3c477 |
|
11-Jun-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Add an option -fshow-overloads=best|all to limit the number of overload candidates printed. We default to 'all'. At the moment, 'best' prints only the first 4 overloads, but we'll improve that over time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0ea22fdfda0558393950cef5db50d050e3eb1e60 |
|
08-Jun-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Implement -fcaret-diagnostics to undo -fno-caret-diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6c6424bc0d3b5f080a97b5f6ef4a8d70c38e38f5 |
|
08-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Support invoking Clang on .ll or .bc inputs. - We actually pretend that we have two separate types for LLVM assembly/bitcode because we need to use the standard suffixes with LTO ('clang -O4 -c t.c' should generate 't.o'). It is now possible to do something like: $ clang -emit-llvm -S t.c -o t.ll ... assorted other compile flags ... $ clang -c t.ll -o t.o ... assorted other compile flags ... and expect that the output will be almost* identical to: $ clang -c t.c -o t.o ... assorted other compile flags ... because all the target settings (default CPU, target features, etc.) will all be initialized properly by the driver/frontend. *: This isn't perfect yet, because in practice we will end up running the optimization passes twice. It's possible to get something equivalent out with a well placed -mllvm -disable-llvm-optzns, but I'm still thinking about the cleanest way to solve this problem more generally. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6e90047520c8b4d6daa110bdbdaf15041016bd7c |
|
04-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Change -dwarf-debug-flags option to pass the original command line arguments after translation, instead of the -cc1 level arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105476 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
be1cc3eec682ca73361edb4109a7969452d3dbeb |
|
04-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Model dsymutil properly, as a separate action/tool kind which is added as the last output step, instead of just hacking it into the link step. - Among other things, this fixes dSYM generation when using multiple -arch options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105475 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6e0f25483b1a801cd1155ea89c2b725feab16332 |
|
04-Jun-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add an explicit dsymutil action. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
469d40ef5a95d0eaddfd541616ad4cd26668e856 |
|
28-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Spell -relax-all correctly when calling the cc1as tool. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104955 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
473916c038f75fa3b0c51a0bc7afc5b082e5c22f |
|
27-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Update -O -> -O2 replacement for addition of -O0 option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9929800b8dfced61e9c97dc8d6e71e144ebf8acc |
|
27-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add support for -m[no-]relax-all, and make it the default at -O0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c304ba341a7daa88da42faf8f86310b764dd7b6a |
|
22-May-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Daniel re-educated me about what Alias does and does not do. Turn that off for '-fasm' and explicitly map from that flag to -fgnu-keywords in the driver. Turn off the driver in the lexer test for this madness and add a test to the driver that the translation actually works. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
20a9aa50f9a7d4b03f97bc67e96da1d605c309a2 |
|
20-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add a tool definition for the Clang integrated assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104280 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c3e31d66f1a6f396fb08b0cabfc47c34705c01b1 |
|
20-May-2010 |
Ted Kremenek <kremenek@apple.com> |
Expose -fobjc-nonfragile-abi2 as a top-level clang driver option. Fixes <rdar://problem/8007063>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104205 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1b71848c5238747ede9650b7907172f8a7e088a5 |
|
15-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Make -fverbose-asm the default for platforms where the integrated assembler defaults to on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103825 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b30575c22f249c0697df0cd2aa872d14d4fa9c57 |
|
12-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/i386: Don't allow compiling C++ with -fapple-kext, we don't support the necessary ABI yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6b3d5a65cb486f46604d12a16831e8a228ee610f |
|
12-May-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9cf933a67e54bea5475c5027fee2c1cf7365ee05 |
|
06-May-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Handle -ffunction-sections and -fdata-sections in the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c40f73c6e715044d327409564bf3656254101d46 |
|
06-May-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Remove a dependency on Frontend headers in the Driver library. Also saves building and passing arguments to cc1 layer when setting values to their defaults. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103162 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6fbe8398ba1680ffc5daa7395850ff8765b7905b |
|
04-May-2010 |
Chris Lattner <sabre@nondot.org> |
add a new -fdiagnostics-show-category=none/id/name option, giving control over choice of: t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat] t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,1] t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,Format String] dox to come. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6c1cb9916e9988dcdd65b9266dbe24afd173427a |
|
04-May-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce a limit on the depth of the macro instantiation backtrace printed in a diagnostic, similar to the limit we already have on the depth of the template instantiation backtrace. The macro instantiation backtrace is limited to 10 "instantiated from:" diagnostics; when it's longer than that, we'll show the first half, then say how many were suppressed, then show the second half. The limit can be changed with -fmacro-instantiation-limit=N, and turned off with N=0. This eliminates a lot of note spew with libraries making use of the Boost.Preprocess library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
647aa46a22cda2345dec566c06962da9c54ad02f |
|
30-Apr-2010 |
Ted Kremenek <kremenek@apple.com> |
Do not enable '-analyze-check-security-syntactic' by default when using '--analyze'. There are several known issues to address for it should be turned on by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5e2a8ac6599f0c68b14afb2f328ac98b264f770a |
|
29-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add support for -fobjc-abi-version=. - <rdar://problem/7919678> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1744a3504af13343f4bc0e566f6d7349fc6e3f04 |
|
27-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102432 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f35f14d474632142280ec1526d16e87706ce6625 |
|
27-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Add Driver support for -fno-constant-cfstrings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102431 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f643b9b338b797a824447207d7eab5f1187f4f34 |
|
24-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
NeXT: Clean up dispatch method policy selection. - Replace -cc1 level -fobjc-legacy-dispatch with -fobjc-dispatch-method={legacy,non-legacy,mixed}. - Lift "mixed" vs "non-mixed" policy choice up to driver level, instead of being buried in CGObjCMac.cpp. - No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
40788d909ad52fc732fe0769d0ef22e5edad5e47 |
|
24-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
575cf3791216c33770ba950430493cdd43099f8f |
|
20-Apr-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce a limit on the depth of the template instantiation backtrace we will print with each error that occurs during template instantiation. When the backtrace is longer than that, we will print N/2 of the innermost backtrace entries and N/2 of the outermost backtrace entries, then skip the middle entries with a note such as: note: suppressed 2 template instantiation contexts; use -ftemplate-backtrace-limit=N to change the number of template instantiation entries shown This should eliminate some excessively long backtraces that aren't providing any value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
eb5d7b752651283de5abfcc2f91df7227582a08d |
|
17-Apr-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Add support for '-fgnu-keywords' and '-fasm' to Clang's driver. They are not implemented precisely the same as GCC, but the distinction GCC makes isn't useful to represent. This allows parsing code which uses GCC-specific keywords ('asm', etc.) without parsing in a fully GNU mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101667 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fb36d21960a3bd422665a961eac6ca269cd6445b |
|
17-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add missing claim() for -mllvm options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4046866e20fe3279b0daa2f48d9e83263dfdbfe |
|
15-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Tidy up comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3f87fb08dd502309960646db01099fb4c1be9a7c |
|
15-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Frontend: Add support for -mllvm, which forwards options to the LLVM option parser. - Note that this is a behavior change, previously -mllvm at the driver level forwarded to clang -cc1. The driver does a little magic to make sure that '-mllvm -disable-llvm-optzns' works correctly, but other users will need to be updated to use -Xclang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
86ed3a326342fa2a8c9d9b5d1d7280c9bad2b007 |
|
11-Apr-2010 |
Chris Lattner <sabre@nondot.org> |
add haiku support, patch by Paul Davey! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
43a9b3263cb0bcb050cc75c15b3e6a8951e6b97a |
|
10-Apr-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Ignore -fobjc-gc and -fobjc-gc-only for platforms which don't support them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100930 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
32579cf507d088e776b67327c5d6bc46e1f217cc |
|
09-Apr-2010 |
John McCall <rjmccall@apple.com> |
Turn access control on by default in the driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7002f4c03c2d0544f4e8bea8d3a5636519081e35 |
|
09-Apr-2010 |
John McCall <rjmccall@apple.com> |
Turn access control on by default in -cc1. Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
71c972acd4a2cb5e369e35471dbb719185913cdc |
|
08-Apr-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Remove caseless switch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0f0c963f9b7ac6f0176c34d405d48fcb005dfab6 |
|
07-Apr-2010 |
Chris Lattner <sabre@nondot.org> |
add a new driver-level -ferror-limit=412 option, which causes clang to stop emitting diagnostics after it has produced that many errors. Give this a default value of 20 which produces plenty of errors for people to fix before recompiling but not so many that their entire console scrolls away when the compiler gets confused. The experience looks like this: $ clang foo.c <tons of crap> foo.c:102:3: error: unknown type name 'somethingbad' somethingbad x; ^ fatal error: too many errors emitted, stopping now 36 warnings and 20 errors generated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3edbeb78fe5ea7fffea7a94575478cde19e830e0 |
|
29-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
add support for -MQ flag to quote targets in dependency file, PR6661, patch by Ori Avtalion! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4c2bcad7b843c10fd4a2ffd43da40bfefb4dc8ba |
|
24-Mar-2010 |
Douglas Gregor <dgregor@apple.com> |
Implement support for -nostdc++. Fixes PR6446. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99417 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0647a7b9ad844565b8a4b5e1a5de882dd64efabf |
|
22-Mar-2010 |
Ted Kremenek <kremenek@apple.com> |
Disable the emission of frontend warnings (not errors) under --analyze. Fixes <rdar://problem/7405601>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99222 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0a80ba74ffa3d3df55abfbc4474d7470c7c923e3 |
|
20-Mar-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix a number of -fapple-kext issues: - Disable RTTI. - Disable use of __cxa_atexit. - Disable unwind tables. - Enable freestanding mode. Also, honor -fhosted correctly. <rdar://problem/7515383> C++ support: -fapple-kext not honored git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
efb0fa9e11f75af51744a6159530ef7cc8efa24a |
|
20-Mar-2010 |
Daniel Dunbar <daniel@zuster.org> |
C++: Add support for -fno-use-cxa-atexit. - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99039 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
03d87ee556f9e11ab83f6d2f80c9ee92e3667301 |
|
20-Mar-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix possible crash when targetting an unknown (unsupported) Darwin platform, e.g. ppc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99016 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3ddd6e026a173e9519e84e27f8d6aed5473b8b4e |
|
17-Mar-2010 |
John McCall <rjmccall@apple.com> |
Make -faccess-control and -fno-access-control driver options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98703 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8c6fa84b2e4a30317b7b214a7657cb593d67773b |
|
16-Mar-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix forwarding of -fno-lax-vector-conversions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98639 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
18f36d9eac8b425e8cfed389bbbf02c030f26be7 |
|
07-Mar-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't produce debug info when given -g. Fixes PR6529. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97897 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ed734737d5af31906e30e537d4a41c760ddcfc59 |
|
02-Mar-2010 |
Eric Christopher <echristo@apple.com> |
Add in some more MIPS command line options. Patch by Oleksandr Tymoshenko! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97544 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2a7eb28397148079cbc8e54e8a3871ef01c4f4bc |
|
23-Feb-2010 |
Blaine Garst <blaine@apple.com> |
Unconditionally support block introspection data in a new field at the end of the block descriptor field. This field is the ObjC style @encode signature of the implementation function, and was to this point conditionally provided in the block literal data structure. That provisional support is removed. Additionally, eliminate unused enumerations for the block literal flags field. The first shipping ABI unconditionally set (1<<29) but this bit is unused by the runtime, so the second ABI will unconditionally have (1<<30) set so that the runtime can in fact distinguish whether the additional data is present or not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96989 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d0c2ec44e093011256b6a0f57d455f36dffdea70 |
|
19-Feb-2010 |
John McCall <rjmccall@apple.com> |
Enable -mconstructor-aliases by default on non-darwin platforms. The linker bug holding this back is Darwin-specific. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2002263e10aa369c89008d37cada2908203fd822 |
|
17-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Tweak freebsd::Link, by Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b689afb75049012a431d483432114ad5e75d4a92 |
|
13-Feb-2010 |
John McCall <rjmccall@apple.com> |
Raise the responsibility for passing -disable-llvm-verifier in NDEBUG builds to the driver, and support it in CodeGenOptsToArgs(). Note that this changes the default behavior of clang -cc1 to always run the verifier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ae24a88655c461e751d0984cc21dda6e17882356 |
|
11-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
64952508c2b0c8bffb45c8b410f0af3d2457f59b |
|
11-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add -rewrite-objc, which is an interface to clang -cc1 -rewrite-objc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b2987d159a88ab0ee2e40c884eb4d77b42ab89b6 |
|
10-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a508b7de6c5246ab04ed69d0ab4e9977ec1fb4d4 |
|
07-Feb-2010 |
Anders Carlsson <andersca@mac.com> |
Add support for threadsafe statics, and make them the default (matching gcc). Daniel, I'd appreciate a review of the driver/cc1 parts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
565e465c6d0093f1bf8414b2cabdc842022385a9 |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7909fc8833e734aac521d7d6945bd823d75150ac |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95347 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fa15be4cf95b7ed2d1df583497b16a6f897cf789 |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ade536f6815bf6ff128333520232c3b0e701146 |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cd9902bfb79c5c67559360514951714bdafac36e |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fb3f893bc58071e548c97a3d667c8ab9b0c38cfb |
|
05-Feb-2010 |
Ted Kremenek <kremenek@apple.com> |
Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95342 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8767cbc475ed96397b6f08617814eeb9cab121bd |
|
03-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add -[no-]integrated-as for clang. - Requires backend support, which only exists for i386--darwin currently. No 'as' required: -- ddunbar@ozzy:tmp$ cat t.c int main() { return 42; } ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c ddunbar@ozzy:tmp$ ./a.out; echo $? 42 ddunbar@ozzy:tmp$ -- The random extra whitespace is how you know its working! :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95194 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
609508ce95732e7e7010f79c5207613eced7c9cb |
|
01-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Darwin uses -fobjc-legacy-dispatch on ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
984eb8611d9ee46fc6351dee43609f2deed99f3c |
|
01-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Frontend: Add support for -fobjc-legacy-dispatch, not yet used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
74f20838caa266f829bf5ae43997f8ebfca54a9a |
|
31-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f22d1fd96d6056a2f271b0f7353b31f47547127b |
|
30-Jan-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Use StringRef instead of returning a temporary std::string. This fixes a really nasty bug in Darwin::getDarwinArchName where we were going StringRef -> temporary std::string -> StringRef (and return the dead StringRef). The StringRefs from Triple live as long as the Triple itself, that should be long enough. Hopefully 2 of 4 MSVC buildbot failures are gone now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4a5290e773e70ec2c3b4353a3a4aa7d1a3e3cd66 |
|
29-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Don't honor -std-default for C++, this makes it hard to run the gdb test suite with clang++ enabled. The right fix here is PR6175, although we would still have to find a different work around for the gdb test suite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d93256e55673a17d18543397ec462416acb13792 |
|
28-Jan-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce serialization and deserialization of diagnostic information so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile(). The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ce3fdf233353b10f20d74dceda3d77a82285de17 |
|
27-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Simplify target version checks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cacb0f007001f7463d44ebd5dde7bfaecf876a71 |
|
27-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Fix a few link arguments when targetting different iPhoneOS versions to match gcc (which is matching linker changes). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
408fceda7a518ac25975fb6299c856bfaa753939 |
|
27-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Switch clang -triple synthesis to use computed target information. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94639 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
251ca6c9fb2bb398d9bf9fe7399c27bed7074b5c |
|
27-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Switch to using isTargetIPhoneOS where appropriate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
314cba02728c451c783b38bf6c00f220afb193c8 |
|
26-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
21ae3196c9677a79523d294f9a62a4788ba40694 |
|
26-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
82b51cce8cea6b6bb6175c406c2ab425c91d9dc8 |
|
25-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bc file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8917dd4457affb8750c81f08cbc21902a36cff26 |
|
22-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded, not always added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
eeff406730f50afd973f005a8d501a19af4785e5 |
|
22-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" arch name being used in an driver invocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a6d38494d18e260958e73bfe5e2b3f1dc4160459 |
|
22-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going to diverge from gcc anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
225c41706dc0f3682236e351820d339e14390e00 |
|
20-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Lift clang resource directory computation to the Driver object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93971 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
52d8f5bd9a7be2e0996d12bd548d302a15553505 |
|
10-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
Darwin/ld: Don't pass '-weak_reference_mismatches non-weak' when -weak_reference_mismatches is not present, it is the default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
124fca533d9fef2e3f6359283909bd342b5f5f26 |
|
09-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
implement -ftabstop=width, patch by Christian Adåker git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93078 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c31176d5ebbcd407aa512bbd5f717e35da629e7d |
|
08-Jan-2010 |
Dan Gohman <gohman@apple.com> |
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
/external/clang/lib/Driver/Tools.cpp
|
1bda434673d3c51a2ba6b412f100ccfcf3e7083f |
|
23-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Drop ToolChain::getHost() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91960 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a91320b8af7143f7af4c0665ffa62a3b244c0bd9 |
|
22-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly". - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ee788e70fcd0adf76103b17c78ac658d4ea30c9b |
|
21-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add ToolChain::getDriver() and use it instead of going through the HostInfo object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
97f52ac45369f6925b548404e61d511034c874ec |
|
19-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
ARM: Use front-end specific target features "soft-float" and "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
38b48afd338d494099697d2611e1f45e558e469e |
|
18-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
f2d8b9f967a1ab53ee9fdbcc3ac0a4ee0a83a26e |
|
18-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
8663b180085e9bc7a0a87c80cc3f722efef99e79 |
|
16-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix -fdollars-in-identifiers Clang translation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91562 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fc2844846e91398205fddc71196fe9dda04e105f |
|
16-Dec-2009 |
Nuno Lopes <nunoplopes@sapo.pt> |
implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91543 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5f12232ef39e3d6c36d6600a73ebbe3c4a79f514 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Pass -resource-dir to clang -cc1, since the driver presumably already found itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9c276ae0f24d4cee8f7954069d4b8eae45d0447d |
|
12-Dec-2009 |
Mike Stump <mrs@apple.com> |
Implement runtime checks for undefined behavior. WIP. This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6feaf57b46f0856127c84b03f3aee5fb51d0262b |
|
12-Dec-2009 |
Ted Kremenek <kremenek@apple.com> |
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
/external/clang/lib/Driver/Tools.cpp
|
8ff5b28d6efcffe2251e77634c7edf83a4763344 |
|
12-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
87667aafe68c366be57f5afb60428237593da0ed |
|
08-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
b40d06dec23b53bbc1157a9adae7f887be31aa3b |
|
07-Dec-2009 |
Ted Kremenek <kremenek@apple.com> |
Enable '-analyzer-opt-analyze-nested-blocks' by default for testing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7ca7987669fcd14d91b4227a9ddcf7fdd8b1f8c2 |
|
07-Dec-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden and claim it in Driver.cpp instead of Tools.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0f4c59c3beae302b5a3ecea13f2e257bdaad3188 |
|
04-Dec-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add gcc's -no-canonical-prefixes option to clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90577 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ba8d86172c8d9e2476c6fd2415731639223174c5 |
|
03-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
daab7b1016f0a82fefa4f7be6e63c57c06b19ffc |
|
02-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add Command::Creator member variable, which tracks the tool that was used to create a particular command. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90287 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3b315264d1a6fa303e20fe0caec306ccafc090de |
|
30-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too many) places to use this instead of using the backend -soft-float and -float-abi= options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a28690e5b0e423a6287ebe3a5565fd1896d7ebff |
|
30-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Always pass -fmessage-length using separate arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90121 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f219e7c1529fac29e34483667f740b452e5ef9cc |
|
29-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
7674352cf3e8f699914a2f739f1ae8c8c3480813 |
|
29-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level using separate args. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cdd9686b890ebdc10039ae256ef4c9dfb5ebacb7 |
|
25-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
What the FIXMEs want, the FIXMEs shall have. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89861 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6d2eb4d07d40795131f28d719ef9146a2be500f6 |
|
25-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Don't pass -fexceptions=0 (it is the default). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e6c9ae147835fb450a90800bd378420c0e5ffb35 |
|
21-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix refacto, gcc's cc1 needs to see --output-pch=, which is not just an alias for -output-pch=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89534 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a31100e62f83933432df9092a04e48f9e5561a14 |
|
20-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89498 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
66861e09d590994a8b941eaa328e4d8f33adec9e |
|
20-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
53e8484581ca358c3a2ccd8ea39c136c6e85d606 |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... variants instead of using llvm::cl::init(true) arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
265e9ef9f3ef30a97790e6e7bbc3c17d97981ca7 |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: ArgList doesn't depend on Options.h anymore. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e4bdae78c69d2a09ee96619cc5ccf81441674412 |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead of taking a Claim argument. - Most driver code always claims, and bool arguments don't play nice with the overloads. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89308 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b827a0541b5fd095fcdb7ad0c3df93ca158c619a |
|
19-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Use Option::matches instead of direct ID comparison. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
69203e108b097695c421561c8f1b45b498f5e5d4 |
|
18-Nov-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
Fix passing stdc++ correctly in the FreeBSD toolchain support, Credit to Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89205 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5e530af5d51572a0ed5dbe50da54bd333840c63d |
|
17-Nov-2009 |
David Chisnall <csdavec@swan.ac.uk> |
Added block type introspection support. As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9e5cc6b703b2d0013f13800c2ffbeb3cf85fcfad |
|
17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
c5a97ec19408c3dca4b6a6385f11d8c783b94d0b |
|
17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move -fnext-runtime defaulting to driver (and change clang-cc default to -fnext-runtime), instead of using getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0be42c44f0199c5023b542d6a6d2e66eb594f27d |
|
17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move -fms-extensions defaulting to driver, instead of using getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1f95e6567faab67f4363d650f73121359c4bdbab |
|
17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move char-is-signed defaulting to driver, instead of using getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f86feddbd5b13d2c144132e35d608fa630784dbb |
|
14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
76e80c0e960ae7873c08d1d9e11a9b5d3af0042f |
|
08-Nov-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a6fda124bf380479529d6a80b84b62cacd3cb707 |
|
05-Nov-2009 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Adding -fshort-wchar option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
838be483dcf10ea3f2acd85f2cd65adc310011f9 |
|
04-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move -fcolor-diagnostics logic to driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55efe142a84b2aab6d0186c20a311c347a65f794 |
|
04-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move logic for selection -fmessage-length= to driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
294691eb1caf551083acd7b08630ef21c3fd760d |
|
04-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix indentation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86011 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
59876c2713683d1538ca45bb14c2f415862fb716 |
|
04-Nov-2009 |
Tanya Lattner <tonic@nondot.org> |
Merge constant array and structures. This will create a global variables for arrays and structs that are constant and their initializer is constant. It is on by default but can be disable with the flag -fno-merge-all-constants. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e6113de52df132b89c3a5a6141f17d37e83322ae |
|
03-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
Implement support for the -undef command line option, patch by Roman Divacky! PR5363 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
4d63f8bc2686d5d7580324407854f2ca7c128832 |
|
31-Oct-2009 |
Mike Stump <mrs@apple.com> |
Fix -pthread on dragonfly. Patch by Sascha Wildner. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
dd4fe00f03d8749b283948ea86aa1e4a53ed21ab |
|
30-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
ee848a73e5f8ffe7511af8652ba811c020d1c7a0 |
|
29-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove some obsolete or unnecessary FIXMEs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85475 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6e8371eb97a08f724be22ae6042d1e9eacbe4c48 |
|
29-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
PR5328: Allow duplicatic -pedantic (and -pedantic-errors) options. - clang-cc doesn't care about their relative order with other -W options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7fb31f4751c9c5ac3d9f93c19ec05a74dd9546f |
|
29-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
Kill off MakeFormattedString helper function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
607d7f6d8f21066cc48bbe2c51e6ca412a00943f |
|
29-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
Reject -I- in driver instead of clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55d3f7ae512875a1d6402943c3a619633feb2a18 |
|
29-Oct-2009 |
Douglas Gregor <dgregor@apple.com> |
[llvm up] Switch a few ugly switch-on-string-literal constructs to use the new llvm::StringSwitch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e7e18200e614a5e619602a088544c85ac8305a1f |
|
28-Oct-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
Fix for PR4887, Credit to Jonathan Gray. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8d737cc78cb28f39179d6c7ca00eb5d3cf563129 |
|
26-Oct-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Rename -nostdclanginc to -nobuiltininc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85116 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff430e6d68d1bea07046adafa28a52b314eeaa88 |
|
19-Oct-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
AuroraUX toolchain should call GNU assembler not the Solaris assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3cecc19f606ba1000da885b8ff4c089abad224dd |
|
16-Oct-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
dynamic linker arg is incorrectly invoking gnu ld arg syntax instead of svr4 ld syntax in AuroraUX toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84266 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
528365d3189d27f3a90a4012baaa8b2814e0a231 |
|
16-Oct-2009 |
Nuno Lopes <nunoplopes@sapo.pt> |
fix -ansi in c++: it means -std=c++98 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0ebd9321ba380471010341f24c874f46f56e7581 |
|
15-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
7adf94906e23eae295a006659c55eab9ffcf8b37 |
|
15-Oct-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
AuroraUX toolchain fixes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84176 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c37691068db5ceb19c014ddd3e02afa9875f8181 |
|
13-Oct-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
-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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6961fdd661f75b8452f526143b9f60b54e175c9d |
|
06-Oct-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add the -nostdclanginc option to clang (the driver). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
85caf03ee49c4de87ee9624a9b725ef5d20ee624 |
|
01-Oct-2009 |
Fariborz Jahanian <fjahanian@apple.com> |
Set __EXCEPTIONS by checking on darwin's triple. Patch by Rafael Espindola. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f759df06d997050559fd925758bcd2cdef24db05 |
|
01-Oct-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Move the "needs exception support" logic to clang. This also fixes -fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b8bb3e797c5687715c6d9d960ee573e4d0e62230 |
|
25-Sep-2009 |
Ted Kremenek <kremenek@apple.com> |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d4612b829500cbe04a2eafca74afac703e34934 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6cd4154b9088fa18ae05d11c0f3140fafd76c734 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Lift AddLinkRuntimeLibArgs into Darwin tool chain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
608d04cb7bee2db28c8689f6626bf9e0b114c473 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move isMacosxVersionLT helpers to Darwin tool chain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
48d5aae4387f07aef99dbe03f4047d709e9f4d35 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Lift getMacosxVersionMin out into Darwin ToolChain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82210 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6b200b2b698b6ac9e310f2225c69c85d28ae4fb0 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Lift AddLinkerSearchPaths() into Darwin tool chain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ae54af2fdcf2262e778f551941541913828fde49 |
|
18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename a variable to match its semantics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82208 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
20f0eacf1682e4594da9d318b5b13ed4f6d6e7e5 |
|
17-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Change -O to mean -O2, -O1 is meaningless. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e3b8d07e02861d245612b02b5f5a2c1f34b2a394 |
|
17-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
We don't need a -compile-ast clang-cc action, we can just use -S. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82105 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6bea73b3305a03479589e2642fbdcf6c096851aa |
|
16-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Incremental improvement to logic determining whether we emit unwind tables or not. - PR4932. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2030d8f46b4226fa99e59389e3ca856a79c27e9a |
|
14-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Support -mabi= for clang/ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81734 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4aa4f61de7d364364dc94bbf83ff71448a11327 |
|
11-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Swizzle the target triple based on -mthumb, and update clang-cc to recognize thumb-foo-bar as an ARM target. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cbd1933f83e2332b2d7add10459f80cc4e7eb7bf |
|
11-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Initial handling of -m{soft-float,hard-float,float-abi=} for ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81471 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e6ad3f9fceef0ecc422ff26754ea069a5fd18c69 |
|
11-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move X86 handling of -m[no-]soft-float and -m[no-]red-zone into AddX86TargetArgs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81470 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d65e4be6f22f7e4b4974efbaef92fa3454f1ec8 |
|
11-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Change getLLVMArchNameForARM to just get the suffix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
728a512753d85a6ccaae34e81385c8665c2de0e1 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81435 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f84a4a469d8a45c76cb941595582a0fd3b9b15d3 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
b163ef7e7a5d904ef0962a7c38c460be083c4d63 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ba91575905a54f712a7f64304e56002e4882499 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
e2fd66418eca3d70cf6b62087d745d0c5181db69 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add a check that -static is not used with -dynamic or -mdynamic-no-pic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
88a3d6cf5ebab81614f89ba48a8d89023270637a |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Factor out CheckPreprocessing options to share between Clang/CC1 tools. Also, fix forwarding of -C/-CC to cc1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6acda16e9c194dcbd0dea64341e182bdb65d0f41 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move Clang X86 cpu/feature argument translation into AddX86TargetArgs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5ed34f4c58b6ad4e21038d713c1fae31a6146ff5 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Change Get{File,Program}Path to return an std::string (instead of a sys::Path). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
881376467c46c5c6cc16fa6790271c2c22e1d4f1 |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove gratuitous use of c_str(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
302e2eacf6334eaf18308c4820d2e2b116adfd5d |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Use Twine concatenation instead of llvm::format. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5b750fe6189a41937ff2b080a983c95ea273769f |
|
10-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81386 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cc6f803f98fa6ba9a9c366400210448516d01b3c |
|
09-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Use AddDarwinArch for passing arch name to assembler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81368 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fbefe6bd6f62a3361813498dc672ab0d6c0d4fd1 |
|
09-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1eb4433ac451dc16f4133a88af2d002ac26c58ef |
|
09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e0be8b1729d8978de433d229c065830b95d0ae68 |
|
08-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
ae33f8ff4749dd69060c70dae15e68e454dc3011 |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Merge libgcc spec changes for darwin::Link::ConstructJob. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d82f8fa53771b454885c546f0fd452a4980b3a3e |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Tweak darwin::Link::AddLinkArgs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
78dbd580a02759bbc408dbefb6754afa71b2c24c |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Implement darwin::Link::AddDarwinArch for ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
30392de4681602f1aabc61b0184b1de53bc172f0 |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Darwin: Pass -iphoneos-version-min to ld when building for ARM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f395528158379e7ea9f6ff4bbb791abadca15aab |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename Darwin_X86 toolchain to just Darwin, this can support all platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81016 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5345c391c65d1780a0d7b0102b7f735cc3f82732 |
|
03-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add basic support for -pthread. - Patch by David Chisnall, with PCH and Darwin support mixed in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5915fbf310e171c4cd3c2af05e9de360c0fa988a |
|
01-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
8a5a9aaddb627c0884c2ed8db55cc29fdb601195 |
|
31-Aug-2009 |
David Chisnall <csdavec@swan.ac.uk> |
Updated GNU runtime non-fragile ABI. Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0e2679d29be70186fc1197a1484948ed239922ba |
|
25-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
e7925a075f110ab21afeae084670a155dea568e3 |
|
22-Aug-2009 |
Edward O'Callaghan <eocallaghan@auroraux.org> |
Second half of, clang, AuroraUX toolchain support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
21656ddae8e81df04f142386337cb95a9e0f0971 |
|
05-Aug-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix -fno-omit-frame-pointer bug Eli noticed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78233 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8e9ef0d87dad25f02e5abc6facf528778236115a |
|
05-Aug-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Translate -mcmodel=X to -code-model X and pass it to clang-cc. Patch by Pawel Worach! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
091038cbdeab8933720a4b236ab41590fa02d78a |
|
05-Aug-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add support for the -fno-omit-frame-pointer option. Patch by Roman Divacky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2bbcf669742b6b27748414e22f8042236fceef65 |
|
03-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
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
/external/clang/lib/Driver/Tools.cpp
|
738f8c278da5950d0d4607de2debe0bdfad64185 |
|
01-Aug-2009 |
Mike Stump <mrs@apple.com> |
Add beginnigs of rtti generation, wire up more of -fno-exceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
11727519fbdaec68f526ae7c54a83d0a4601f561 |
|
24-Jul-2009 |
Ted Kremenek <kremenek@apple.com> |
Have 'clang --analyze' run syntactic static analysis security checks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76996 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ceb5c5b7f67a30fae305d1d19b478b623e4fbced |
|
14-Jul-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Remove -ftraditional option, which gcc doesn't actually support. Make using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75690 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e650c8c3bca2f58cad8ffa8aab63126d26e890cd |
|
07-Jul-2009 |
Douglas Gregor <dgregor@apple.com> |
Introduce the notion of "Relocatable" precompiled headers, which are built with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cae087e164e94e4286c11bf694dd0ff88f295302 |
|
01-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add Source argument for Commands to hold the Action which caused a Command to be generated, to support more advanced diagnostics. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f7b8eec37c8c8012fa525c71fb29a58c9f29beef |
|
29-Jun-2009 |
Daniel Dunbar <daniel@zuster.org> |
OpenBSD support. - Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74453 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
45483f7a1b3e57b4603b141bee80596b2d4dd443 |
|
28-Jun-2009 |
Bill Wendling <isanbard@gmail.com> |
Add stack protector support to clang. This generates the 'ssp' and 'sspreq' function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3a183d3d46426d8719031553131b8928f50aa606 |
|
08-Jun-2009 |
Daniel Dunbar <daniel@zuster.org> |
Forward -C and -CC to clang. - <rdar://problem/6945384> Driver should pass down -C and -CC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
75eb1d64784946a37fc0b27596e2d92b6cf7033b |
|
08-Jun-2009 |
Daniel Dunbar <daniel@zuster.org> |
PR4016: Forward -fno-show-source-location to clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
acebb397fa5d63835a0de9cee144987057ec1333 |
|
06-Jun-2009 |
Devang Patel <dpatel@apple.com> |
Set function Attribute::NoImplicitFloat appropriately. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72961 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5a77973d9bc2c9cdbdb7860dcf3ac795abe258ec |
|
05-Jun-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Add driver support for -fsigned-char/-funsigned-char. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72930 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a46c71abb1dc2f9758ad1abe3378534fe138e802 |
|
04-Jun-2009 |
Torok Edwin <edwintorok@gmail.com> |
forward -fno-color-diagnostics to clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e5280286573d4fe1220cdd66e147b572a05536a8 |
|
03-Jun-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Support -mllvm; this just forwards options to clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72780 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
34e65770ad6142b033d6cec4f476ed20fb248bf3 |
|
22-May-2009 |
Fariborz Jahanian <fjahanian@apple.com> |
This patch adds support for sender-aware dispatch in Objective-C for the GNU runtime, when compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72275 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
e027a4b2399e9b0acfe0f77220c66bbe369067ee |
|
22-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Don't warn about -funit-at-a-time, and reject -fno-unit-at-a-time. - We could just warn about -fno-unit-at-a-time, but in practice people using it probably aren't going to get what they want out of clang. Also, use "clang" specified error for unsupported things instead of driver unsupported error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7cfe31a713d8fcfc2a1328e8fbd8efdeb0aec51b |
|
22-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Don't rely on getArchName() to return a constant string reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d8fc0f2e7751cf31cec5c2f3cc6a0b447e9debb3 |
|
22-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add --analyzer-no-default-checks and --analyzer-output options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
f4e2486145b426e84175c8e34b0f200d74daa98b |
|
19-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove -fprintf-source-range-info from the Driver (this was renamed) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
95a0da7b263777e6f97e5a08b6eb893681a234ba |
|
13-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Emit an unsupported error on -iframework. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71698 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
500aec477c82660adda912c35b634006017933be |
|
06-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Tweak x86 -mcpu defaults. - 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
/external/clang/lib/Driver/Tools.cpp
|
868bd0aa9281929ef50d2e9a8c82a036906f53f5 |
|
06-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Improve handling of (X86) target features. - 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
/external/clang/lib/Driver/Tools.cpp
|
d6884a0b90091a063478ec7fa31f6d76c94e4917 |
|
04-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add -fobjc-tight-layout. - This implements gcc style Objective-C interface layout (I think). Currently it is always off, there is no functionality change unless this is passed. For the curious, the deal is that gcc lays out the fields of a subclass as if they were part of the superclass. That is, the subclass fields immediately follow the super class fields instead of being padded to the alignment of the superclass structure. - Currently gcc uses the tight layout in 32-bit and 64-bit modes, and llvm-gcc uses it in 32-bit only, for reasons which aren't clear yet. We probably want to switch to matching gcc, once this makes it through testing... my hope is that we can also fix llvm-gcc in order to maintain compatibility between the compilers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
6ecc7a993f939c5255c36c7c0d965fb9c1543f2a |
|
02-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: When using the generic gcc tool, pass -m32 or -m64 if we 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
/external/clang/lib/Driver/Tools.cpp
|
a8304f67291b0182fb64f3afc621615288dd1d31 |
|
02-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Generate an error when trying to pass an LLVM bc input to a 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
/external/clang/lib/Driver/Tools.cpp
|
11e1b40d759a643086f590f6ffbd9d68360bad46 |
|
02-May-2009 |
Daniel Dunbar <daniel@zuster.org> |
DragonFly ToolChain definition for driver. - Patch by Alex Hornung! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
fffd93f38340d4d2ca7ee78a8c91c890b2ff3fa0 |
|
01-May-2009 |
Douglas Gregor <dgregor@apple.com> |
Implement -fmessage-length=N, which word-wraps diagnostics to N columns. Also, put a line of whitespace between the diagnostic and the source code/caret line when the start of the actual source code text lines up (or nearly lines up) with the most recent line of the diagnostic. For example, here it's okay for the last line of the diagnostic to be (vertically) next to the source line, because there is horizontal whitespace to separate them: decl-expr-ambiguity.cpp:12:16: error: function-style cast to a builtin type can only take one argument typeof(int)(a,5)<<a; However, here is a case where we need the vertical separation (since there is no horizontal separation): message-length.c:10:46: warning: incompatible pointer types initializing 'void (int, float, char, float)', expected 'int (*)(int, float, short, float)' int (*fp1)(int, float, short, float) = f; This is part one of <rdar://problem/6711348>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bc85be85779a47bae728bbe6a2cd2e3732b1333d |
|
29-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Make sure to pass the same options to the static analyzer as the 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
/external/clang/lib/Driver/Tools.cpp
|
ea71a5b388bc5bf91cb81ef004d0dd7f011af512 |
|
28-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
With -ccc-pch-is-pch, always treat precompiled inputs as PCH, regardless of extension. - Otherwise we can't expect that just plugging in -ccc-pch-is-pch will work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a3ff202ee4fb21728e930d5d029ba4925129912c |
|
26-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add -std-default= option. - This can be used to supply a default value for -std=; the idea is that this can be used in conjunction with CCC_ADD_ARGS or QA_OVERRIDE_GCC3_OPTIONS to change the default without having to modify the build system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70102 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9c7db4a209b74f1ca88b6670258749bf90af86dc |
|
25-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: -mkernel disables default use of unwind tables (although I don't yet understand where this is happening in llvm-gcc). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8abf881c8fbe33a6470f06f90d4dc7159cabced3 |
|
25-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: -mkernel and -fapple-kext imply -mno-red-zone. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3ed294522653323e4867a2eba03acc98a99e5479 |
|
24-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Don't run dsymutil when making a fat executable direct source. - 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
/external/clang/lib/Driver/Tools.cpp
|
99612939d02d99a6ef3ff037aa14c4277e9c43ce |
|
24-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Call ld, not collect2. - <rdar://problem/6517382> [driver] call ld directly git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
182e09240a33c6f1d303deecabec6e0e9c9d109d |
|
21-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
rename -fprint-source-range-info -> -fdiagnostics-print-source-range-info. Temporarily accept both of them, I'll rip out the old one after awhile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7695fba30221613b7cf31276456217c41bb90960 |
|
19-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Forward f[no-]dollars-in-identifiers to clang, when specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
49138fc59eeac2aacd3b7e04c2642180d5baefd7 |
|
19-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Forward -fno-diagnostics-fixit-info to clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
df91ef3d6c55692a0236f67b6c6b134a3bf84098 |
|
18-Apr-2009 |
Douglas Gregor <dgregor@apple.com> |
Preliminary PCH support in the driver git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
448f5e6c191b40c90a67c48547df420d16f48b96 |
|
17-Apr-2009 |
Fariborz Jahanian <fjahanian@apple.com> |
Added -print-ivar-layout option. No change in functionality yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9e820ee054fefe5422b4db3f681e567a8976747e |
|
16-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Pass -fdiagnostics-show-option to clang-cc by default. - <rdar://problem/6796848> implement -fdiagnostics-show-option git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69276 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
06ef3c3e9be4923b8e29c8e267b0c56afaa14ff3 |
|
16-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward -W* to clang, it can handle all these itself now. Remove clang_W_Group and clang_ignored_W_Group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
70d3c92820f590b10553da9c96eda24e4325ba34 |
|
15-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: For clang, accept -fsigned-bitfields and reject -funsigned-bitfields for now (clang defaults to -fsigned-bitfields). - <rdar://problem/6790309> ER: Support -fsigned-bitfields/-funsigned-bitfields git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d82df3ad430397d7f9ef511e7c5157f997c41f53 |
|
12-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Implement support for GCC's -dD mode, which dumps -E output *and* macro definitions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff8857a9e6f533765f63b2934902645baa7ddd09 |
|
10-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward -miphoneos-version-min to clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68816 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c21c485b4fb58ef5d55cf3e523263dd824a2ace4 |
|
09-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Split out CPP specific options for clang so that we don't end up adding them twice when running with -no-integrated-cpp or -save-temps. - <rdar://problem/6766636> -save-temps falls over with prefix headers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68660 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3bbc75302fd43cf13d868b46c94ff8794b302e43 |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
More fixes to builtin preprocessor defines. - Add -static-define option driver can use when __STATIC__ should be defined (instead of __DYNAMIC__). - Don't set __OPTIMIZE_SIZE__ on Os, __OPTIMIZE_SIZE__ is tied to Oz. - Set __NO_INLINE__ following GCC 4.2. - Set __GNU_GNU_INLINE__ or __GNU_STDC_INLINE__ following GCC 4.2. - Set __EXCEPTIONS for Objective-C NonFragile ABI. - Set __STRICT_ANSI__ for standard conforming modes. - I added a clang style test case in utils for this, but its not particularly portable and I don't think it belongs in the test suite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68621 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
edfa02b85b186e9ea9e0c841539a77ed32ee9148 |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Darwin ld: Unconditionally add -lstdc++ if we are pretending to be g++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c9abc043af88f90d177a5bd147f627b78ca49fde |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Make debug info work when using -save-temps. - This is pretty ugly, but the most obvious solution. Chime in if you have a nicer one. - The problem is that with -save-temps, clang-cc has no idea what the name of the original input file is. However, the user expects to be able to set breakpoints based on the input file name. - We support this by providing a new option -main-file-name (similar to -dumpbase used by gcc) which allows the driver to pass in the original file name. - <rdar://problem/6753383> building with clang using --save-temps gets the compile unit name from the .i file... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9fd0b1f845a61e71dd8099f596532d34c519630a |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Set __PIC__ (more) correctly. - Add -pic-level clang-cc option to specify the value for the define, updated driver to pass this. - Added __pic__ - Added OBJC_ZEROCOST_EXCEPTIONS define while I was here (to match gcc). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
82d00688525c876bf47bce414dedae9c343e67f5 |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix forwarding of -fpascal-strings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68570 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d573d26e1abcce24c31ece3d6f7af158db569e4c |
|
08-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix forwarding of -{std,ansi,trigraphs} when there are multiple instances of an option. Also, removed direct -ansi support from clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
3aaf082689d3235937a2e56a60f90fc1b3aebfb2 |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward remaining -f options to clang manually. - Groups are really just intended to hold inherent structure of the options, not be abused for individual tool argument translation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68554 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
2ac9fc2ad64e16127df8c60caeea2edfe9a400a2 |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Only forward last instance of -mmacosx-version-min= and -isysroot to clang. - Don't forward arbitrary -i* options to clang, just the ones we know about. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
48d1ef782c8c88066b5febf60f8f456064d7d3f0 |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Manually translate a number of -f with no- variants options to clang. - We will eventually want some more driver infrastructre for this probably. - For now, the clang-cc interface stays relatively the same, but we don't accept multiple instances anymore, or the [no-] variants directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5c1aaafbd6dd25a99ca1960e1c3c98aeefe9d728 |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Explicitly warn that -pg isn't supported (even though we aren't failing the compilation). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68540 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
16fd3a9f5159b74bfdd65cf290b4bd091088de91 |
|
07-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: More verbosity reduction. - Ignore some more -W options and -[fm] options which we can somewhat safely ignore. - Recognize that -W is an alias for -Wextra W: -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wfour-char-constants -Winit-self -Wmissing-format-attribute -Wno-#warnings -Wno-comment -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wstrict-prototypes -Wunused-parameter f: -fconstant-cfstrings -fdollars-in-identifiers -finline -finline-functions -fno-inline -fno-keep-inline-functions -fno-strict-aliasing -fobjc-atdefs -fobjc-call-cxx-cdtors -fobjc-new-property -fstack-protector m: -mconstant-cfstrings -mfix-and-continue git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
0b46e1b5389615a8d6641f4d7bf5415d29acfef3 |
|
04-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Handle properly calling dsymutil when source input is preceeded by a linker input flag. - <rdar://problem/6757236> clang should make a dSYM when going straight from source to binary - This still matches gcc, but the right way to solve this would be to detect the situation we care about (we are compiling from source and linking in one step), instead of looking at the suffix of the input file. The Tool doesn't quite have enough information to do this yet, however. - Also, find the suffix correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68417 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
68fb469aeb19144403e703b825854d08353c8eea |
|
03-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Explicitly ignore -fpch-preprocess when using clang, we don't need to do anything special to support this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68403 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8a2073a85670a13b0bcc1726bc7f80d458f8245b |
|
03-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add missed translation for darwin::Preprocess (gcc), -d* wasn't being forwarded. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
c66a5a30a27e7b9cfab46ac8be918e3ea5b0c5a5 |
|
02-Apr-2009 |
Ed Schouten <ed@80386.nl> |
Add some whitespace to test my commit privileges. Approved by: ddunbar git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
78d8a089c8f124ba6f47bb37e2c4a36986f60e23 |
|
02-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Allow -ccc-gcc-name to specify the name/path to use when calling gcc in generic configurations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bf54a06f9b771c2a2730cc63eb89bce0522515b5 |
|
01-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Quick and dirty (!) fix to make sure we use powerpc in triples. - PR3922 - I have a clean solution for this in flight, but it may take a while to come to fruition so we'll take a quick fix for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
008f54a54299eaafdaa940e2bdeaf55935ecd95a |
|
01-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add freebsd::Link - Patch by Ed Schouten! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68233 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
bb71b392729b86858ee861b967006a03c07c41f2 |
|
01-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove a FIXME, use -emit-pth to drive PTH generation. - c.f. r68164 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8a8d8afa3df40e9f122d2b826f1a825a66f6908d |
|
01-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Tweak/cleanup darwin::Link a bit, add several FIXMES, and improve test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8e4fea6750dbac032c172f3279c63b7815b7423e |
|
01-Apr-2009 |
Daniel Dunbar <daniel@zuster.org> |
Tweak darwin::Assemble and add a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68165 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
077ba6a3ac3628afb0d3c460e81ce013bccbdbed |
|
31-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward -Wp, and -Xpreprocessor arguments to clang when using the preprocessor. - PR3602. - As is inherent in the blanket forwarding options, this will only work if clang-cc happens to accept what the user passed. Users by and large should use driver options to interact with the preprocessor, if at all possible. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
68a31d406c6dc4382c700d1199b062de2aa7e1da |
|
31-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Call 'as' directly on FreeBSD. - Patch by Ed Schouten! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68121 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
af07f936b698575f2c91f1c1134c116f1ef0dedd |
|
31-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
(LLVM up) Update to use llvm::sys::getHostTriple(). - Always pass -triple to clang-cc (-arch will be removed). - clang-cc doesn't play guess work with the target triple anymore. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68119 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
46562b9122417bf6f70626f69bd79b8f5a4adac9 |
|
30-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix -MD with no -MT when -o is specified (and fix test case). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68042 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
cd8e4c44dd068956e9181381be3ee2d49a0fac52 |
|
30-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Support -M and -MM. - Not particularly elegant, but my hand is forced by gcc. Also, tweak -ccc-print-bindings output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a5a7bd0de7b6b80212095195a055a4a43f21d4b2 |
|
30-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Improve dependency file support. - Rip out various bits of logic from clang-cc's dependency file gen, force driver to provide instead. - -MD output now goes to proper location <rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name - -M and -MM still don't work correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9120f179fd2e354f067e4ef2c76dcf3fc4db8a16 |
|
30-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add test case for darwin::Preprocess and darwin::Compile tools, and enable them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a3ec60e0cf2a1916f479288998d31bd980b1a306 |
|
29-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Finish porting Darwin::Preprocess and Compile port (still unused, and lacking a test case). - ccc is now on death row, pending some more testing and bug fixes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
40f1265ebd42ece3e7f7917319b56012e8e2bce2 |
|
29-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Start porting Darwin::Preprocess and Compile implementations (currently unused). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68003 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b9f3a777e503851964c9542a0261e45eece59747 |
|
27-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Pass -f[no-]pascal-strings on to clang, even if it has been turned into -m[no-]pascal-strings by the tool chain. - This still has issue that derived arguments don't propogate "used" information correctly so spurious "argument unused" warnings will still show up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
02633b541b04ad5ffc1c70f4c2feeeb13e607057 |
|
26-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add darwin::Link tool. - <rdar://problem/6717381> [driver] implement ld argument translation in new driver git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
9b646dac1c05fbfbfb4db0cb88ea28e74fbe7b9a |
|
25-Mar-2009 |
Ted Kremenek <kremenek@apple.com> |
Turn on -analyzer-eagerly-assume by default when using 'clang-cc' to perform static analysis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67665 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
337a6271b98c4c183f7eaad1563a75260b4f2871 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc. - -emit-llvm no longer changes what compilation steps are done. - -emit-llvm and -emit-llvm -S write output files with .o and .s suffixes, respectively. - <rdar://problem/6714125> clang-driver should support -O4 and -flto, like llvm-gcc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b3fd500a1c486e9fb82d82e28828ead025462aeb |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Translate -fverbose-asm for LLVM backend. - <rdar://problem/6715707> driver should translate -fverbose-asm into -asm-verbose git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
546654a62eedb123b1b6d727ede29fd6cfb55087 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Forward -MMD (not -MM) to clang-cc; this got lost in translation, the former we support, the later we don't (yet). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a428df828ea4cc6916ea90dcd9fbbc840776d207 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: lipo wasn't being called correctly (translation failure from ccc due to the different way we handle output arguments). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
a880db0b0fc028abf754c290d921d809eec0518a |
|
23-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add two special groups of "whitelisted" options which we know clang doesn't support, and don't want to warn are unused. Eventually these should disappear. Here is a more readable list than is in the diff: W options: -Wall, -Wcast-align, -Wchar-align, -Wchar-subscripts, -Werror, -Wextra, -Winline, -Wint-to-pointer-cast, -Wmissing-braces, -Wmost, -Wnested-externs, -Wno-format-y2k, -Wno-four-char-constants, -Wno-missing-field-initializers, -Wno-trigraphs, -Wno-unknown-pragmas, -Wno-unused-parameter, -Wparentheses, -Wpointer-arith, -Wpointer-to-int-cast, -Wreturn-type, -Wshorten-64-to-32, -Wswitch, -Wunused-function, -Wunused-label, -Wunused-value, -Wunused-variable, -Wwrite-strings. f options: -fasm-blocks, -fmessage-length=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
049853d74ea052ed904de7e18ae51d6953177822 |
|
20-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Switch to using -include-pth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
8cac5f7e1ce63dd77ee0fb4ef68f9fa804f41ea6 |
|
20-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add and use darwin::Assemble tool. - Based on patch from Pieter de Bie; thanks! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ff7488dc9a766f94daf54d81b03ab9160d0bfd88 |
|
20-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add darwin::Lipo tool. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
55b3b5f5c6c92f5dbb10dfe96a7de07a2b364338 |
|
19-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver/clang: -mattr strings were not comma separated. - Apologies for commits w/o test cases; they are coming. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
7587719c40ebf02bf11e5e66c30bd20e98edebc2 |
|
19-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Claim -arch options when pipelining, and claim arguments that are forwarded to GCC. - The later is unfortunate, as it prevents us from generally warning about anything interesting on platforms that use a generic toolchain. However, we can't do much better without significantly complicating things, and generally we should have proper tool chain definitions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
115a79277edababaf1b26e3654044ae983197679 |
|
19-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Handle "linker input" arguments. - Make InputInfo a variant of filename, pipe, input argument, nothing. - Leave a FIXME in InputInfo that this should be revisited. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
5697aa0d75c87bafec78984048d558f8d12ca1b3 |
|
19-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Fix bug in translating -O to clang, add clang-translation test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67257 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
ecc636272b9d1bf0e4b9872a576d8ad2b689d146 |
|
19-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Resolve program path for "cp" (used as part of transparent gcc PCH support). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67256 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
632f50edc08c76ebc643a0d4871bae33a55d7b4e |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Lookup program names using llvm::sys::Program::FindProgramByName if our usual methods fail. This isn't necessary for running the tool, but improves the accuracy of logging output. Also, have GCC tools lookup gcc program path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67243 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
1d46033f760ba5fd266ce59fe391fac473f04f52 |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Port Clang argument translation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
b488c1dac8e53206f07103d794a62a3f5012c0f4 |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Lift out common GCC tool and implement generic GCC tool argument translation. Also, stub out clang tool implementation a bit more. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
871adcf4e41285e3f4c3b62eaa1b2e05b60b92da |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: ConstructJob also needs to know the destination (where to put its commands). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
62cf601812e03dd9bc5df42b8ef06a0cdedc38bf |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Add a dash of const. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67170 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|
47ac7d27c44bd64a7d0fc03d4babc196cf2b8230 |
|
18-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Driver: Stub out Tool::ConstructJob. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67169 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Driver/Tools.cpp
|