aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-05 22:22:43 +0000
committerRichard Stallman <rms@gnu.org>1992-07-05 22:22:43 +0000
commit47429a02bb92d9c9f48cfe6e82308c16f2e93275 (patch)
treea5bea263528ee76d55a78f38d3bca744fec75615
parent9ab0ddd73b118d0ba6d429dcf2770b889a5972ab (diff)
downloadgcc-47429a02bb92d9c9f48cfe6e82308c16f2e93275.zip
gcc-47429a02bb92d9c9f48cfe6e82308c16f2e93275.tar.gz
gcc-47429a02bb92d9c9f48cfe6e82308c16f2e93275.tar.bz2
(grokdeclarator): Make `long long long' an error, not a warning.
(grokdeclarator): Make `long long long' an error, not a warning. Make duplicate qualifiers do pedwarn, not warning. From-SVN: r1453
-rw-r--r--gcc/c-decl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 31fc674..6a9b270 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3440,7 +3440,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if (pedantic)
pedwarn ("duplicate `%s'", IDENTIFIER_POINTER (id));
else if (longlong)
- warning ("`long long long' is too long for GCC");
+ error ("`long long long' is too long for GCC");
else
longlong = 1;
}
@@ -3898,9 +3898,9 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
}
}
if (constp > 1)
- warning ("duplicate `const'");
+ pedwarn ("duplicate `const'");
if (volatilep > 1)
- warning ("duplicate `volatile'");
+ pedwarn ("duplicate `volatile'");
}
declarator = TREE_OPERAND (declarator, 0);