This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/54809] New: gengtype ignore mark_hook in struct nested in union


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

             Bug #: 54809
           Summary: gengtype ignore mark_hook in struct nested in union
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bstarynk@gcc.gnu.org


Created attachment 28353
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28353
small example to feed to gengtype

See http://gcc.gnu.org/ml/gcc-patches/2012-10/msg00257.html

The attached basilemarkh.h contains a GTY-ed struct mytest_st with a mark_hook.
That struct mytest_st is a member of some GTY-ed union myutest_un.

No call to the mark_hook is generated by gengtype (both on GCC 4.7 and on 4.8
trunk).

The attached patch to gengtype.c (for GCC 4.8 trunk svn rev 192031) solves the
issue


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]