Commit 03369c93 by Andreas Schwab Committed by Andreas Schwab

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
parent 0c1ba549
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> Wed Jul 1 02:12:33 1998 Robert Lipe <robertl@dgii.com>
* i386.c (asm_output_function_prefix): Make 686 function * i386.c (asm_output_function_prefix): Make 686 function
......
...@@ -4451,6 +4451,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) ...@@ -4451,6 +4451,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if ((! (specbits & ((1 << (int) RID_LONG) | (1 << (int) RID_SHORT) if ((! (specbits & ((1 << (int) RID_LONG) | (1 << (int) RID_SHORT)
| (1 << (int) RID_SIGNED) | (1 << (int) RID_SIGNED)
| (1 << (int) RID_UNSIGNED)))) | (1 << (int) RID_UNSIGNED))))
/* Don't warn about typedef foo = bar. */
&& ! (specbits & (1 << (int) RID_TYPEDEF) && initialized)
&& ! (in_system_header && ! allocation_temporary_p ())) && ! (in_system_header && ! allocation_temporary_p ()))
{ {
/* C9x will probably require a diagnostic here. /* C9x will probably require a diagnostic here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment