From 5717cc73de0a0f1fe698cd2366e310365a4ae459 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 10 Apr 1996 17:22:35 -0400 Subject: [PATCH] (parse_number): Don't reject long long constants unless pedantic. From-SVN: r11689 --- gcc/cexp.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/cexp.y b/gcc/cexp.y index 470c45d0976..a890bf89a59 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') { -- 2.30.2