summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Speculatively revert r110610 " Make ObjCInterfaceDecl redeclarable,Douglas Gregor2010-08-111-1/+1
| | | | | | | | and create separate decl nodes for forward declarations and the definition," which appears to be causing significant Objective-C breakage. llvm-svn: 110803
* tests: Add a missing -Xclang.Daniel Dunbar2010-08-111-1/+1
| | | | llvm-svn: 110776
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-111-0/+14
| | | | | | | - We don't recognize double or NEON register names yet -- we don't have the infrastructure to generate the right clobbers for them. llvm-svn: 110775
* ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.Daniel Dunbar2010-08-111-0/+8
| | | | llvm-svn: 110774
* Improve our handling of user-defined conversions when computingDouglas Gregor2010-08-113-16/+53
| | | | | | | | | | | | | | | | | | | | | | implicit conversion sequences. In particular, model the "standard conversion" from a class to its own type (or a base type) directly as a standard conversion in the normal path *without* trying to determine if there is a valid copy constructor. This appears to match the intent of C++ [over.best.ics]p6 and more closely matches GCC and EDG. As part of this, model non-lvalue reference initialization via user-defined conversion in overloading the same way we handle it in InitializationSequence, separating the "general user-defined conversion" and "conversion to compatible class type" cases. The churn in the overload-call-copycon.cpp test case is because the test case was originally wrong; it assumed that we should do more checking for copy constructors that we actually should, which affected overload resolution. Fixes PR7055. Bootstrapped okay. llvm-svn: 110773
* Remove 256-bit cast built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-111-6/+0
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110771
* Make this test a little less dependent on exact optimizer results.John McCall2010-08-111-6/+6
| | | | llvm-svn: 110770
* Remove 256-bit unpack built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-111-4/+0
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110768
* Remove 256-bit shuffle built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-111-2/+0
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110766
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-111-0/+45
| | | | llvm-svn: 110764
* Fix a bug in @finally emission in both the fragile and non-fragile EH schemesJohn McCall2010-08-111-0/+51
| | | | | | | | | where we weren't accounting for the possibility that a @finally block might have internal cleanups and therefore might write to the cleanup destination slot. Fixes <rdar://problem/8293901>. llvm-svn: 110760
* Add test case for <rdar://problem/8288645>. While this is fixed in trunk, ↵Ted Kremenek2010-08-101-0/+8
| | | | | | | | we previously were getting the following assertion failure not too long ago: Assertion failed: (getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one.") llvm-svn: 110740
* Something's wrong with this test on other platforms. I'll probably need to ↵John Thompson2010-08-101-23/+0
| | | | | | simplify it later. For now revert. llvm-svn: 110738
* Fix test to not depend on objc.h header.Fariborz Jahanian2010-08-101-2/+0
| | | | llvm-svn: 110729
* Test case for llvm r110712.Devang Patel2010-08-101-0/+8
| | | | llvm-svn: 110713
* tests: Avoid unnecessary redirection.Daniel Dunbar2010-08-101-2/+2
| | | | llvm-svn: 110709
* tests: Tests which include system headers must use the driver, not -cc1.Daniel Dunbar2010-08-101-3/+3
| | | | llvm-svn: 110708
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-101-0/+23
| | | | | | we have the full fix. llvm-svn: 110706
* When initializing a static local, pop the guard-abort EH cleanup afterJohn McCall2010-08-101-1/+1
| | | | | | the variable is fully initialized. llvm-svn: 110704
* an objective-c++ test for -Wstrict-selector-matchFariborz Jahanian2010-08-101-0/+20
| | | | | | (radar 8127244). llvm-svn: 110702
* Do not use DIGlobalVariable to emit debugging information for enums.Devang Patel2010-08-101-0/+8
| | | | llvm-svn: 110697
* Fix a spurious warning when message sent to qualified-idFariborz Jahanian2010-08-101-0/+5
| | | | | | type receiver (pr7861). llvm-svn: 110696
* Driver/FreeBSD: Infer the right arch name in the presence of -m32,-m64, for theDaniel Dunbar2010-08-101-6/+20
| | | | | | | cases we care about. - This is eventually going to be unified outside the host specific code. llvm-svn: 110693
* Teach the libclang cursor visitor to walk into the type informationDouglas Gregor2010-08-101-1/+14
| | | | | | | | provided by __builtin_types_compatible_p and __builtin_va_arg expressions, now that Abramo has added proper type-source information to those expressions. llvm-svn: 110681
* Even if a constant's evaluated value is used, emit debug info for the ↵Devang Patel2010-08-101-0/+5
| | | | | | constant variable. llvm-svn: 110660
* Fix redefinition of typedefs of fixable variably-modified array types; shouldEli Friedman2010-08-101-1/+6
| | | | | | fix an issue compiling <windows.h>. llvm-svn: 110651
* Make replicate intrinsics use shufflevector instead of dup builtins, also ↵Bruno Cardoso Lopes2010-08-101-3/+0
| | | | | | remove the dup builtins llvm-svn: 110646
* There is no need to pubish file static variable's name. Do not rely on this ↵Devang Patel2010-08-101-1/+1
| | | | | | code gen bug to check whether debug info is generated for such variables or not. llvm-svn: 110640
* Implements gcc's -Wstrict-selector-match.Fariborz Jahanian2010-08-091-0/+75
| | | | | | (radar 8127244). llvm-svn: 110622
* When attempting to recover from a failed unqualified name lookup, makeDouglas Gregor2010-08-091-0/+6
| | | | | | sure to clear out the LookupResult structure after looking into each class. llvm-svn: 110615
* - Make ObjCInterfaceDecl redeclarable, and create separate decl nodes for ↵Sebastian Redl2010-08-091-1/+1
| | | | | | | | | | forward declarations and the definition. - Eagerly create ObjCInterfaceTypes for declarations. - The two above changes lead to a 0.5% increase in memory use and no speed regression when parsing Cocoa.h. On the other hand, now chained PCH works when there's a forward declaration in one PCH and the interface definition in another. - Add HandleInterestingDecl to ASTConsumer. PCHReader passes the "interesting" decls it finds to this function instead of HandleTopLevelDecl. The default implementation forwards to HandleTopLevelDecl, but ASTUnit's handler for example ignores them. This fixes a potential crash when lazy loading of PCH data would cause ASTUnit's "top level" declaration collection to change while being iterated. llvm-svn: 110610
* Added vecreturn attribute parsing.John Thompson2010-08-091-0/+35
| | | | llvm-svn: 110609
* Change warning about incomplete parsing of C++ default arg to error and ↵Argyrios Kyrtzidis2010-08-091-0/+4
| | | | | | provide a test case; thanks Doug! llvm-svn: 110603
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-091-0/+8
| | | | llvm-svn: 110596
* Allow EvalBinOpNN to handle expressions of the form $a+$b if $b can be ↵Jordy Rose2010-08-091-0/+18
| | | | | | reduced to a constant. llvm-svn: 110592
* Warn if class object does not implement qualifiedFariborz Jahanian2010-08-091-2/+2
| | | | | | id's protocols. Fixes radar 8154220. llvm-svn: 110583
* Remove a FIXME.Argyrios Kyrtzidis2010-08-091-4/+3
| | | | llvm-svn: 110571
* Complete PCH support for ObjCPropertyImplDecl.Argyrios Kyrtzidis2010-08-092-1/+11
| | | | llvm-svn: 110570
* Support ObjC implementation decls for PCH.Argyrios Kyrtzidis2010-08-092-0/+20
| | | | | | Strictly speaking, implementations don't go in headers but there's no law against it. llvm-svn: 110567
* Revert r110440, the fix for PR4897. Chris claims to have a better way.Douglas Gregor2010-08-081-11/+0
| | | | llvm-svn: 110544
* Fix a crash on template delete operators.Chandler Carruth2010-08-081-0/+12
| | | | llvm-svn: 110542
* Make this test check a few more cases which didn't work correctly beforeEli Friedman2010-08-081-1/+27
| | | | | | r110526. llvm-svn: 110540
* Thread local variables aren't considered common linkage.Eric Christopher2010-08-081-0/+1
| | | | llvm-svn: 110530
* PR7800: both virtual and non-virtual bases must be marked as used for VTTs.Eli Friedman2010-08-071-0/+16
| | | | llvm-svn: 110526
* Push location through the MacroUndefined PPCallback and use it to print ↵Benjamin Kramer2010-08-071-0/+8
| | | | | | #undefs in -dD mode. (PR7818) llvm-svn: 110523
* Fix an Objective-C crasher, PR7839.Douglas Gregor2010-08-071-0/+4
| | | | llvm-svn: 110515
* Add some more tests for reference binding of Objective-C objectsDouglas Gregor2010-08-071-1/+11
| | | | llvm-svn: 110514
* Allow reference binding of a reference of Objective-C object type toDouglas Gregor2010-08-072-0/+38
| | | | | | | | an lvalue of another, compatible Objective-C object type (e.g., a subclass). Introduce a new initialization sequence step kind to describe this binding, along with a new cast kind. Fixes PR7741. llvm-svn: 110513
* Inline a special case of EmitAggregateCopy into EmitNullInitializationJohn McCall2010-08-071-0/+18
| | | | | | | | | to avoid the awesome-but-wrong-in-this-case assertion in the canon EAC. Fixes PR7834. Also fix a subtle address-space bug in the memset path. llvm-svn: 110511
* Correct -ftrapv to trap on errors, instead of calling theChris Lattner2010-08-071-24/+3
| | | | | | | | | | | | | | | | __overflow_handler entrypoint that David Chisnall made up. Calling __overflow_handler is not part of the contract of -ftrapv provided by GCC, and should never have been checked in in the first place. According to: http://permalink.gmane.org/gmane.comp.compilers.clang.devel/8699 David is using this for some of arbitrary precision integer stuff or something, which is not an appropriate thing to implement on this. llvm-svn: 110490
OpenPOWER on IntegriCloud