diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-20 18:27:32 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-20 18:27:32 +0000 |
| commit | fad0ffbb9628663e1c022a489ea0809a6761649d (patch) | |
| tree | 24d965cfca605ecaa67abda32d7a2c64f3ee143c /gcc/cppexp.c | |
| parent | 417f2c0c97ccd8187387ff025d58e4024aace555 (diff) | |
| download | ppe42-gcc-fad0ffbb9628663e1c022a489ea0809a6761649d.tar.gz ppe42-gcc-fad0ffbb9628663e1c022a489ea0809a6761649d.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
| -rw-r--r-- | gcc/cppexp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 98bd94e2029..6665380c3a8 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"); } |

