aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.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/cppmacro.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/cppmacro.c')
-rw-r--r--gcc/cppmacro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index c5ec6de..4adf7f6 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -564,7 +564,7 @@ parse_args (pfile, node)
if (argc + 1 == macro->paramc && macro->var_args)
{
- if (CPP_OPTION (pfile, c99) && CPP_PEDANTIC (pfile))
+ if (CPP_PEDANTIC (pfile))
cpp_pedwarn (pfile, "ISO C99 requires rest arguments to be used");
}
else
@@ -1283,7 +1283,7 @@ parse_params (pfile, macro)
pfile->state.va_args_ok = 1;
if (! CPP_OPTION (pfile, c99) && CPP_OPTION (pfile, pedantic))
cpp_pedwarn (pfile,
- "C89 does not permit anonymous variable arguments");
+ "anonymous variable arguments were introduced in C99");
}
else if (CPP_OPTION (pfile, pedantic))
cpp_pedwarn (pfile,
@@ -1395,7 +1395,7 @@ _cpp_create_definition (pfile, node)
macro->count--;
}
/* Let assembler get away with murder. */
- else if (!CPP_OPTION (pfile, lang_asm))
+ else if (CPP_OPTION (pfile, lang) != CLK_ASM)
{
ok = 0;
cpp_error (pfile, "'#' is not followed by a macro parameter");