public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29299]  New: gcc "used" attribute has no effect on local-scope static variables
@ 2006-09-30 15:00 jeremy at goop dot org
  2006-09-30 16:04 ` [Bug c/29299] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jeremy at goop dot org @ 2006-09-30 15:00 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-06-26 11:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-30 15:00 [Bug c/29299] New: gcc "used" attribute has no effect on local-scope static variables jeremy at goop dot org
2006-09-30 16:04 ` [Bug c/29299] " pinskia at gcc dot gnu dot org
2006-09-30 16:46 ` jeremy at goop dot org
2006-09-30 19:40 ` [Bug middle-end/29299] [4.2 Regresion] " pinskia at gcc dot gnu dot org
2006-10-01 23:06 ` mmitchel at gcc dot gnu dot org
2006-10-09 13:05 ` rguenth at gcc dot gnu dot org
2006-10-15 16:34 ` pinskia at gcc dot gnu dot org
2006-10-15 17:03 ` rguenth at gcc dot gnu dot org
2006-10-15 17:32 ` pinskia at gcc dot gnu dot org
2006-10-15 22:33 ` [Bug middle-end/29299] [4.2 Regression] " hubicka at ucw dot cz
2006-10-18 21:40 ` hubicka at gcc dot gnu dot org
2006-10-18 21:54 ` hubicka at gcc dot gnu dot org
2007-06-26 11:52 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).