summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* The attribute nothrow maps to llvm attribute nounwind. Fix testcase.Gabor Greif2008-03-031-1/+1
| | | | llvm-svn: 47841
* Chris added this testcase with r47837. The mail only shows one todo-warning ↵Gabor Greif2008-03-031-2/+2
| | | | | | but I see 3. Strangeness. Correcting lines 16 and 24. llvm-svn: 47840
* fix codegen support for functions that are nothrow and noreturn.Chris Lattner2008-03-031-0/+5
| | | | llvm-svn: 47838
* Add a bunch of attributes, patch by Nuno Lopes.Chris Lattner2008-03-032-0/+46
| | | | llvm-svn: 47837
* Fix http://llvm.org/bugs/show_bug.cgi?id=2103.Steve Naroff2008-02-291-1/+14
| | | | llvm-svn: 47775
* Fix http://llvm.org/bugs/show_bug.cgi?id=2106.Steve Naroff2008-02-291-0/+4
| | | | llvm-svn: 47768
* testcase for attr deprecated, by Nuno Lopes.Chris Lattner2008-02-291-0/+25
| | | | llvm-svn: 47757
* Implement codegen for the following static var init.Lauro Ramos Venancio2008-02-261-1/+6
| | | | | | | | | | | void g() { static char a[10]; static char *b = a; } Now we can compile wget! llvm-svn: 47627
* Fix a bug in ConvertAsmString function. Lauro Ramos Venancio2008-02-261-0/+6
| | | | llvm-svn: 47618
* Convert x86 target specific inline asm constraints to LLVM.Lauro Ramos Venancio2008-02-261-0/+15
| | | | llvm-svn: 47609
* Fix PR2086.Lauro Ramos Venancio2008-02-252-0/+17
| | | | llvm-svn: 47551
* Fix PR2090, a typo in digraph processing.Chris Lattner2008-02-241-0/+15
| | | | llvm-svn: 47540
* add a test caseNate Begeman2008-02-211-0/+7
| | | | llvm-svn: 47455
* Some const initializer tests for stuff I just committed.Eli Friedman2008-02-211-0/+13
| | | | llvm-svn: 47442
* implement codegen support for sizeof(void), fixing PR2080.Chris Lattner2008-02-211-0/+11
| | | | llvm-svn: 47429
* add some semantic checks for address spaces.Chris Lattner2008-02-211-0/+15
| | | | llvm-svn: 47423
* Simplify aggregate initilizer implementation. Use the ↵Lauro Ramos Venancio2008-02-191-0/+1
| | | | | | | | | CodeGenModule::EmitConstantExpr method when possible. Fix mediabench/mpeg2/mpeg2dec test. llvm-svn: 47336
* fix the second half of PR2041: __restrict is ok in c90 mode, even ifChris Lattner2008-02-191-1/+1
| | | | | | restrict isn't. llvm-svn: 47316
* A global without initializer must be emitted as weak.Lauro Ramos Venancio2008-02-191-0/+3
| | | | | | Fix Olden/bh test. llvm-svn: 47292
* Implement multi-dimension array initalizer.Lauro Ramos Venancio2008-02-181-5/+12
| | | | | | Fix McCat/08-main test. llvm-svn: 47286
* Tweak fix for http://llvm.org/bugs/show_bug.cgi?id=2000 to work across typedefs.Steve Naroff2008-02-181-0/+10
| | | | llvm-svn: 47269
* Fix PR2042. One remaining issue: we don't currently diagnoseChris Lattner2008-02-173-2/+8
| | | | | | | | | int foobar(int); int foobar() {} which requires ifdef'ing out a testcase in predefined-function.c. llvm-svn: 47236
* Implemnt isVariablyModifiedType correctly.Eli Friedman2008-02-171-0/+3
| | | | llvm-svn: 47233
* implement codegen support for aggregates casted to void.Chris Lattner2008-02-161-1/+6
| | | | llvm-svn: 47226
* Implement extern block var.Lauro Ramos Venancio2008-02-161-0/+6
| | | | llvm-svn: 47223
* Add more testsAnders Carlsson2008-02-161-8/+35
| | | | llvm-svn: 47217
* Fix CheckEndOfDirective to diagnose lines that contain macros that expand to Chris Lattner2008-02-161-0/+5
| | | | | | | zero tokens. This fixes PR2045, thanks to Neil for finding another incredibly subtle corner case :) llvm-svn: 47203
* Make sizeof and __alignof work correctly with packed structs.Anders Carlsson2008-02-161-0/+37
| | | | llvm-svn: 47202
* Fix PR2041: restrict is not a keyword in c90.Chris Lattner2008-02-151-0/+3
| | | | llvm-svn: 47160
* Get rid of outdated code that masks type errors. Fixes PR2036.Eli Friedman2008-02-151-0/+2
| | | | llvm-svn: 47154
* Nevermind, these tests work... I messed up my testing.Eli Friedman2008-02-151-4/+2
| | | | llvm-svn: 47153
* Partial fix for struct compatibility; there's still something messy Eli Friedman2008-02-151-0/+19
| | | | | | going on with mixing scopes, though. llvm-svn: 47152
* A much better fix for http://llvm.org/bugs/show_bug.cgi?id=1987.Steve Naroff2008-02-141-3/+7
| | | | llvm-svn: 47103
* Fix a minor bug in isNullPointerConstant triggered by the linux Eli Friedman2008-02-131-0/+3
| | | | | | | | | tgmath.h. Note that there is another issue with tgmath.h, so mandel.c still doesn't work. llvm-svn: 47069
* Make typechecking for enum+int compatibility stricter.Eli Friedman2008-02-121-0/+4
| | | | llvm-svn: 47005
* Fix type compatibility between constant and variable arrays.Eli Friedman2008-02-121-0/+5
| | | | llvm-svn: 47003
* Allow the parser to detect invalid DeclSpec's. This fixes ↵Steve Naroff2008-02-121-1/+5
| | | | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=1987. This commit only "guards" the call to ParseDeclarationSpecifiers() in ParseDeclarationOrFunctionDefinition(). We could consider guarding all calls, however this is a bit radical (since it effectively stops parsing the declaration once we have a bad declspec). Will discuss with Chris tomorrow. llvm-svn: 46984
* Get rid of bogus warnings when the second argument in va_start is either an ↵Anders Carlsson2008-02-111-0/+8
| | | | | | implicit cast expr or a paren expr. llvm-svn: 46950
* Tweak test...Steve Naroff2008-02-111-1/+0
| | | | llvm-svn: 46946
* Fix http://llvm.org/bugs/show_bug.cgi?id=1988.Steve Naroff2008-02-111-0/+27
| | | | | | Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942
* Fix PR1992 by computing the right type for string literals, whichChris Lattner2008-02-114-8/+18
| | | | | | | | is an array type not a pointer type. This requires updating some diags that change and updating the code generator to handle the proper form of strings. llvm-svn: 46941
* Basic codegen test for conditional with void*.Eli Friedman2008-02-101-0/+6
| | | | llvm-svn: 46940
* Add a couple of sema tests for qualifiers with conditionals containing Eli Friedman2008-02-101-0/+4
| | | | | | void*. llvm-svn: 46939
* Fix PR1999, by emitting a hard error only if an argument declarator is ↵Chris Lattner2008-02-103-7/+10
| | | | | | | | | completely missing. Otherwise, it is an implicit int case, which is valid in c90 and invalid elsewhere, but accepted as an extension. llvm-svn: 46938
* Refine bug fix to Expr::isLvalue (commit r46917).Steve Naroff2008-02-101-1/+6
| | | | llvm-svn: 46919
* Change Expr::isLvalue() to allow the "void" type. This fixes bz2000 ↵Steve Naroff2008-02-101-1/+7
| | | | | | | | submitted by Neil Booth. Neil, can you point me to the place in the C99 spec that says this is allowed? I thought Expr::isLvalue() conformed to the spec, which says "C99 6.3.2.1: an lvalue is an expression with an object type or an incomplete type other than void.". Please advise. llvm-svn: 46917
* Behave correctly if a constraint expression is invalid.Anders Carlsson2008-02-091-0/+5
| | | | llvm-svn: 46910
* Fix <rdar://problem/5733511> clang doesn't emit error for const array.Steve Naroff2008-02-091-0/+8
| | | | llvm-svn: 46905
* A bunch-o changes to fix <rdar://problem/5716046> incomplete implementation ↵Steve Naroff2008-02-083-24/+37
| | | | | | | | of ObjC class warning is incomplete As part of this fix, I made a low-level change to the text diagnostics machinery (to basically avoid printing duplicate source lines/carets when you have multiple diagnostics that refer to the same exact place). For now, this only happens with we don't have a source range (could be extended to support source ranges as well). llvm-svn: 46897
* Fix a bitfield regression. Reported by Anders Carlsson.Lauro Ramos Venancio2008-02-081-0/+9
| | | | llvm-svn: 46889
OpenPOWER on IntegriCloud