]> gcc.gnu.org Git - gcc.git/commitdiff
c-lex.c (real_yylex): Don't warn about long long constants if we're allowing long...
authorNathan Sidwell <nathan@acm.org>
Wed, 9 Sep 1998 22:02:02 +0000 (22:02 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 9 Sep 1998 22:02:02 +0000 (16:02 -0600)
        * c-lex.c (real_yylex): Don't warn about long long constants if
        we're allowing long long

From-SVN: r22370

gcc/ChangeLog
gcc/c-lex.c

index ccb15b3f1e852213afaf13f6ad9a504cb073e336..79c7c842378291859731f162ad8917cb8b921d25 100644 (file)
@@ -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.
index 2f225282e7e52550c14c64ef23fd11d1658458b1..a90d3b58f11ed446639e9d9eebfe0db74788afd9 100644 (file)
@@ -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;
                      }
This page took 0.06574 seconds and 5 git commands to generate.