aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-04-10 17:22:35 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-04-10 17:22:35 -0400
commit5717cc73de0a0f1fe698cd2366e310365a4ae459 (patch)
tree4ab399bdd6336b6107945e84d1a3fcacf9f6f77a /gcc/cexp.y
parentf250a0bc1c4d417c3669e75f1fa768a52b7c99d1 (diff)
downloadgcc-5717cc73de0a0f1fe698cd2366e310365a4ae459.zip
gcc-5717cc73de0a0f1fe698cd2366e310365a4ae459.tar.gz
gcc-5717cc73de0a0f1fe698cd2366e310365a4ae459.tar.bz2
(parse_number): Don't reject long long constants unless pedantic.
From-SVN: r11689
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index 470c45d..a890bf8 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -520,9 +520,9 @@ parse_number (olen)
while (1) {
if (c == 'l' || c == 'L')
{
- if (spec_long)
- yyerror ("two `l's in integer constant");
- spec_long = 1;
+ if (!pedantic < spec_long)
+ yyerror ("too many `l's in integer constant");
+ spec_long++;
}
else if (c == 'u' || c == 'U')
{