public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/46268] New: gengtype warning when GTY(()) markers have no effect
@ 2010-11-02 11:20 dnovillo at gcc dot gnu.org
  2010-11-10  5:03 ` [Bug other/46268] " lauras at gcc dot gnu.org
  2010-12-02 12:50 ` lauras at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2010-11-02 11:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46268

           Summary: gengtype warning when GTY(()) markers have no effect
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dnovillo@gcc.gnu.org


Recently I was adding GTY markers to new structures but had forgotten to
declare a GC root variable.  This was causing gengtype to ignore the structure,
which meant that no ggc_alloc_cleared_XXX function was generated.  This caused
a failure during stage 2 when the compiler warned that no such function had
been declared.

The warning is removed from the immediate cause.  If gengtype had warned me
that I was adding a useless GTY marker, it would have made it easier to fix.

Additionally, the automatic generation of the ggc_... function family is not
very clearly documented in doc/gty.texi.


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

end of thread, other threads:[~2010-12-02 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-02 11:20 [Bug other/46268] New: gengtype warning when GTY(()) markers have no effect dnovillo at gcc dot gnu.org
2010-11-10  5:03 ` [Bug other/46268] " lauras at gcc dot gnu.org
2010-12-02 12:50 ` lauras at gcc dot gnu.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).