diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-10 15:21:18 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-10 15:21:18 +0000 |
| commit | 8524993f7da29729eec9b018001074b32b666556 (patch) | |
| tree | 30a07535a16520798c29038412313aa0bf2aecde /gcc/cppexp.c | |
| parent | f0cb5fb33c19d12f43e86a46c35c84d76af1364c (diff) | |
| download | ppe42-gcc-8524993f7da29729eec9b018001074b32b666556.tar.gz ppe42-gcc-8524993f7da29729eec9b018001074b32b666556.zip | |
* c-lex.c (parse_float, yylex): For -Wtraditional, issue a
warning about non-traditional numeric constant suffixes.
* cppexp.c (parse_number): Likewise.
* invoke.texi: (-Wtraditional): Document new behavior.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
| -rw-r--r-- | gcc/cppexp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 18f494fbe02..9631526b18e 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -218,6 +218,8 @@ parse_number (pfile, tok) goto invalid_suffix; op.unsignedp = sufftab[i].u; + if (CPP_WTRADITIONAL (pfile) && sufftab[i].u) + cpp_warning (pfile, "traditional C rejects the `U' suffix"); if (CPP_OPTION (pfile, c89) && sufftab[i].l == 2) SYNTAX_ERROR ("too many 'l' suffixes in integer constant"); } |

