| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Introduces new sanitizer "unsigned-integer-overflow".
llvm-svn: 168701
|
|
|
|
| |
llvm-svn: 168698
|
|
|
|
|
|
| |
open("/dev/fd/1-foobar") fails with EEXIST on cygwin.
llvm-svn: 168676
|
|
|
|
| |
llvm-svn: 168675
|
|
|
|
| |
llvm-svn: 168674
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ELF ABI.
Complex values are to be passed in registers as though the real and
imaginary parts were passed as separate parameters. Prior to this
patch, complex values were passed as byval aggregates. It turns out
that specifying getDirect() for all complex types when classifying the
argument type results in the desired behavior.
The new Clang test case verifies that the correct LLVM IR is generated
for caller and callee for each of the underlying types for _Complex.
llvm-svn: 168673
|
|
|
|
| |
llvm-svn: 168672
|
|
|
|
|
|
| |
Thanks for the original catch in r168303, Takumi.
llvm-svn: 168671
|
|
|
|
| |
llvm-svn: 168669
|
|
|
|
| |
llvm-svn: 168667
|
|
|
|
| |
llvm-svn: 168650
|
|
|
|
| |
llvm-svn: 168639
|
|
|
|
|
|
| |
- This ensures we see the right buffer size for the file.
llvm-svn: 168636
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
I'm looking at ways to fix the relevant test so it can catch this sort of mistake.
llvm-svn: 168618
|
|
|
|
|
|
| |
Clean up the existing test to use FileCheck.
llvm-svn: 168607
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
patch makes Clang reflect this scheme.
Patch by Job Noorman!
llvm-svn: 168598
|
|
|
|
| |
llvm-svn: 168583
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 168564
|
|
|
|
|
|
| |
regressed in r168519.
llvm-svn: 168563
|
|
|
|
| |
llvm-svn: 168562
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
isUsed. With this change"
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
|
|
|
|
| |
llvm-svn: 168535
|
|
|
|
|
|
|
|
| |
a CXXDefaultArgExpr.
Fixes PR13758.
llvm-svn: 168521
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
| |
llvm-svn: 168515
|
|
|
|
|
|
|
| |
Decl::isUsed checks the attribute. If the function had a body just the check
is DeclMustBeEmitted would be sufficient.
llvm-svn: 168514
|
|
|
|
| |
llvm-svn: 168510
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 168500
|
|
|
|
|
|
| |
specified as a qualified name.
llvm-svn: 168479
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
non-trivial special members for varargs calls.
llvm-svn: 168476
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
enum class. Make sure we create a literal of the right type.
Fixes PR14386.
llvm-svn: 168441
|
|
|
|
| |
llvm-svn: 168436
|
|
|
|
| |
llvm-svn: 168431
|
|
|
|
|
| |
FIXME: It could be /dev/null.
llvm-svn: 168429
|
|
|
|
|
|
| |
they are not found in resource directory. Add test checking sanitizer linker flags on Darwin.
llvm-svn: 168428
|
|
|
|
|
|
| |
Patch by Philip Craig.
llvm-svn: 168420
|
|
|
|
| |
llvm-svn: 168411
|
|
|
|
| |
llvm-svn: 168410
|
|
|
|
|
|
|
|
| |
"clang -cc1" on a file with 10k repetitions of
extern int no_such_variable;
from 1.434s to 1.133s.
llvm-svn: 168394
|
|
|
|
| |
llvm-svn: 168355
|
|
|
|
| |
llvm-svn: 168340
|
|
|
|
|
|
| |
them in order to parse the rest of the file.
llvm-svn: 168327
|
|
|
|
|
|
|
|
| |
getUnderlyingDecl()) so that derivatives of
CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry
about being thrown by UsingDecls and such.
llvm-svn: 168317
|