This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Gengtype : strange code in output_type_enum
- From: jeremie dot salvucci at free dot fr
- To: jeremie salvucci <jeremie dot salvucci at free dot fr>
- Cc: gcc <gcc at gcc dot gnu dot org>, laurynas <laurynas dot biveinis at gmail dot com>, basile <basile at starynkevitch dot net>
- Date: Fri, 27 Aug 2010 16:20:10 +0200 (CEST)
- Subject: Re: Gengtype : strange code in output_type_enum
We recompiled GCC-trunk r162692 with the following modification :
In function output_type_enum of gcc/gengtype.c, we replaced
- if (s->kind == TYPE_PARAM_STRUCT && s->u.s.line.file != NULL)
+ if (s->kind == TYPE_PARAM_STRUCT && s->u.param_struct.line.file != NULL)
And Gengtype works like before with c,c++, lto enabled.
Do you think we have to submit a one line patch (if yes, could it be reviewed quickly)? We don't know why the old version works, and we think writing u.s.line.file is incorrect for TYPE_PARAM_STRUCT (even if it happens to work by luck), since the union u.param_struct member is the only valid for TYPE_PARAM_STRUCT.
--
Jeremie Salvucci & Basile Starynkevitch