warning about type declarations in prototypes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81287
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
}
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. */