[Bug c/29299] New: gcc "used" attribute has no effect on local-scope static variables
jeremy at goop dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 30 15:00:00 GMT 2006
Adding the "used" attribute to locally-scoped static variables has no effect,
and they are not emitted into the output .s file.
I am using this in combination with the "section" attribute so I can collect
the data together; it doesn't matter to me that there's no useful mapping
between the C name and the assembler name.
--
Summary: gcc "used" attribute has no effect on local-scope static
variables
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jeremy at goop dot org
GCC build triplet: i386-redhat-linux
GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29299
More information about the Gcc-bugs
mailing list