Eli Friedman
cad9638bd9
Fix enumeration in switch warnings, plus misc comment changes. No
...
behavior change.
llvm-svn: 65658
2009-02-27 23:04:43 +00:00
Mike Stump
537abb0dec
Fix PR3612. We ensure that we add builtins to the GlobalDeclMap and
...
we ensure that things added to the module can be found even when they
are not in GlobalDeclMap. The later is for increased flexibility,
should someone want to do something tricky like extern "Ada" in the
same module.
llvm-svn: 65657
2009-02-27 22:42:30 +00:00
Fariborz Jahanian
f5c1c923e8
Diagnose gc attribute mismatch of property and its ivar.
...
llvm-svn: 65656
2009-02-27 22:38:11 +00:00
Stuart Hastings
c08336adc3
Testcase to insure C strings go to the cstring
...
section. Darwin-specific.
llvm-svn: 65655
2009-02-27 22:35:12 +00:00
Chris Lattner
537fd9337f
Give a code insertion hint for how to fix 'implicit int' warnings and errors.
...
llvm-svn: 65653
2009-02-27 22:31:56 +00:00
Douglas Gregor
72dfbc754e
Fix a typo
...
llvm-svn: 65652
2009-02-27 22:05:23 +00:00
Ted Kremenek
cbcc5e83ca
When retrieving the location of a Node, for MemberExprs use the location of the
...
'.' or '->'.
llvm-svn: 65651
2009-02-27 20:05:10 +00:00
Ted Kremenek
e879e15ed9
In BuildAnonymousStructUnionMemberReference, we shouldn't invalidate OpLoc when
...
building nested member expressions. This location is used to determine the range
of the entire expression, and the expression itself already has its location
inherited from its Base.
This fixes <rdar://problem/6629829>.
llvm-svn: 65650
2009-02-27 19:58:12 +00:00
Douglas Gregor
fe1e11092e
Implement the basic approach for instantiating types, with a lot of FIXME'd
...
stubs for those types we don't yet know how to instantiate (everything
that isn't a template parameter!).
We now instantiate default arguments for template type parameters when
needed. This will be our testbed while I fill out the remaining
type-instantiation logic.
llvm-svn: 65649
2009-02-27 19:31:52 +00:00
Chris Lattner
9605a55076
minor wording changes.
...
llvm-svn: 65648
2009-02-27 19:31:12 +00:00
Chris Lattner
7b0ec8a9df
upgrade various 'implicit int' warnings from an ext-warn to warning when not
...
in C89 mode. This makes it enabled by default instead of only enabled with
-pedantic. Clang defaults to c99 mode, so people will see this more often
than with GCC, but they can always use -std=c89 if they really want c89.
llvm-svn: 65647
2009-02-27 18:53:28 +00:00
Chris Lattner
de39c3efcb
cleanup
...
llvm-svn: 65646
2009-02-27 18:38:20 +00:00
Chris Lattner
e0c511688e
cleanup
...
llvm-svn: 65645
2009-02-27 18:35:46 +00:00
Mike Stump
5b9a3d54b6
Silence warnings.
...
llvm-svn: 65644
2009-02-27 18:32:39 +00:00
Devang Patel
843cc34d81
It is possible that subprgoram definition is only encoding return value directly, instsad of an DIArray of all argument types.
...
llvm-svn: 65643
2009-02-27 18:05:21 +00:00
Ted Kremenek
9723bcf60f
When checking printf-arguments for functions with '__attribute__ ((format (printf, X, Y)))'
...
set HasVAListArg to true when 'Y' is 0 (i.e., ignore the data arguments).
This fixes <rdar://problem/6623513>.
llvm-svn: 65642
2009-02-27 17:58:43 +00:00
Douglas Gregor
96977da72c
Clean up and document code modification hints.
...
llvm-svn: 65641
2009-02-27 17:53:17 +00:00
Chris Lattner
7094c15d7e
change a diagnostic message from something pedantically correct but
...
useless to something more vague but hopefully more clear.
rdar://6624173
llvm-svn: 65639
2009-02-27 17:15:01 +00:00
Daniel Dunbar
13454cfcb0
Oops, Ted beat me to it. I'll just play angry god and remove his version!
...
llvm-svn: 65638
2009-02-27 17:10:38 +00:00
Daniel Dunbar
8d42281150
Add coverage of "member of anonymous union redeclares ..." diagnostic.
...
llvm-svn: 65637
2009-02-27 17:07:01 +00:00
Ted Kremenek
dd34e06eeb
Add test case for PR 3675.
...
llvm-svn: 65635
2009-02-27 16:48:08 +00:00
Gabor Greif
97084b8481
group friendship
...
llvm-svn: 65633
2009-02-27 15:46:23 +00:00
Rafael Espindola
000421eade
Refactor TLS code and add some tests. The tests and expected results are:
...
pic | declaration | linkage | visibility |
!pic | declaration | external | default | tls1.ll tls2.ll | local exec
pic | declaration | external | default | tls1-pic.ll tls2-pic.ll | general dynamic
!pic | !declaration | external | default | tls3.ll tls4.ll | initial exec
pic | !declaration | external | default | tls3-pic.ll tls4-pic.ll | general dynamic
!pic | declaration | external | hidden | tls7.ll tls8.ll | local exec
pic | declaration | external | hidden | X | local dynamic
!pic | !declaration | external | hidden | tls9.ll tls10.ll | local exec
pic | !declaration | external | hidden | X | local dynamic
!pic | declaration | internal | default | tls5.ll tls6.ll | local exec
pic | declaration | internal | default | X | local dynamic
The ones marked with an X have not been implemented since local dynamic is not implemented.
llvm-svn: 65632
2009-02-27 13:37:18 +00:00
Gabor Greif
b4b608c617
document ilist_traits
...
llvm-svn: 65631
2009-02-27 13:28:07 +00:00
Gabor Greif
8243b8c1e5
Expand a bit on iplist. If you are more expert on this class, please review!
...
llvm-svn: 65630
2009-02-27 12:02:19 +00:00
Gabor Greif
d5575adbc4
update ilist documentation and add some blurb on ilist_node
...
llvm-svn: 65629
2009-02-27 11:37:41 +00:00
Gabor Greif
97b7ea6a14
update year
...
llvm-svn: 65628
2009-02-27 11:28:46 +00:00
Gabor Greif
3e2acf9508
fix comments
...
llvm-svn: 65627
2009-02-27 09:33:37 +00:00
Gabor Greif
bf4da856e4
Introduce a new technique for merging BasicBlock with Instruction sentinel by superposition.
...
This looks dangerous, but isn't because the sentinel is accessed in special way only,
namely the Next and Prev fields of it, and these are guaranteed to exist.
llvm-svn: 65626
2009-02-27 08:41:37 +00:00
Ted Kremenek
918ae24edd
Update checker build.
...
llvm-svn: 65625
2009-02-27 07:16:04 +00:00
Ted Kremenek
c11fae8977
Update release notes for static analyzer.
...
llvm-svn: 65624
2009-02-27 07:01:32 +00:00
Mikhail Glushenkov
f6281fb47c
'append_cmd' should split its argument.
...
Makes '(append_cmd "-foo a b c")' work.
llvm-svn: 65623
2009-02-27 06:46:55 +00:00
Eli Friedman
988a16b9b8
Change the AST generated for offsetof a bit so that it looks like a
...
normal expression, and change Evaluate and IRGen to evaluate it like a
normal expression. This simplifies the code significantly, and fixes
PR3396.
llvm-svn: 65622
2009-02-27 06:44:11 +00:00
Nick Lewycky
34709f84d8
Silence compiler warning about use of uninitialized variables (in reality these
...
are always set by reference on the path that uses them.) No functional change.
llvm-svn: 65621
2009-02-27 06:37:39 +00:00
Nick Lewycky
d05f6870c3
Fix compiler warning about uninitialized variables. No functional change.
...
llvm-svn: 65620
2009-02-27 06:29:31 +00:00
Ted Kremenek
078b8879e7
Don't report 'Parser Rejects' for conftest files.
...
llvm-svn: 65619
2009-02-27 06:17:38 +00:00
Ted Kremenek
33b220510b
Correctly check for ccc-analyzer in the same directory as scan-build.
...
llvm-svn: 65618
2009-02-27 06:17:05 +00:00
Eli Friedman
8f5f4ea466
Change the way clang generates union types a bit so it plays well
...
with the LLVM C backend.
llvm-svn: 65615
2009-02-27 04:53:40 +00:00
Eli Friedman
8d03f59479
Some additional ICE tests.
...
llvm-svn: 65614
2009-02-27 04:46:32 +00:00
Eli Friedman
4e7a241f49
Some minor improvements to Evaluate.
...
llvm-svn: 65613
2009-02-27 04:45:43 +00:00
Eli Friedman
2c7bd6b0ac
Fix minor memory leak. Add comment describing what we need to do for
...
strict constant initializer checking.
llvm-svn: 65612
2009-02-27 04:17:12 +00:00
Eli Friedman
97e070ed68
Minor cleanup: use getDeclAlignInBytes helper.
...
llvm-svn: 65611
2009-02-27 04:11:37 +00:00
Eli Friedman
90afd3d4aa
Make isICE assert when Evaluate can't evaluate an ICE, as suggested by
...
Daniel. Some minor fixes/cleanup. Allow __builtin_choose_expr,
__real__, and __imag__ in ICEs, following gcc's example.
llvm-svn: 65610
2009-02-27 04:07:58 +00:00
Mike Stump
ee5e376e32
The middle operand in ?: is optional, really.
...
llvm-svn: 65609
2009-02-27 03:16:57 +00:00
Dale Johannesen
4609dbe222
Alignment values for i64 and f64 on ppc64 were wrong,
...
possibly for the reason suggested by the comment.
No wonder it didn't work very well. This unblocks
bootstrap with assertions on ppc.
llvm-svn: 65601
2009-02-27 00:56:35 +00:00
Evan Cheng
2ad43a97cc
Make sure this test passes on linux-ppc.
...
llvm-svn: 65600
2009-02-27 00:51:50 +00:00
Dan Gohman
b2f5eaefbe
Update another test for the LoopInfo::print changes.
...
llvm-svn: 65598
2009-02-27 00:20:19 +00:00
Dan Gohman
b4e896baed
Update this test for the LoopInfo::print changes.
...
llvm-svn: 65597
2009-02-27 00:17:49 +00:00
Dan Gohman
db716652d1
Make LoopInfo::print() identify header, exit, and latch blocks,
...
and print the loop depth.
llvm-svn: 65593
2009-02-27 00:05:54 +00:00
Evan Cheng
8d0b4d4fd6
MachineLICM CSE should match destination register classes; avoid hoisting implicit_def's.
...
llvm-svn: 65592
2009-02-27 00:02:22 +00:00