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.

Reply via email to