[Bug c/58288] Incorrect error message on malformed section attribute syntax.
suckfish at ihug dot co.nz
gcc-bugzilla@gcc.gnu.org
Sat Aug 31 23:55:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58288
--- Comment #2 from Ralph Loader <suckfish at ihug dot co.nz> ---
Created attachment 30735
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30735&action=edit
Patch
Patch to change the error message attached. I also noticed another problem: we
were setting the global variable user_defined_section_attribute for the
following:
int * foo(void) {
static int a __attribute__((section("mysection")));
return &a;
}
But looking at how user_defined_section_attribute is used (in bb-reorder.c), it
appears to apply to just the function, not the local variables.
More information about the Gcc-bugs
mailing list