* cppexp.c (parse_number): Update diagnostic test.
authorNeil Booth <neilb@earthling.net>
Sat, 2 Dec 2000 10:13:49 +0000 (10:13 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 2 Dec 2000 10:13:49 +0000 (10:13 +0000)
From-SVN: r37947

gcc/ChangeLog
gcc/cppexp.c

index ee903e9bae48ff2c7810792355242a6969b7875e..7acf966c368ec1d41e5f428dfe27b31037408011 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-02  Neil Booth  <neilb@earthling.net>
+
+        * cppexp.c (parse_number): Update diagnostic test.
+
 2000-12-02  Bernd Schmidt  <bernds@redhat.co.uk>
 
        * reload1.c (free_for_value_p): New function, frontend to
index 882908fda44a347b182eba5bf28fc9f60cb1aae9..f7d17ed942252355703c4322afd932d4f0aa29c1 100644 (file)
@@ -205,8 +205,9 @@ parse_number (pfile, tok)
 
       if (CPP_WTRADITIONAL (pfile) && sufftab[i].u)
        cpp_warning (pfile, "traditional C rejects the `U' suffix");
-      if (sufftab[i].l == 2 && !CPP_OPTION (pfile, extended_numbers))
-       SYNTAX_ERROR ("too many 'l' suffixes in integer constant");
+      if (sufftab[i].l == 2 && CPP_OPTION (pfile, pedantic)
+         && ! CPP_OPTION (pfile, c99))
+       cpp_pedwarn (pfile, "too many 'l' suffixes in integer constant");
     }
   
   if (base <= largest_digit)