diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-02 10:13:49 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-02 10:13:49 +0000 |
| commit | 87da14dfd8c03ead40e38c2738b25344287b7f47 (patch) | |
| tree | 6083e8bd780589f6dd5f19e848838ddd8cb9cecd /gcc/cppexp.c | |
| parent | dffc9507a904f1a9f2c89fcfb84f8d9b91156cb3 (diff) | |
| download | ppe42-gcc-87da14dfd8c03ead40e38c2738b25344287b7f47.tar.gz ppe42-gcc-87da14dfd8c03ead40e38c2738b25344287b7f47.zip | |
* cppexp.c (parse_number): Update diagnostic test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
| -rw-r--r-- | gcc/cppexp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 882908fda44..f7d17ed9422 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) |

