Ted Kremenek
f9f9420303
GRExprEngine: Don't try to reason about the size of 'void' for the return type
...
of messages sent to nil.
llvm-svn: 68683
2009-04-09 05:45:56 +00:00
Ted Kremenek
042befd6d6
Another ParentMap bug: only the right side of a comma expression is consumed.
...
llvm-svn: 68680
2009-04-09 05:34:31 +00:00
Ted Kremenek
c3f7c85129
Fix another regression introduced by changes to the analyzer's reasoning about
...
nil receivers in message expressions.
llvm-svn: 68672
2009-04-09 04:06:51 +00:00
Sanjiv Gupta
cdfdc79b70
r68576 unconverd a bug in PIC16 port (Thanks to Dan Gohman) where we were custom lowering an ADD to ADDC.
...
llvm-svn: 68671
2009-04-09 04:03:43 +00:00
Dan Gohman
0e8d199f91
Generalize ExtendUsesToFormExtLoad to be usable for ANY_EXTEND,
...
in addition to ZERO_EXTEND and SIGN_EXTEND. Fix a bug in the
way it checked for live-out values, and simplify the way it
find users by using SDNode::use_iterator's (relatively) new
features. Also, make it slightly more permissive on targets
with free truncates.
In SelectionDAGBuild, avoid creating ANY_EXTEND nodes that are
larger than necessary. If the target's SwitchAmountTy has
enough bits, use it. This exposes the truncate to optimization
early, enabling more optimizations.
llvm-svn: 68670
2009-04-09 03:51:29 +00:00
Owen Anderson
3a888f639e
Convert TargetRegisterInfo's super-register checking to use a pre-computed hash table just like subregister checking does.
...
llvm-svn: 68669
2009-04-09 03:50:16 +00:00
Nick Lewycky
8b4db2da2b
Fix pointer casting problem.
...
llvm-svn: 68668
2009-04-09 03:10:03 +00:00
Dan Gohman
e6db8ca5eb
Don't copy the operand of a SwitchInst into virtual registers as
...
eagerly. This helps avoid CopyToReg nodes in some cases where they
aren't needed, and also helps subsequent optimizer heuristics
in cases where the extra nodes would cause the node to appear
to have multiple results. This doesn't have a significant impact
currently; it'll help an upcoming change.
llvm-svn: 68667
2009-04-09 02:33:36 +00:00
Dan Gohman
f15454866c
Fix grammaros in comments.
...
llvm-svn: 68666
2009-04-09 02:06:09 +00:00
Daniel Dunbar
f67829ac6a
Make -include, -imacros paths absolute in Frontend.
...
- Otherwise paths will be resolved relative to the main input file,
which is incorrect.
- I don't know how to make a reasonable test case for this with our
testing infrastructure.
- PR3395
llvm-svn: 68665
2009-04-09 00:51:16 +00:00
Misha Brukman
f02d62deeb
Fixed compiler warning.
...
llvm-svn: 68664
2009-04-09 00:42:37 +00:00
Daniel Dunbar
3f48987069
Add sys::Path::makeAbsolute().
...
llvm-svn: 68663
2009-04-09 00:33:08 +00:00
Ted Kremenek
d937ed386e
Refactor/cleanup reasoning of nil receivers in message expressions.
...
llvm-svn: 68661
2009-04-09 00:00:02 +00:00
Daniel Dunbar
d067f7fbef
Driver: Split out CPP specific options for clang so that we don't end
...
up adding them twice when running with -no-integrated-cpp or
-save-temps.
- <rdar://problem/6766636> -save-temps falls over with prefix headers
llvm-svn: 68660
2009-04-08 23:54:23 +00:00
Steve Naroff
b47acdb2e5
Fix <rdar://problem/6770998> make cast of super illegal (again:-)
...
llvm-svn: 68659
2009-04-08 23:52:26 +00:00
Anders Carlsson
479e6fc7a7
Use the new EmitCallArgs function. No indented functionality change.
...
llvm-svn: 68652
2009-04-08 23:13:16 +00:00
Daniel Dunbar
6eaebd0934
Force triple for these tests.
...
llvm-svn: 68651
2009-04-08 23:02:51 +00:00
Chris Lattner
aa55f949ac
add driver support for -Wno-trigraphs
...
llvm-svn: 68650
2009-04-08 22:38:30 +00:00
Chris Lattner
2632dda471
add support for -Wtrigraphs and -Wno-trigraphs.
...
llvm-svn: 68649
2009-04-08 22:37:15 +00:00
Douglas Gregor
912fa42dd9
Fix BitstreamReader's GetCurrentBitNo to return the correct bit number, and stop JumpToBit from covering up its mistakes
...
llvm-svn: 68648
2009-04-08 22:26:47 +00:00
Devang Patel
3396d7ef9d
If subprogram type is not tagged as DW_TAG_subroutine_type then use it directly as a return value type.
...
llvm-svn: 68647
2009-04-08 22:18:45 +00:00
Fariborz Jahanian
9c9f742ee2
Added a FIXME.
...
llvm-svn: 68646
2009-04-08 21:54:52 +00:00
Rafael Espindola
3b2df10c9e
Re-apply 68552.
...
Tested by bootstrapping llvm-gcc and using that to build llvm.
llvm-svn: 68645
2009-04-08 21:14:34 +00:00
Chris Lattner
d2e61fbc64
add driver headers to xcode proj
...
llvm-svn: 68642
2009-04-08 20:57:57 +00:00
Chris Lattner
db436ae9e4
implement -imacros support in driver.
...
llvm-svn: 68641
2009-04-08 20:57:44 +00:00
Chris Lattner
e01d82b81f
finish the implementation of -imacros. The driver still needs to be hooked up.
...
llvm-svn: 68640
2009-04-08 20:53:24 +00:00
Anders Carlsson
60ce3fe140
Add code for emitting call arguments (not used yet).
...
llvm-svn: 68639
2009-04-08 20:47:54 +00:00
Anders Carlsson
03a409feda
We weren't generating correct code for calls to variadic member functions.
...
llvm-svn: 68635
2009-04-08 20:31:57 +00:00
Daniel Dunbar
17b36271e7
Fix buffer overrun when laying out synthesized ivars.
...
llvm-svn: 68634
2009-04-08 20:18:15 +00:00
Chris Lattner
94f4248086
According to the GCC man page, all -imacros are included before any -include's.
...
llvm-svn: 68633
2009-04-08 20:15:42 +00:00
Chris Lattner
21f47dd8ac
properly escape filenames when generating implicit #includes, this handles
...
things like " in paths etc. Found by inspection.
llvm-svn: 68632
2009-04-08 20:10:57 +00:00
Fariborz Jahanian
fc58ca4af6
Fixed a problem using property syntax on a 'super'
...
used as receiver.
llvm-svn: 68631
2009-04-08 19:50:10 +00:00
Devang Patel
2ac33a08d5
Use presumed location to get line number info.
...
llvm-svn: 68630
2009-04-08 19:47:04 +00:00
Ted Kremenek
5451c60f5a
Enhance analyzer reasoning about sending messages to nil. A nil receiver returns 0 for scalars of size <= sizeof(void*).
...
llvm-svn: 68629
2009-04-08 18:51:08 +00:00
Ted Kremenek
d43aaad1b1
Fix bug in ParentMap::isConsumedExpr. A BinaryOperator always "consumes" the
...
value of its subexpressions unless it is a comma (in which case it doesn't
consume the left subexpression).
llvm-svn: 68628
2009-04-08 18:49:36 +00:00
Chris Lattner
58a1eb0ba0
reject the #__include_macros directive unless it comes from the
...
predefines buffer.
llvm-svn: 68627
2009-04-08 18:46:40 +00:00
Chris Lattner
14a7f39733
Add initial support for -imacros. Right now it has the same semantics as
...
-include, but that will be fixed soon.
llvm-svn: 68625
2009-04-08 18:24:34 +00:00
Daniel Dunbar
17ddaa677e
More fixes to builtin preprocessor defines.
...
- Add -static-define option driver can use when __STATIC__ should be
defined (instead of __DYNAMIC__).
- Don't set __OPTIMIZE_SIZE__ on Os, __OPTIMIZE_SIZE__ is tied to Oz.
- Set __NO_INLINE__ following GCC 4.2.
- Set __GNU_GNU_INLINE__ or __GNU_STDC_INLINE__ following GCC 4.2.
- Set __EXCEPTIONS for Objective-C NonFragile ABI.
- Set __STRICT_ANSI__ for standard conforming modes.
- I added a clang style test case in utils for this, but its not
particularly portable and I don't think it belongs in the test
suite.
llvm-svn: 68621
2009-04-08 18:03:55 +00:00
Bob Wilson
8462791237
Add testcase for PR3795.
...
llvm-svn: 68620
2009-04-08 18:00:55 +00:00
Bob Wilson
866c174f79
Fix PR3795: Apply Dan's suggested fix for
...
ARMTargetLowering::isLegalAddressingMode.
llvm-svn: 68619
2009-04-08 17:55:28 +00:00
Ted Kremenek
b58a9058a2
Accommodate empty string for build type. This was previously causing an error
...
when generating an Xcode project using the CMake files (thanks to Doug Gregor
for identifying the issue).
llvm-svn: 68618
2009-04-08 17:28:16 +00:00
Steve Naroff
ea4c780da1
Sema::CheckConditionalOperands(): Soften pointer/integer mismatch from error->warning.
...
Fixes <rdar://problem/6762239> [sema] gcc incompatibility; error on incompatible operand types in ?:.
llvm-svn: 68617
2009-04-08 17:05:15 +00:00
Douglas Gregor
3da1d240ff
Use 8 instead of CHAR_BIT
...
llvm-svn: 68616
2009-04-08 16:57:40 +00:00
Daniel Dunbar
d92123fd2a
Make sure value is initialized when built w/o asserts.
...
llvm-svn: 68615
2009-04-08 16:23:09 +00:00
Duncan Sands
5a82613db0
Soft float support for FREM.
...
llvm-svn: 68614
2009-04-08 16:20:57 +00:00
Misha Brukman
680336d12f
* Fixed calls to APInt ctor to work for negative values on Darwin/x86
...
* Converted C-style casts to C++-style casts
llvm-svn: 68613
2009-04-08 16:17:23 +00:00
Douglas Gregor
b53c0c29c0
-Wmissing-prototypes shouldn't complain about main() missing a prototype.
...
Fixes <rdar://problem/6759522>
llvm-svn: 68611
2009-04-08 15:21:36 +00:00
Douglas Gregor
006dfc8a9f
Add BitstreamWriter::GetCurrentBitNo, to report where we are in the output bitstream
...
llvm-svn: 68610
2009-04-08 15:18:21 +00:00
Duncan Sands
fb438caac6
Soft float support for undef. Reported by Xerxes Rånby.
...
llvm-svn: 68607
2009-04-08 13:33:37 +00:00
Rafael Espindola
d173f4237d
Avoid a hard coded constant.
...
llvm-svn: 68603
2009-04-08 08:09:33 +00:00