c-decl.c (get_parm_info): Use the correct tag keywords when warning about type declar...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 29 Apr 2004 13:49:54 +0000 (13:49 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 29 Apr 2004 13:49:54 +0000 (13:49 +0000)
* c-decl.c (get_parm_info): Use the correct tag keywords when
warning about type declarations in prototypes.

From-SVN: r81287

gcc/ChangeLog
gcc/c-decl.c

index 58488336d3f2d968bb0d434d6592fbbf9fc75234..9630090d2d628fe28c508202dd25b4911eef98ab 100644 (file)
@@ -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.
index 8f1964717dab11d7cc16a8b152338bc014fe3ad9..ecf1198f5c52deaf408e90df05dbd632937d93a0 100644 (file)
@@ -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.  */