aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-26 17:31:13 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-26 17:31:13 +0000
commitbdb05a7b49ee8569b9efa1b0e0401b3026e1034e (patch)
treeb125a3451c60a8ac14f5f3f3cd8afb06f601958a /gcc/cppexp.c
parente1085962754472b391d366d591f66e2413c8faa7 (diff)
downloadgcc-bdb05a7b49ee8569b9efa1b0e0401b3026e1034e.zip
gcc-bdb05a7b49ee8569b9efa1b0e0401b3026e1034e.tar.gz
gcc-bdb05a7b49ee8569b9efa1b0e0401b3026e1034e.tar.bz2
cpplib.h (struct cpp_reader): Remove lang_asm.
* cpplib.h (struct cpp_reader): Remove lang_asm. (struct cpp_options): Remove c89. New members lang, extended_numbers. * cppexp.c (parse_number): Use them. * cpphash.h (VALID_SIGN): Use them. * cppinit.c (set_lang, cpp_start_read): Update. * cpplex.c (parse_string, _cpp_lex_token): Update. * cpplib.c (_cpp_handle_directive): Update. * cppmacro.c (parse_args): Update. * cppmain.c (scan_buffer): Update. From-SVN: r37761
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 6665380..882908f 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -205,9 +205,7 @@ 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
- && pfile->spec_nodes.n__STRICT_ANSI__->type == NT_MACRO)
+ if (sufftab[i].l == 2 && !CPP_OPTION (pfile, extended_numbers))
SYNTAX_ERROR ("too many 'l' suffixes in integer constant");
}