c-decl.c (grokdeclarator): Don't warn about implicit int in `typedef foo = bar'.

* c-decl.c (grokdeclarator): Don't warn about implicit int in
	`typedef foo = bar'.

From-SVN: r20863
This commit is contained in:
Andreas Schwab 1998-07-01 02:00:35 +00:00 committed by Andreas Schwab
parent 0c1ba5499f
commit 03369c9399
2 changed files with 7 additions and 0 deletions

View 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

View 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.