summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-section.c
Commit message (Collapse)AuthorAgeFilesLines
* Added a Subjects clause to the section attribute and made its diagnostics ↵Aaron Ballman2013-12-121-1/+3
| | | | | | more consistent with other attributes. llvm-svn: 197104
* err_attribute_not_string has been subsumed by err_attribute_argument_type.Aaron Ballman2013-07-301-1/+1
| | | | llvm-svn: 187400
* Produce a warning for mismatched section attributes. Completest pr9356.Rafael Espindola2012-05-131-0/+4
| | | | llvm-svn: 156727
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100708
* implement PR6007, diagnosing invalid attribute((section))Chris Lattner2010-01-121-0/+5
| | | | llvm-svn: 93255
* 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
* fix a couple of problems with section attributes:Chris Lattner2009-08-101-0/+10
1. Passing something that isn't a string used to cause: "argument to annotate attribute was not a string literal" make it say "section attribute" instead. 2. Fix the location of the above message to point to the bad argument instead of the section token. 3. Implement rdar://4341926, by diagnosing invalid section specifiers in the frontend rather than letting them slip all the way to the assembler (a QoI win). An example of #3 is that we used to produce something like this: /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Expected comma after segment-name /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Rest of line ignored. 1st junk character valued 46 (.). Daniel improved clang to use llvm_report_error, so now we got: $ clang t.c -c fatal error: error in backend: Global variable 'x' has an invalid section specifier 'sadf': mach-o section specifier requires a segment and section separated by a comma. with no loc info. Now we get: $ clang t.c -fsyntax-only t.c:4:30: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma int x __attribute__((section("sadf"))); ^ which is nice :) llvm-svn: 78586
OpenPOWER on IntegriCloud