aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-20 18:27:32 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-20 18:27:32 +0000
commitdd07b88447abe48d1ec82b7e3fd7c2d95493b7e8 (patch)
tree24d965cfca605ecaa67abda32d7a2c64f3ee143c /gcc/cppexp.c
parent4de5a4d99adf55dc93302dd284123dca93f50896 (diff)
downloadgcc-dd07b88447abe48d1ec82b7e3fd7c2d95493b7e8.zip
gcc-dd07b88447abe48d1ec82b7e3fd7c2d95493b7e8.tar.gz
gcc-dd07b88447abe48d1ec82b7e3fd7c2d95493b7e8.tar.bz2
c-lang.c (lang_init_options): Update call to cpp_reader_init.
* c-lang.c (lang_init_options): Update call to cpp_reader_init. * cppmain.c (main): Similarly. * fix-header.c (read_scan_file): Similarly. * cp/lex.c (lang_init_options): Similarly. * objc/objc-act.c (lang_init_options): Similarly. * cppexp.c (parse_number): Only warn for unextended C89. * cppinit.c (set_lang): New function. (cpp_reader_init): Take a LANG argument and pass it to set_lang. (COMMAND_LINE_OPTIONS): New option std=c++98. (cpp_handle_option): Use set_lang. * cpplib.h (enum_c_lang): New enumeration. Update comments. From-SVN: r37587
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 98bd94e..6665380 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -205,7 +205,9 @@ parse_number (pfile, tok)
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)
+ if (CPP_OPTION (pfile, c89)
+ && sufftab[i].l == 2
+ && pfile->spec_nodes.n__STRICT_ANSI__->type == NT_MACRO)
SYNTAX_ERROR ("too many 'l' suffixes in integer constant");
}