- Nov 27, 2012
-
-
Jordan Rose authored
Thanks for the original catch in r168303, Takumi. llvm-svn: 168671
-
Rafael Espindola authored
llvm-svn: 168669
-
Rafael Espindola authored
llvm-svn: 168667
-
Richard Smith authored
llvm-svn: 168650
-
Richard Smith authored
llvm-svn: 168639
-
Daniel Dunbar authored
- This ensures we see the right buffer size for the file. llvm-svn: 168636
-
- Nov 26, 2012
-
-
Michael Han authored
Improve diagnostic on C++11 attribute specifiers that appear at wrong syntactic locations around class specifiers. This change list implemented logic that explicitly detects several combinations of locations where C++11 attribute specifiers might be incorrectly placed within a class specifier. Previously we emit generic diagnostics like "expected identifier" for such cases; now we emit specific diagnostic against the misplaced attributes, this also fixed a bug in old code where attributes appear at legitimate locations were incorrectly rejected. Thanks to Richard Smith for reviewing! llvm-svn: 168626
-
Eli Friedman authored
I'm looking at ways to fix the relevant test so it can catch this sort of mistake. llvm-svn: 168618
-
Sebastian Pop authored
Clean up the existing test to use FileCheck. llvm-svn: 168607
-
Jordan Rose authored
Before, SATestBuild unilaterally added '-j<n>' to every project built with 'make'. Now, we check and see if there's a -j option already specified, which allows a project to explicitly be marked '-j1'. llvm-svn: 168603
-
Anna Zaks authored
The AllocaRegion did not have the superRegion (based on LocationContext) as part of it's hash. As a consequence, the AllocaRegions from different frames were uniqued to be the same region. llvm-svn: 168599
-
Anton Korobeynikov authored
MSPGCC renamed ISR vectors from vector_<address> to __isr_<number>. This patch makes Clang reflect this scheme. Patch by Job Noorman! llvm-svn: 168598
-
Timur Iskhodzhanov authored
llvm-svn: 168583
-
Richard Smith authored
initialization, don't rebuild it. Remove a couple of hacks which were trying to work around this. Fix the special case for one-argument CXXConstructExprs to not apply if the one argument is a default argument. llvm-svn: 168582
-
- Nov 25, 2012
-
-
Rafael Espindola authored
llvm-svn: 168564
-
Rafael Espindola authored
regressed in r168519. llvm-svn: 168563
-
Alexey Samsonov authored
llvm-svn: 168562
-
NAKAMURA Takumi authored
It brought bunch of (possibly false) warnings. llvm/unittests/VMCore/PassManagerTest.cpp:60:22: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleNDNM::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:86:22: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleNDM2::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:106:21: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleDNM::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:217:16: warning: variable 'initcount' is not needed and will not be emitted [-Wunneeded-internal-declaration] int LPass::initcount=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:218:16: warning: variable 'fincount' is not needed and will not be emitted [-Wunneeded-internal-declaration] int LPass::fincount=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:259:16: warning: variable 'inited' is not needed and will not be emitted [-Wunneeded-internal-declaration] int BPass::inited=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:260:16: warning: variable 'fin' is not needed and will not be emitted [-Wunneeded-internal-declaration] int BPass::fin=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:283:24: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char OnTheFlyTest::ID=0; ^ 8 warnings generated. llvm-svn: 168549
-
- Nov 24, 2012
-
-
Nico Weber authored
llvm-svn: 168535
-
- Nov 23, 2012
-
-
Benjamin Kramer authored
Fixes PR13758. llvm-svn: 168521
-
Rafael Espindola authored
"clang -cc1 -fsyntax-only" on the preprocessed output of #define M extern int a; #define M2 M M #define M4 M2 M2 #define M8 M4 M4 #define M16 M8 M8 #define M32 M16 M16 #define M64 M32 M32 #define M128 M64 M64 #define M256 M128 M128 #define M512 M256 M256 #define M1024 M512 M512 #define M2048 M1024 M1024 #define M4096 M2048 M2048 #define M8192 M4096 M4096 #define M16384 M8192 M8192 M16384 goes from 2.994s to 1.416s. GCC is at 0.022s, so we still have a long way to go. llvm-svn: 168519
-
Rafael Espindola authored
llvm-svn: 168515
-
Rafael Espindola authored
Decl::isUsed checks the attribute. If the function had a body just the check is DeclMustBeEmitted would be sufficient. llvm-svn: 168514
-
Joey Gouly authored
llvm-svn: 168510
-
Bob Wilson authored
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. llvm-svn: 168505
-
- Nov 22, 2012
-
-
Benjamin Kramer authored
llvm-svn: 168500
-
Richard Smith authored
specified as a qualified name. llvm-svn: 168479
-
Richard Smith authored
and defined within the current instantiation, but which are not part of the current instantiation. Previously, it would look at bases which could be specialized separately from the current template. llvm-svn: 168477
-
Richard Smith authored
non-trivial special members for varargs calls. llvm-svn: 168476
-
Chandler Carruth authored
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. llvm-svn: 168473
-
- Nov 21, 2012
-
-
Benjamin Kramer authored
SemaCXX: an enumeral type can be of character or boolean type in a C++11 enum class. Make sure we create a literal of the right type. Fixes PR14386. llvm-svn: 168441
-
Joey Gouly authored
llvm-svn: 168436
-
Alexey Samsonov authored
llvm-svn: 168431
-
NAKAMURA Takumi authored
FIXME: It could be /dev/null. llvm-svn: 168429
-
Alexey Samsonov authored
[Sanitizer] force linking with static sanitizer runtimes on Darwin even if they are not found in resource directory. Add test checking sanitizer linker flags on Darwin. llvm-svn: 168428
-
Dmitri Gribenko authored
Patch by Philip Craig. llvm-svn: 168420
-
Rafael Espindola authored
llvm-svn: 168411
-
Rafael Espindola authored
llvm-svn: 168410
-
Rafael Espindola authored
"clang -cc1" on a file with 10k repetitions of extern int no_such_variable; from 1.434s to 1.133s. llvm-svn: 168394
-
- Nov 20, 2012
-
-
Bill Wendling authored
llvm-svn: 168355
-