From 8524993f7da29729eec9b018001074b32b666556 Mon Sep 17 00:00:00 2001 From: ghazi Date: Thu, 10 Aug 2000 15:21:18 +0000 Subject: * 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 --- gcc/cppexp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cppexp.c') 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"); } -- cgit v1.2.3