c-decl.c (grokdeclarator): Don't warn about implicit int in `typedef foo = bar'.
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Wed, 1 Jul 1998 02:00:35 +0000 (02:00 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Wed, 1 Jul 1998 02:00:35 +0000 (02:00 +0000)
* c-decl.c (grokdeclarator): Don't warn about implicit int in
`typedef foo = bar'.

From-SVN: r20863

gcc/ChangeLog
gcc/c-decl.c

index 812d9cc1c84c09a202a2636e219dfed0d2162e8e..130ef8933cb02044622eac5f9373f51bf29665c1 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jul  1 10:56:55 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * c-decl.c (grokdeclarator): Don't warn about implicit int in
+       `typedef foo = bar'.
+
 Wed Jul  1 02:12:33 1998  Robert Lipe  <robertl@dgii.com>
 
        * i386.c (asm_output_function_prefix): Make 686 function
index bd4e7a219b2273004a2e7c1ca9111c66967a1668..5465e4027df5e60a90b0708339656738c9a61f21 100644 (file)
@@ -4451,6 +4451,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
       if ((! (specbits & ((1 << (int) RID_LONG) | (1 << (int) RID_SHORT)
                          | (1 << (int) RID_SIGNED)
                          | (1 << (int) RID_UNSIGNED))))
+         /* Don't warn about typedef foo = bar.  */
+         && ! (specbits & (1 << (int) RID_TYPEDEF) && initialized)
          && ! (in_system_header && ! allocation_temporary_p ()))
        {
          /* C9x will probably require a diagnostic here.