summaryrefslogtreecommitdiffstats
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-09 22:02:02 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-09 22:02:02 +0000
commit2fb05d8f469720e1ae4dfa6cc8713a684675a744 (patch)
tree223dac1a5beb8b3cf63781eaa891f94fb394973b /gcc/c-lex.c
parent931c14df6be249e561efe8fa59b6931259421957 (diff)
downloadppe42-gcc-2fb05d8f469720e1ae4dfa6cc8713a684675a744.tar.gz
ppe42-gcc-2fb05d8f469720e1ae4dfa6cc8713a684675a744.zip
* c-lex.c (real_yylex): Don't warn about long long constants if
we're allowing long long git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 2f225282e7e..a90d3b58f11 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;
}
OpenPOWER on IntegriCloud