summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/const-init.c
Commit message (Collapse)AuthorAgeFilesLines
* A constant initializer never matches the type of the variable it'sJohn McCall2010-09-031-1/+6
| | | | | | | initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. llvm-svn: 112992
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Use intptr_t from stdint.h (in freestanding mode) instead of redefining it hereKen Dyck2009-11-221-2/+2
| | | | | | with __INTPTR_TYPE__. llvm-svn: 89609
* Make __func__ and friends work correctly within the initializer for a staticEli Friedman2009-11-141-0/+6
| | | | | | local variable. llvm-svn: 88766
* Obvious fix for PR5474.Eli Friedman2009-11-131-0/+6
| | | | llvm-svn: 88696
* Removed math.h include, as Windows math.h has a compile error.John Thompson2009-10-151-1/+1
| | | | llvm-svn: 84160
* In VC++, the *printf functions put an extra "0" in the exponent partMike Stump2009-10-081-5/+5
| | | | | | | of a floating point number. This add regular expressions to account for this. Patch by John Thompson. llvm-svn: 83581
* FileCheckize test case.Benjamin Kramer2009-10-021-26/+22
| | | | llvm-svn: 83244
* Don't update the struct alignment when adding fields to a packed struct. ↵Anders Carlsson2009-10-021-3/+10
| | | | | | Fixes PR5118. llvm-svn: 83235
* When building constant structs, check if the resulting LLVM struct will be ↵Anders Carlsson2009-10-021-1/+7
| | | | | | bigger than the record layout size and use a packed struct if that's the case. Fixes PR5108. llvm-svn: 83230
* Update this test to expect the "inbounds" keyword, which LLVM's constantDan Gohman2009-09-111-1/+1
| | | | | | folder is now automatically adding. llvm-svn: 81491
* Enable the new struct type builder now that the constant struct builder ↵Anders Carlsson2009-07-271-2/+2
| | | | | | works. (The old code will still be there until we know that everything works well. llvm-svn: 77190
* Enable the new constant struct builder by default. The old code is still in ↵Anders Carlsson2009-07-271-2/+2
| | | | | | place but will be removed shortly. The new struct builder works on big endian systems. llvm-svn: 77185
* Remove the -arch option from clang-cc: for all practical purposes, it's Eli Friedman2009-05-191-1/+1
| | | | | | redundant with -triple. llvm-svn: 72108
* Fix for PR4108: be a bit looser with the casts that we accept in Eli Friedman2009-04-301-0/+5
| | | | | | constant initializers. llvm-svn: 70483
* Move where block-related variables are initialized so that block Eli Friedman2009-03-281-2/+2
| | | | | | types don't get generated when blocks aren't used. llvm-svn: 67898
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* adjust to changes in the mainline llvm .ll printer.Chris Lattner2009-03-011-6/+6
| | | | llvm-svn: 65745
* Allow constant initializers to reference their defining decl.Daniel Dunbar2009-02-251-0/+11
| | | | | | - PR3662. llvm-svn: 65472
* Remove a FIXME; I was mistaken in believing gcc rejected this.Daniel Dunbar2009-02-251-1/+0
| | | | llvm-svn: 65420
* Fix IRgen of constant expressions referring to external/staticDaniel Dunbar2009-02-241-0/+7
| | | | | | | variables. - PR3657. llvm-svn: 65381
* Cleanp code with some recent suggestions.Mike Stump2009-02-221-2/+2
| | | | llvm-svn: 65285
* Force arch for these test cases.Daniel Dunbar2009-02-211-1/+1
| | | | llvm-svn: 65252
* Handle constant int -> ptr casts of lvalue results.Daniel Dunbar2009-02-201-0/+3
| | | | | | - PR3463 (again). llvm-svn: 65133
* Extend Evaluate() to fold (int) <pointer type>.Daniel Dunbar2009-02-191-0/+28
| | | | | | | | | | - PR3463, PR3398, <rdar://problem/6553401> crash on relocatable symbol addresses as constants in static locals. - There are many more scenarious we could handle (like arithmetic on such an int) but this is the main use case. llvm-svn: 65074
* Evaluate ==,!= for complex types.Daniel Dunbar2009-01-291-3/+28
| | | | llvm-svn: 63280
* Implement basic _Complex integer constant folding.Daniel Dunbar2009-01-281-0/+3
| | | | | | | - Merged into single ComplexEvaluator, these share too much logic to be worth splitting for float/int (IMHO). Will split on request. llvm-svn: 63248
* Add test for PR2992.Anders Carlsson2008-11-221-0/+8
| | | | llvm-svn: 59861
* Fix const-init test caseDaniel Dunbar2008-08-051-3/+3
| | | | | | - Use -verify and added expected warnings for EXTWARN change. llvm-svn: 54342
* Add codegen support for a few more kinds of initializer constant Eli Friedman2008-05-291-1/+3
| | | | | | expressions. llvm-svn: 51677
* Some const initializer tests for stuff I just committed.Eli Friedman2008-02-211-0/+13
llvm-svn: 47442
OpenPOWER on IntegriCloud