Commit 6ba2db5e by Basile Starynkevitch Committed by Basile Starynkevitch

gengtype.c (output_type_enum): Test the right union member.


2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
            Jeremie Salvucci  <jeremie.salvucci@free.fr>

        * gengtype.c (output_type_enum): Test the right union member.


Co-Authored-By: Jeremie Salvucci <jeremie.salvucci@free.fr>

From-SVN: r163596
parent 0cd0559e
2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
Jeremie Salvucci <jeremie.salvucci@free.fr>
* gengtype.c (output_type_enum): Test the right union member.
2010-08-27 Uros Bizjak <ubizjak@gmail.com> 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
PR target/41484 PR target/41484
......
...@@ -2531,7 +2531,7 @@ write_types_process_field (type_p f, const struct walk_type_data *d) ...@@ -2531,7 +2531,7 @@ write_types_process_field (type_p f, const struct walk_type_data *d)
static void static void
output_type_enum (outf_p of, type_p s) 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_"); oprintf (of, ", gt_e_");
output_mangled_typename (of, s); output_mangled_typename (of, s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment