* cppexp.c (parse_number): Update diagnostic test.
From-SVN: r37947
This commit is contained in:
parent
88edcc062c
commit
fef1de5d11
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue