aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 882908f..f7d17ed 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -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)