From patchwork Fri Aug 27 18:45:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: gengtype: fix output_code_enum. Date: Fri, 27 Aug 2010 08:45:17 -0000 From: Basile Starynkevitch X-Patchwork-Id: 62865 Message-Id: <1282934717.625.33.camel@glinka> To: gcc-patches@gcc.gnu.org Cc: laurynas.biveinis@gmail.com, jeremie.salvucci@free.fr, Ian Lance Taylor Hello All, A half line patch, discussed on http://gcc.gnu.org/ml/gcc/2010-08/msg00396.html http://gcc.gnu.org/ml/gcc/2010-08/msg00386.html Attached files: the diff the gcc/ChangeLog entry. Ok for trunk? Cheers. [Basile Starynkevitch & Jeremie Salvucci] Index: gcc/gengtype.c =================================================================== --- gcc/gengtype.c (revision 163593) +++ gcc/gengtype.c (working copy) @@ -2531,7 +2531,7 @@ write_types_process_field (type_p f, const struct static void output_type_enum (outf_p of, type_p s) { - 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) { oprintf (of, ", gt_e_"); output_mangled_typename (of, s);