aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 812d9cc..130ef89 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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.