[Bug c/29299] New: gcc "used" attribute has no effect on local-scope static variables
jeremy at goop dot 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
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
More information about the Gcc-bugs