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: unassig...@gcc.gnu.org

        ReportedBy: bstar...@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

Reply via email to