aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>1998-07-01 02:00:35 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>1998-07-01 02:00:35 +0000
commit03369c9399903579d7a4a6366fea699a06b4ee41 (patch)
tree4dce26f2b60daa016b67da718673f05484f2caa3 /gcc/c-decl.c
parent0c1ba5499f2bb8ebab099a72c3945c9fb8224dbc (diff)
downloadgcc-03369c9399903579d7a4a6366fea699a06b4ee41.zip
gcc-03369c9399903579d7a4a6366fea699a06b4ee41.tar.gz
gcc-03369c9399903579d7a4a6366fea699a06b4ee41.tar.bz2
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index bd4e7a2..5465e40 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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.