Chris Lattner
f35de48c90
when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant
...
as constant size arrays. This has slightly different semantics in some insane cases, but allows
us to accept some constructs that GCC does. Continue to be pedantic in -std=c99 and other
modes. This addressed rdar://8733881 - error "variable-sized object may not be initialized"; g++ accepts same code
llvm-svn: 132983
2011-06-14 06:38:10 +00:00
Cameron Zwarich
b5f19d9f6f
Be more obvious about what is being tested.
...
llvm-svn: 132982
2011-06-14 06:33:51 +00:00
Rafael Espindola
844485af13
Implement Jakob's suggestion on how to detect fall thought without calling
...
AnalyzeBranch.
llvm-svn: 132981
2011-06-14 06:08:32 +00:00
Chris Lattner
9925ec8bf4
fix rdar://9204520 - Accept int(0.85 * 10) as an initializer in a class member
...
as an extension.
llvm-svn: 132980
2011-06-14 05:46:29 +00:00
David Majnemer
c75d1a1098
Properly diagnose using abstract and incomplete types in va_arg
...
- Move a test from test/SemaTemplate/instantiate-expr-3.cpp, it did not belong there
- Incomplete and abstract types are considered hard errors
llvm-svn: 132979
2011-06-14 05:17:32 +00:00
Bruno Cardoso Lopes
29386fb10d
Since ARM's prefetch implementation predicted the presence of a instruction
...
cache prefetch and now that the info from "prefetch" to "ARMPreload" is present,
only add a testcase for PLI.
llvm-svn: 132978
2011-06-14 05:11:46 +00:00
Bruno Cardoso Lopes
3b0297a98c
Update the prefetch intrinsic usage. Now the last argument tells codegen
...
whether it's a data or instruction cache access.
llvm-svn: 132977
2011-06-14 05:00:30 +00:00
Bruno Cardoso Lopes
dc9ff3a4b1
Add one more argument to the prefetch intrinsic to indicate whether it's a data
...
or instruction cache access. Update the targets to match it and also teach
autoupgrade.
llvm-svn: 132976
2011-06-14 04:58:37 +00:00
Chris Lattner
ee7286f02d
fix rdar://9546171 - -Wshorten-64-to-32 shouldn't warn on vector bitcasts.
...
llvm-svn: 132975
2011-06-14 04:51:15 +00:00
Rafael Espindola
da24f2f8e1
Make the threshold used by branch folding softer. Before we would get a
...
sharp all or nothing transition when one extra predecessor was added. Now
we still test first ones for merging.
llvm-svn: 132974
2011-06-14 04:41:17 +00:00
Peter Collingbourne
ee781d586e
Move GlobalDecl to AST
...
llvm-svn: 132973
2011-06-14 04:02:39 +00:00
Peter Collingbourne
6a520222d0
Improve error reporting in ProcessMonitor::Launch
...
llvm-svn: 132972
2011-06-14 03:55:58 +00:00
Peter Collingbourne
6234320933
Fix mistakes relating to ProcessMonitor::DupDescriptor
...
llvm-svn: 132971
2011-06-14 03:55:54 +00:00
Peter Collingbourne
4aeb47e23c
If ProcessMonitor::Launch fails, post semaphore to notify caller
...
llvm-svn: 132970
2011-06-14 03:55:49 +00:00
Peter Collingbourne
d736854419
Fix typo: curret -> current
...
llvm-svn: 132969
2011-06-14 03:55:45 +00:00
Peter Collingbourne
059640b521
Generalise pattern for matching IsValid signature
...
Previously the IsValid pattern matched only function signatures of
the form:
def IsValid(*args): ...
However under SWIG 1.3.40 on Linux the signature reads:
def IsValid(self): ...
The new pattern matches both signature types by matching only up to
the left paren.
llvm-svn: 132968
2011-06-14 03:55:41 +00:00
Peter Collingbourne
eb994b27ff
Declare CompareHistoryEvents and IsCurrentHistoryEvent as pure virtual functions
...
Fixes the Linux build.
llvm-svn: 132967
2011-06-14 03:55:38 +00:00
Peter Collingbourne
933f6f617d
Add license header to InferiorCallPOSIX.cpp
...
llvm-svn: 132966
2011-06-14 03:55:34 +00:00
Peter Collingbourne
91322f1938
Fix typo: fucntion -> function
...
llvm-svn: 132965
2011-06-14 03:55:29 +00:00
Nick Lewycky
34a425b075
Fit banner in 80-col and adjust whitespace. No functionality changes.
...
llvm-svn: 132964
2011-06-14 03:23:52 +00:00
Bill Wendling
e712449688
Heuristic: If the number of operands in the alias are more than the number of
...
operands in the aliasee, don't print the alias.
llvm-svn: 132963
2011-06-14 03:17:20 +00:00
John McCall
51fbfc928c
Test case for r132797.
...
llvm-svn: 132962
2011-06-14 03:02:05 +00:00
John McCall
5af845226c
Use IRBuilder to make our intrinsic calls in the inliner so that we pick up
...
line info correctly.
llvm-svn: 132961
2011-06-14 02:51:53 +00:00
Greg Clayton
c0094b1be3
Remove assert() calls that were firing off and crashing the LLDB framework.
...
llvm-svn: 132960
2011-06-14 01:53:36 +00:00
Evan Cheng
cffdcae2fe
Update BitcodeWriter to match recent Triple changes. rdar://9603399
...
llvm-svn: 132959
2011-06-14 01:51:33 +00:00
Jordy Rose
bc7483f505
[analyzer] CStringChecker checks functions in the C standard library, not C++. Its external name is now unix.experimental.CString.
...
llvm-svn: 132958
2011-06-14 01:40:43 +00:00
Eli Friedman
eb7fab61bd
The LLVM IR representation of byval arguments has a rather strange property: if the alignment of an argument to a call is less than the specified byval alignment for that argument, there is no way to specify the alignment of the implied copy. Therefore, we must ensure that the alignment of the argument is at least the byval alignment. To do this, we have to mess with the alignment of relevant alloca's in some cases, and insert a copy that conceptually shouldn't be necessary in some cases.
...
This patch tries relatively hard to avoid creating an extra copy if it can be avoided (see test3 in the included testcase), but it is not possible to avoid in some cases (like test2 in the included testcase).
rdar://9483886
llvm-svn: 132957
2011-06-14 01:37:52 +00:00
Jordy Rose
45d8c12b68
[analyzer] Change large if body to early return. No functionality change.
...
llvm-svn: 132956
2011-06-14 01:26:48 +00:00
Jordy Rose
d359289669
[analyzer] Fix modeling of strnlen to be more conservative. Move tests we can't properly model (yet?) to string-fail.c.
...
llvm-svn: 132955
2011-06-14 01:15:31 +00:00
Nick Lewycky
9711b5c70b
Use Value::stripPointerCasts instead of reinventing part of the wheel.
...
llvm-svn: 132954
2011-06-14 00:59:24 +00:00
Eli Friedman
51dd0185d6
Make __gnu_inline__ functions in gnu99 mode work the same way as inline functions in gnu89 mode in terms of redefinitions.
...
rdar://9559708 .
llvm-svn: 132953
2011-06-13 23:56:42 +00:00
Cameron Zwarich
922e4940bd
Fix grammar.
...
llvm-svn: 132952
2011-06-13 23:39:23 +00:00
Johnny Chen
143b39fba4
Removed unneeded method breakAfterLaunch() from the TestBase class to simplify our base class.
...
It was introduced to work around some debugger infrastructure bug which has long since been fixed.
llvm-svn: 132951
2011-06-13 23:19:35 +00:00
Devang Patel
2d1d1f4942
New test case for r132949.
...
llvm-svn: 132950
2011-06-13 23:16:05 +00:00
Devang Patel
297207f813
Put local variables in appropriate debug info scope.
...
This fixes radar 8757124.
llvm-svn: 132949
2011-06-13 23:15:32 +00:00
Devang Patel
b4956a7fac
Remote this unreliable test case because it did not do its job.
...
llvm-svn: 132948
2011-06-13 23:14:35 +00:00
Eli Friedman
97f3d1a5ee
Update extensions section of the docs to account for wacky gcc stuff we did end up implementing.
...
llvm-svn: 132947
2011-06-13 23:12:01 +00:00
Jim Grosbach
7ef7ddd2df
Clean up a few 80 column violations.
...
llvm-svn: 132946
2011-06-13 22:54:22 +00:00
Eli Friedman
a526f275e3
Whack a bunch of tests in CodeGenCXX to work on ARM (using ARM ABI). Batch 1 of 3 or so.
...
llvm-svn: 132945
2011-06-13 22:51:21 +00:00
Cameron Zwarich
3ecbd59c27
Rename MergeInType to MergeInTypeForLoadOrStore.
...
llvm-svn: 132940
2011-06-13 21:44:43 +00:00
Cameron Zwarich
8cb90ac456
Remove the HadAVector instance variable and replace it with a use of ScalarKind.
...
llvm-svn: 132939
2011-06-13 21:44:40 +00:00
Cameron Zwarich
1bfab48edb
Remove a vacuous check.
...
llvm-svn: 132938
2011-06-13 21:44:38 +00:00
Cameron Zwarich
5e9a0be4b3
Have SRoA explicitly track the kind of scalar it is promoting. This is pretty
...
spartan right now, but I plan to encode more information in this enum to improve
the correctness and reliability of SRoA. At least this first pass makes it
possible to make VectorTy an actual VectorType.
llvm-svn: 132937
2011-06-13 21:44:35 +00:00
Cameron Zwarich
8deb615d64
Remove an argument that is always true.
...
llvm-svn: 132936
2011-06-13 21:44:31 +00:00
Caroline Tice
1f499bc039
Cleaning up the Python script interpreter: Use the
...
embedded_interpreter.py file rather than keeping it
all in a string and compiling the string (easier to maintain,
easier to read, remove redundancy).
llvm-svn: 132935
2011-06-13 21:33:00 +00:00
Jim Grosbach
dca8531821
Fix coordination for using R4 in Thumb1 as a scratch for SP restore.
...
The logic for reserving R4 for use as a scratch needs to match that for
actually using it. Also, it's not necessary for immediate <=508, so adjust
the value checked.
llvm-svn: 132934
2011-06-13 21:18:25 +00:00
Evan Cheng
871b71247b
Aliased flag options should be directed to stdout, not stderr to be consistent. Patch by Julien Lerouge.
...
llvm-svn: 132931
2011-06-13 20:45:54 +00:00
Caroline Tice
6e8dc334db
More prompt-timing cleanups: Make multi-line expressions
...
use the asynchronous stream mechanism rather than writing
directly to the Debugger's output & error streams.
llvm-svn: 132930
2011-06-13 20:20:29 +00:00
Bill Wendling
c8be05ace5
Add compatibility version when compiling the Apple way.
...
<rdar://problem/9600408>
llvm-svn: 132929
2011-06-13 20:14:37 +00:00
Daniel Dunbar
47e71a3711
build/clang_darwin: Improve archs check to verify we can not just recognize
...
arch, but actually compile a file with that arch.
llvm-svn: 132928
2011-06-13 19:18:23 +00:00