aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBasile Starynkevitch <basile@starynkevitch.net>2010-08-27 20:32:27 +0000
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>2010-08-27 20:32:27 +0000
commit6ba2db5e3323ac177a1d31cf8e562a1faba5a078 (patch)
tree8b0438893578e4b9b75e1cac369c2be6051ec18a /gcc
parent0cd0559e8ceb1764a41c8964f30a7de025956e8a (diff)
downloadgcc-6ba2db5e3323ac177a1d31cf8e562a1faba5a078.zip
gcc-6ba2db5e3323ac177a1d31cf8e562a1faba5a078.tar.gz
gcc-6ba2db5e3323ac177a1d31cf8e562a1faba5a078.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gengtype.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b20a442..3206c38 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+
+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>
PR target/41484
diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index 9cdc6a4..6436a93 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -2531,7 +2531,7 @@ write_types_process_field (type_p f, const struct walk_type_data *d)
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);