John McCall
bb7b658ab5
Diagnose misordered initializers in constructor templates immediately instead of
...
when they're instantiated. Merge the note into the -Wreorder warning; it
doesn't really contribute much, and it was splitting a thought across diagnostics
anyway. Don't crash in the parser when a constructor's initializers end in a
comma and there's no body; the recovery here is still terrible, but anything's
better than a crash.
llvm-svn: 100922
2010-04-10 07:37:23 +00:00
Gabor Greif
d394aec87d
rely even less on CallInst internals
...
llvm-svn: 100919
2010-04-10 03:45:50 +00:00
Gabor Greif
d0ef1346f3
do not rely on CallInst interna, use CallSite to access arguments
...
llvm-svn: 100918
2010-04-10 02:56:12 +00:00
Daniel Dunbar
4364558956
Driver/Darwin/x86: When linking, incorporate -L paths based on the path where
...
Clang is installed. This is designed to match gcc, and is important when
installed in a non-standard location.
- This is gross, but no worse than ever. It will die when we finally move to
the compiler-rt based toolchain, any day now.
llvm-svn: 100915
2010-04-10 01:24:22 +00:00
Daniel Dunbar
584344f2ec
Disable diag::err_file_modified on Win32 completely, until someone cares to fix
...
it. PR6812.
- This is another attempt at silencing annoying buildbot failures.
llvm-svn: 100914
2010-04-10 01:17:16 +00:00
Sean Callanan
a4ae4e7693
Updated the edis build mechanism to allow for builds
...
that do not build some (or all) of the targets that
edis supports.
llvm-svn: 100910
2010-04-10 00:48:10 +00:00
John McCall
e8917e0fd2
Mangle some expressions with codegen implications but no mangling "overhead".
...
llvm-svn: 100909
2010-04-09 22:54:09 +00:00
Dan Gohman
70e572e740
Fix a typo and some indentation.
...
llvm-svn: 100908
2010-04-09 22:47:25 +00:00
John McCall
6936c863b0
Provide an extremely unsatisfactory diagnostic (instead of crashing) when
...
mangling an unknown expression kind. Also conveniently tells the user what
kind of expression they should add to the mangler!
llvm-svn: 100907
2010-04-09 22:26:14 +00:00
Dan Gohman
607e02b33a
When determining a canonical insert position, don't climb deeper
...
into adjacent loops. Also, ensure that the insert position is
dominated by the loop latch of any loop in the post-inc set which
has a latch.
llvm-svn: 100906
2010-04-09 22:07:05 +00:00
John McCall
09277542f2
Provide manglings for bool and character literal expressions. These are
...
just integer-literal expressions with special case implementations in the AST.
Fixes rdar://problem/7825453.
llvm-svn: 100905
2010-04-09 21:48:08 +00:00
Bob Wilson
67dd3a4464
Tidy whitespace.
...
llvm-svn: 100904
2010-04-09 21:38:26 +00:00
Douglas Gregor
530805711f
When upgrading an Objective-C class from a forward declaration to a
...
full-fledged @interface, be sure that the declaration has the right
lexical context. <rdar://problem/7827709>
llvm-svn: 100903
2010-04-09 21:30:38 +00:00
Douglas Gregor
06aa50417d
Only complain about explicit instantiations following explicit
...
specializations when the explicit instantiation was... explicitly
written, i.e., not the product of an explicit instantiation of an
enclosing class. Fixes this spurious warning when Clang builds LLVM:
/Volumes/Data/dgregor/Projects/llvm/lib/CodeGen/MachineDominators.cpp:22:1:
warning: explicit instantiation of 'addRoot' that occurs after an
explicit specialization will be ignored (C++0x extension) [-pedantic]
llvm-svn: 100900
2010-04-09 21:02:29 +00:00
Johnny Chen
4e8bd58001
If all the bit positions are not specified; do not decode the instructions.
...
We are bound to fail! For proper disassembly, the well-known encoding bits
of the instruction must be fully specified.
This also removes pseudo instructions from considerations of disassembly,
which is a better design and less fragile than the name matchings.
llvm-svn: 100899
2010-04-09 21:01:02 +00:00
Chris Lattner
74e2ef68b9
suck the propagating "has dynamic libs" check into a single makefile
...
variable TARGET_HAS_DYNAMIC_LIBS
llvm-svn: 100896
2010-04-09 20:51:47 +00:00
Chris Lattner
c86cdc7d47
add minix support, patch by Kees van Reeuwijk! PR6797
...
llvm-svn: 100895
2010-04-09 20:45:04 +00:00
Chris Lattner
5c289f217b
clean this up, fix std::min ambiguity on some platforms.
...
llvm-svn: 100894
2010-04-09 20:43:54 +00:00
Wesley Peck
a2ca3fa781
Adding IPSCCP and Internalize passes to the C-bindings
...
llvm-svn: 100893
2010-04-09 20:43:20 +00:00
Bob Wilson
0106063556
Provide versions of the ARM eh_sjlj_setjmp instructions for non-VFP subtargets
...
such that the non-VFP versions have no implicit defs of VFP registers.
If any callee-saved VFP registers are marked as having been defined, the
prologue/epilogue code will try to save and restore them.
Radar 7770432.
llvm-svn: 100892
2010-04-09 20:41:18 +00:00
Ted Kremenek
26984fb4eb
Remove copy of 'Optional' in Clang tree, and convert clients to use the one now in the LLVM tree.
...
llvm-svn: 100891
2010-04-09 20:26:58 +00:00
Ted Kremenek
800b66be9d
Remove fixit for string literal comparison. Telling the user to use 'strcmp' is bad, and
...
we don't have enough information to tell them how to use 'strncmp'. Instead, change the
diagnostic to indicate they should use 'strncmp'.
llvm-svn: 100890
2010-04-09 20:26:53 +00:00
Ted Kremenek
bfe98e644b
Move 'Optional' class from Clang to LLVM/ADT.
...
llvm-svn: 100889
2010-04-09 20:25:54 +00:00
Benjamin Kramer
41ef2a6b32
Fix typo.
...
llvm-svn: 100887
2010-04-09 19:40:47 +00:00
Johnny Chen
298a122fb4
ARM decoder emitter should print out useful information unconditionally when it
...
encounters decoding conflicts, instead of wrapping it inside the DEBUG() macro.
llvm-svn: 100886
2010-04-09 19:31:33 +00:00
Dan Gohman
3295a6e5bc
When emitting code for an add, don't force a SCEVUnknown wrapper around
...
a hoisted intermediate result if the intermediate result isn't an
Instruction.
llvm-svn: 100884
2010-04-09 19:14:31 +00:00
Dan Gohman
42ec4eb351
When looking for loop-invariant users, look through no-op instructions,
...
so that an unfortunately placed bitcast doesn't pin a value in a
register.
llvm-svn: 100883
2010-04-09 19:12:34 +00:00
John McCall
dfea9989ef
Turn access control on by default in the driver.
...
llvm-svn: 100882
2010-04-09 19:12:06 +00:00
John McCall
b684a545fa
Argh, I modified the .inc file locally, not the .td.
...
llvm-svn: 100881
2010-04-09 19:09:08 +00:00
John McCall
3155f573f5
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.
llvm-svn: 100880
2010-04-09 19:03:51 +00:00
Benjamin Kramer
7e4a475929
Make sure this test tests something.
...
llvm-svn: 100879
2010-04-09 19:03:31 +00:00
John McCall
da6841bade
Suppress access control diagnostics when looking up a base or member name
...
fails to find a type. There are no cases where it's valid for this to produce
an error.
llvm-svn: 100878
2010-04-09 19:01:14 +00:00
Bob Wilson
35e856a8ed
Fix a grammaro.
...
llvm-svn: 100877
2010-04-09 18:39:54 +00:00
Bob Wilson
030591320d
Add a testcase for svn r100568.
...
llvm-svn: 100876
2010-04-09 18:29:29 +00:00
Chris Lattner
1ef9826ff8
"On SPU, variables in the .bss section that are allocated with the .lcomm directive are not aligned on 16 byte boundaries. This causes misaligned loads, as the generated assembly assumes this "default" alignment.
...
this patch disables .lcomm in favour of '.local .comm'
Patch by Kalle Raisklia!
llvm-svn: 100875
2010-04-09 18:27:03 +00:00
Dan Gohman
394b624215
Add a comment.
...
llvm-svn: 100874
2010-04-09 18:20:03 +00:00
Douglas Gregor
b10646d4ce
Improve diagnostics like "initializing <type> from an expression of
...
type..." with "initializing <type> with an expression of type...",
which reads better. Thanks to John for the improved wording.
llvm-svn: 100873
2010-04-09 17:53:29 +00:00
Douglas Gregor
fb8b27d530
Remove all "used" static functions *after* we have performed all of
...
the implicit template instantiations we need to perform. Otherwise, we
end up erroneously diagnosing static functions as used if they were
only used within an implicit template instantiation. Fixes a bunch of
spurious failures when building Clang with Clang.
llvm-svn: 100872
2010-04-09 17:41:13 +00:00
John McCall
b29f78fb9e
Instantiate default argument expressions even if their associated parameter
...
type isn't dependent. Fixes rdar://problem/7838962.
llvm-svn: 100871
2010-04-09 17:38:44 +00:00
Chris Lattner
8a651c7116
Don't warn about unused static functions if they are marked with
...
attr constructor or destructor. Patch by Jean-Daniel Dupas!
llvm-svn: 100870
2010-04-09 17:25:05 +00:00
Bob Wilson
b618912206
Fix up header comments to match the comment fixups I made in r100849.
...
llvm-svn: 100869
2010-04-09 16:24:49 +00:00
Devang Patel
541019ddec
Clear InsnsBeginScopeSet and InsnsEndScopeSet at the end of function.
...
llvm-svn: 100867
2010-04-09 16:04:20 +00:00
Douglas Gregor
08288f2846
On Windows, disable the modification-time check for files used in
...
precompiled headers and/or when reading the contents of the file into
memory. These checks seem to be causing spurious regression-test
failures on Windows.
llvm-svn: 100866
2010-04-09 15:54:22 +00:00
Fariborz Jahanian
cdabb31d6f
Fixes a regression caused by implementing cstyle methods
...
for objc.
llvm-svn: 100865
2010-04-09 15:40:42 +00:00
Daniel Dunbar
524b4606f7
Forcibly disable test/PCH/pr4489.c, it is flaky on one of the buildbots.
...
llvm-svn: 100864
2010-04-09 15:30:57 +00:00
Gabor Greif
ef60190a00
performance: cache result of looking up user
...
llvm-svn: 100862
2010-04-09 15:18:34 +00:00
Dan Gohman
d23fa7d90d
Merge a few fast-isel tests.
...
llvm-svn: 100860
2010-04-09 15:03:55 +00:00
Dan Gohman
0a8175d1db
Minor code simplification.
...
llvm-svn: 100859
2010-04-09 14:53:59 +00:00
Dan Gohman
87f8207c97
Delete this obsolete comment.
...
llvm-svn: 100858
2010-04-09 14:12:01 +00:00
Gabor Greif
ce6dd889ec
const-ize a predicate
...
llvm-svn: 100856
2010-04-09 10:57:00 +00:00