aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5848833..9630090 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-29 Richard Earnshaw <rearnsha@arm.com>
+
+ * c-decl.c (get_parm_info): Use the correct tag keywords when
+ warning about type declarations in prototypes.
+
2004-04-29 Paul Brook <paul@codesourcery.com>
* config.gcc: Pull list of cores from arm-cores.def.
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 8f19647..ecf1198 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4798,9 +4798,9 @@ get_parm_info (bool ellipsis)
}
break;
- case ENUMERAL_TYPE: keyword = "struct"; goto tag;
+ case ENUMERAL_TYPE: keyword = "enum"; goto tag;
case UNION_TYPE: keyword = "union"; goto tag;
- case RECORD_TYPE: keyword = "enum"; goto tag;
+ case RECORD_TYPE: keyword = "struct"; goto tag;
tag:
/* Types may not have tag-names, in which case the type
appears in the bindings list with b->id NULL. */