This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54809] New: gengtype ignore mark_hook in struct nested in union
- From: "bstarynk at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Oct 2012 08:04:18 +0000
- Subject: [Bug middle-end/54809] New: gengtype ignore mark_hook in struct nested in union
- Auto-submitted: auto-generated
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