summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/attributes.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the weakref attribute. We still produce "alias weak" as ↵Rafael Espindola2010-02-231-0/+6
| | | | | | llvm-gcc does, but are more strict on what uses of weakref we accept. llvm-svn: 96992
* Standardize the parsing of function type attributes in a way thatJohn McCall2010-02-051-0/+7
| | | | | | | | | | | | follows (as conservatively as possible) gcc's current behavior: attributes written on return types that don't apply there are applied to the function instead, etc. Only parse CC attributes as type attributes, not as decl attributes; don't accepet noreturn as a decl attribute on ValueDecls, either (it still needs to apply to other decls, like blocks). Consistently consume CC/noreturn information throughout codegen; enforce this by removing their default values in CodeGenTypes::getFunctionInfo(). llvm-svn: 95436
* 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
* And now a test fix in +Asserts mode, which I broke.Daniel Dunbar2009-11-111-1/+1
| | | | llvm-svn: 86801
* Fix some tests in -Asserts mode.Daniel Dunbar2009-11-111-1/+0
| | | | | | | | | | | | | - FileCheck is a *huuuuge* improvement here. - Still feels like we could use a better tool for this though, either teach llvm-dis to spit out the FileCheck syntax, or provide another tool to turn a .ll into a "matchable" input. - Also on my Christmas list is better FileCheck diagnostics with missing variables or mismatches. llvm-svn: 86800
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-1/+1
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Add codegen for __builtin_abort. Convert to FileCheck.Mike Stump2009-10-061-43/+51
| | | | llvm-svn: 83427
* these tests include section specifiers that aren't valid on the Chris Lattner2009-08-101-1/+1
| | | | | | mac, use an explicit triple. llvm-svn: 78583
* MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar2009-07-251-1/+1
| | | | | | | | - This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) llvm-svn: 77062
* Implement new warning for functions declared 'noreturn' when they fall off ↵Mike Stump2009-07-241-2/+2
| | | | | | the end. llvm-svn: 76932
* make these tests pass with the stack canary stuff even on targets where they ↵Chris Lattner2009-06-281-1/+1
| | | | | | default to on. llvm-svn: 74412
* weak_import should not make definitions have weak linkage.Daniel Dunbar2009-06-051-1/+11
| | | | | | - <rdar://problem/6948703> clang treats weak_import like weak llvm-svn: 72967
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* IRgen support for weak_import.Daniel Dunbar2009-03-061-0/+10
| | | | | | - <rdar://problem/6652110> clang should support weak_import llvm-svn: 66270
* Honor attribute section on static block var decls.Daniel Dunbar2009-02-121-2/+7
| | | | llvm-svn: 64411
* Support __attribute__(section(<name>))Daniel Dunbar2009-02-121-1/+13
| | | | llvm-svn: 64380
* Fix attributes test case to not run clang umpteen times.Daniel Dunbar2008-09-271-9/+11
| | | | llvm-svn: 56733
* Multiple tests in a single test file must be linked with '&&'.Argyrios Kyrtzidis2008-06-121-8/+8
| | | | | | Otherwise, failing tests other than the last one will not be reported. llvm-svn: 52231
* implement the alias attirbute (in both Sema and Codegen)Nuno Lopes2008-06-081-0/+4
| | | | llvm-svn: 52092
* The operand to the visibility attribute is required to be a quoted string, ↵Chris Lattner2008-03-041-2/+2
| | | | | | not a bare identifier. llvm-svn: 47893
* The attribute nothrow maps to llvm attribute nounwind. Fix testcase.Gabor Greif2008-03-031-1/+1
| | | | llvm-svn: 47841
* 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-031-0/+21
llvm-svn: 47837
OpenPOWER on IntegriCloud