summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/callingconv.c
Commit message (Collapse)AuthorAgeFilesLines
* When we encounter a function-specific attribute in a declaration specifier,Charles Davis2010-02-241-0/+4
| | | | | | | apply it only to the function itself, and never to the return type. Fixes part of PR6408. llvm-svn: 97015
* When comparing two calling conventions after redeclaring a function, compareCharles Davis2010-02-231-0/+4
| | | | | | | the canonical calling conventions instead of comparing the raw calling conventions directly. Fixes PR6361. llvm-svn: 96895
* Standardize the parsing of function type attributes in a way thatJohn McCall2010-02-051-2/+5
| | | | | | | | | | | | 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
* Allow calling convention attributes to apply to types. Patch by Chip Davis!John McCall2010-02-041-0/+12
| | | | llvm-svn: 95291
* 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
* Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGenEli Friedman2009-11-091-0/+4
| | | | | | | | unless we start implementing command-line switches which override the default calling convention, so the effect is mostly to silence unknown attribute warnings.) llvm-svn: 86571
* Diagnose the use of 'fastcall' on functions without prototypes or withJohn McCall2009-11-041-0/+9
| | | | | | varargs prototypes. llvm-svn: 86001
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Add new testNate Begeman2008-03-071-0/+10
llvm-svn: 48018
OpenPOWER on IntegriCloud