This is the mail archive of the gcc-patches@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]

gengtype: fix output_code_enum.


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]

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

Attachment: output_type_enum--gengtype--r163593.ChangeLog
Description: Text document

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);

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