summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-naked.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow register variables in naked functions.Nikola Smiljanic2016-09-131-0/+18
| | | | llvm-svn: 281298
* Disallow using function parameters in extended asm inputs or outputs in ↵Hans Wennborg2014-10-081-0/+16
| | | | | | | | | | | | | | naked functions (PR21178) Clang won't emit any prologues for such functions, so it would assert trying to codegen the parameter references. This patch makes Clang check the extended asm inputs and outputs for references to function parameters. Differential Revision: http://reviews.llvm.org/D5640 llvm-svn: 219272
* Allow empty statements in naked functions in addition to ASM statementsEhsan Akhgari2014-09-091-0/+9
| | | | | | | | | | | | Summary: This fixes PR20883. Test Plan: The patch includes an automated test. Reviewers: hansw Differential Revision: http://reviews.llvm.org/D5256 llvm-svn: 217413
* Don't allow inline asm statements to reference parameters in naked functionsHans Wennborg2014-09-041-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D5183 llvm-svn: 217200
* Don't allow non-ASM statements in naked functionsHans Wennborg2014-09-041-1/+9
| | | | | | | | | | Naked functions don't have prologues or epilogues, so doing codegen for anything other than inline assembly would be completely hit or miss. Differential Revision: http://reviews.llvm.org/D5183 llvm-svn: 217199
* Added the attribute name to the err_attribute_wrong_number_arguments ↵Aaron Ballman2013-07-231-2/+2
| | | | | | | | diagnostic for clarity; updated almost all of the affected test cases. Thanks to Fariborz Jahanian for the suggestion! llvm-svn: 186980
* Don't complain about missing return statements for nakedDouglas Gregor2011-07-111-0/+4
| | | | | | functions. Fixes <rdar://problem/9731999>. llvm-svn: 134897
* Pretty up the wrong-number-of-arguments-for-attribute diagnostic byJohn McCall2011-03-021-1/+1
| | | | | | | using a custom plural form. Split out the range diagnostics as their own message. llvm-svn: 126840
* Change the wording of the bad-decl-for-attribute warning and errorJohn McCall2011-01-251-1/+1
| | | | | | to make it clear that we're talking about the declarations and not the types. llvm-svn: 124175
* Add support for attribute((naked)), patch by Zoxc on cfe-commits!Daniel Dunbar2010-09-291-0/+8
- Minor style tweaks by me. llvm-svn: 115056
OpenPOWER on IntegriCloud