diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-lex.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ccb15b3..79c7c84 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 9 23:00:48 1998 Nathan Sidwell <nathan@acm.org> + + * c-lex.c (real_yylex): Don't warn about long long constants if + we're allowing long long + Wed Sep 9 21:58:41 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de> * except.h (current_function_eh_stub_label): Declare. diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 2f22528..a90d3b5 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1646,7 +1646,7 @@ yylex () { if (spec_long_long) error ("three `l's in integer constant"); - else if (pedantic) + else if (pedantic && ! in_system_header && warn_long_long) pedwarn ("ANSI C forbids long long integer constants"); spec_long_long = 1; } |