summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge r101067 from mainline.upstream/release_27Tanya Lattner2010-04-133-6/+24
| | | | | | | | | | fix PR6660/6168: emit padding as zeros instead of undef. Because trailing fields may not be represented in initializer lists, they are being handled as padding and those fields *must* be zero initialized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@101134 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge r100516 from mainline.Tanya Lattner2010-04-061-1/+1
| | | | | | | | | Fix PR 6725. It looks like the copy constructor gets elided during inlining. This bug only shows up with GCC 4.4.1 Release-Asserts build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@100520 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge 98455 from mainline.Tanya Lattner2010-03-301-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@99911 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge 98264 from mainline.Tanya Lattner2010-03-122-8/+20
| | | | | | | fix PR6433, crash on va_arg of typedef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@98310 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge r98192 from mainline.Tanya Lattner2010-03-111-4/+4
| | | | | | | | add DESTDIR support for clang headers, PR6556. Patch by Matthias Klose! git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@98304 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge 97981 from mainline.Tanya Lattner2010-03-112-2/+23
| | | | | | | | add a codegen hack to work around an AST bug, allowing us to compile the code in PR6537. This should be reverted when the ast bug is fixed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@98298 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable static analysis support for C++. It is still under active ↵Ted Kremenek2010-03-081-3/+1
| | | | | | | | | development, and should not be considered generally usable for the 2.7 release. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@97961 91177308-0d34-0410-b5e6-96231b3b80d8
* Create 2.7 release branch.Tanya Lattner2010-03-080-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_27@97937 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove redundant semicolonDouglas Gregor2010-03-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97930 91177308-0d34-0410-b5e6-96231b3b80d8
* Make a note for the C++0x future, when we'll have to revisit the ↵Douglas Gregor2010-03-081-0/+2
| | | | | | jump-diagnostics handling for variables without initializers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97929 91177308-0d34-0410-b5e6-96231b3b80d8
* In C++98/03, an uninitialized variable that has POD class type will beDouglas Gregor2010-03-084-19/+39
| | | | | | | | | | uninitialized. This seems not to be the case in C++0x, where we still call the (trivial) default constructor for a POD class (!). Previously, we had implemented only the C++0x rules; now we implement both. Fixes PR6536. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97928 91177308-0d34-0410-b5e6-96231b3b80d8
* Downgrade errors when trying to catch a pointer or reference toDouglas Gregor2010-03-084-10/+17
| | | | | | | | | | incomplete type to warnings; GCC (and EDG in GCC compatibility mode) permit such handles. Fixes PR6527. (For real this time) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97927 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r97925, it only contained the test updates not the actual fix.Chandler Carruth2010-03-082-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97926 91177308-0d34-0410-b5e6-96231b3b80d8
* Downgrade errors when trying to catch a pointer or reference toDouglas Gregor2010-03-072-3/+3
| | | | | | | | incomplete type to warnings; GCC (and EDG in GCC compatibility mode) permit such handles. Fixes PR6527. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97925 91177308-0d34-0410-b5e6-96231b3b80d8
* Robustify callers that rebuild typename type nodes again NULL returnDouglas Gregor2010-03-073-0/+23
| | | | | | | types. Fixes PR6463. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97924 91177308-0d34-0410-b5e6-96231b3b80d8
* Perform overload resolution when static_cast'ing from aDouglas Gregor2010-03-074-5/+69
| | | | | | | | pointer-to-member-to-derived to a pointer-to-member-to-base. Fixes PR6072. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97923 91177308-0d34-0410-b5e6-96231b3b80d8
* Reference binding via user-defined conversion can compute a bindingDouglas Gregor2010-03-073-14/+44
| | | | | | | | | that is not reference-related (because it requires another implicit conversion to which we can find). Fixes PR6483. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97922 91177308-0d34-0410-b5e6-96231b3b80d8
* Undefine correct macroKovarththanan Rajaratnam2010-03-071-14/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97920 91177308-0d34-0410-b5e6-96231b3b80d8
* implement support for -Wno-deprecated, PR6534. WhileChris Lattner2010-03-076-46/+49
| | | | | | | | I'm in there, change the altivec diagnostics to use 'double' instead of "double" for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97919 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't rely on implicit conversionKovarththanan Rajaratnam2010-03-071-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97916 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵Kovarththanan Rajaratnam2010-03-073-15/+15
| | | | | | chaining it to an existing one git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97913 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assert if PP already contains a valid PP callback. The PP can handle ↵Kovarththanan Rajaratnam2010-03-071-1/+0
| | | | | | multiple callbacks (using PPChainedCallbacks) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97910 91177308-0d34-0410-b5e6-96231b3b80d8
* Add sse4.1 packed min and max intrinsics.Eric Christopher2010-03-071-0/+49
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97907 91177308-0d34-0410-b5e6-96231b3b80d8
* Add load hint instruction intrinsic.Eric Christopher2010-03-071-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97904 91177308-0d34-0410-b5e6-96231b3b80d8
* Add in movntdqa intrinsic for load hint.Eric Christopher2010-03-071-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97903 91177308-0d34-0410-b5e6-96231b3b80d8
* Add in support for dword multiply and fp dot product intrinsics.Eric Christopher2010-03-071-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97902 91177308-0d34-0410-b5e6-96231b3b80d8
* Add in dot product intrinsics for dpps and dppd.Eric Christopher2010-03-071-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97901 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR6294: we should only delay recording nested dynamic classes if theyEli Friedman2010-03-072-1/+14
| | | | | | | | | are lexically nested. Othewise, we never end up recording semantically nested classes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97900 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't turn off mangling in implicitly extern "C" system headers. GCCDouglas Gregor2010-03-072-6/+4
| | | | | | | | | | doesn't do this on any of the major platforms, and we don't really support any of the platforms that do (nor will we actually handle those headers well). Fixes PR6217; see PR6530 for details on what we would need to do to support these platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97899 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix 80 col violation.Tanya Lattner2010-03-071-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97898 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't produce debug info when given -g. Fixes PR6529.Rafael Espindola2010-03-072-1/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97897 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix indentation, use string directly instead of StringRef.Tanya Lattner2010-03-071-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97896 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some weird patch issue.Tanya Lattner2010-03-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97894 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement missing-braces warning and add a test case.Tanya Lattner2010-03-074-1/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97893 91177308-0d34-0410-b5e6-96231b3b80d8
* disable these dirs which rely on dynamic linking on mingw/cygwinChris Lattner2010-03-071-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97892 91177308-0d34-0410-b5e6-96231b3b80d8
* add mblaze target support, patch by Wesley Peck!Chris Lattner2010-03-061-0/+131
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97890 91177308-0d34-0410-b5e6-96231b3b80d8
* on both the mac and linux, /usr/local/include is treated Chris Lattner2010-03-061-1/+1
| | | | | | | | as a "C++ Friendly" system header directory. This fixes PR6523. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97885 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename the new Iterator objects and raise an assertion instead of returning ↵Benjamin Kramer2010-03-061-10/+12
| | | | | | invalid objects when the key is out of range. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97881 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the python bindings for recent changes in the CIndex API.Benjamin Kramer2010-03-061-88/+88
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97880 91177308-0d34-0410-b5e6-96231b3b80d8
* Lowercase for consistencyKovarththanan Rajaratnam2010-03-063-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97878 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix _MM_FROUND_NEARBYINT and move rounding intrinsics to macros.Eric Christopher2010-03-061-25/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97874 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a message to these asserts.Benjamin Kramer2010-03-061-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97873 91177308-0d34-0410-b5e6-96231b3b80d8
* Use static method in GlobalValueRafael Espindola2010-03-061-11/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97872 91177308-0d34-0410-b5e6-96231b3b80d8
* PR6515: Implement __builtin_signbit and friends.Eli Friedman2010-03-063-0/+23
| | | | | | | | | I'm reasonably sure my implementation is correct, but it would be nice if someone could double-check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97864 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow use of byref (__block attributed) arrays insideFariborz Jahanian2010-03-062-2/+6
| | | | | | | | the block. Fixes radar 7671883. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97863 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement __builtin_dwarf_sp_column for i386 (Darwin and not), x86-64 (all),John McCall2010-03-065-0/+120
| | | | | | | | | and ARM. Implement __builtin_init_dwarf_reg_size_table for i386 (both) and x86-64 (all). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97859 91177308-0d34-0410-b5e6-96231b3b80d8
* When declaring a catch block in C++, make sure that the type beingDouglas Gregor2010-03-052-5/+66
| | | | | | | caught can be copy-initialized and destructed. Fixes PR6518. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97853 91177308-0d34-0410-b5e6-96231b3b80d8
* Augment __has_feature to report that Clang supports adding attribute 'unused'Ted Kremenek2010-03-052-1/+10
| | | | | | to an Objective-C instance variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97850 91177308-0d34-0410-b5e6-96231b3b80d8
* Check if 'Unit' is NULL before trying to iterate over the diagnostics.Ted Kremenek2010-03-051-1/+2
| | | | | | | This obviates a null dereference that can occur when 'NumErrors' is not zero. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97849 91177308-0d34-0410-b5e6-96231b3b80d8
* Add clang version to crashtracer string.Ted Kremenek2010-03-051-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97848 91177308-0d34-0410-b5e6-96231b3b80d8