diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-06 20:35:46 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-06 20:35:46 +0000 |
commit | 58551c2335b3f2f16c8341d3bb409d37f8715696 (patch) | |
tree | 6bf828a9fcc79198ebca01c572aeea673134e23a /gcc/cppinit.c | |
parent | daeabcd06bc02b7b91f041c14f932d80b82f45f5 (diff) | |
download | gcc-58551c2335b3f2f16c8341d3bb409d37f8715696.zip gcc-58551c2335b3f2f16c8341d3bb409d37f8715696.tar.gz gcc-58551c2335b3f2f16c8341d3bb409d37f8715696.tar.bz2 |
cppinit.c (struct lang_flags): Rename trigraphs std.
* cppinit.c (struct lang_flags): Rename trigraphs std.
(set_lang): Update.
* cpplib.h (struct cpp_options): New member std.
* cppmacro.c (_cpp_builtin_macro_text): Use std.
(collect_args): Flag whether to swallow a possible future
comma pasted with varargs.
(replace_args): Use this flag.
* doc/cpp.texi: Update varargs extension documentation.
testsuite:
* gcc.dg/cpp/vararg3.c, gcc.dg/cpp/vararg4.c: New tests.
From-SVN: r56077
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 03f04c1..a7ffeb0 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -384,7 +384,7 @@ struct lang_flags char c99; char cplusplus; char extended_numbers; - char trigraphs; + char std; char dollars_in_ident; char cplusplus_comments; char digraphs; @@ -392,7 +392,7 @@ struct lang_flags /* ??? Enable $ in identifiers in assembly? */ static const struct lang_flags lang_defaults[] = -{ /* c99 c++ xnum trig dollar c++comm digr */ +{ /* c99 c++ xnum std dollar c++comm digr */ /* GNUC89 */ { 0, 0, 1, 0, 1, 1, 1 }, /* GNUC99 */ { 1, 0, 1, 0, 1, 1, 1 }, /* STDC89 */ { 0, 0, 0, 1, 0, 0, 0 }, @@ -416,7 +416,8 @@ set_lang (pfile, lang) CPP_OPTION (pfile, c99) = l->c99; CPP_OPTION (pfile, cplusplus) = l->cplusplus; CPP_OPTION (pfile, extended_numbers) = l->extended_numbers; - CPP_OPTION (pfile, trigraphs) = l->trigraphs; + CPP_OPTION (pfile, std) = l->std; + CPP_OPTION (pfile, trigraphs) = l->std; CPP_OPTION (pfile, dollars_in_ident) = l->dollars_in_ident; CPP_OPTION (pfile, cplusplus_comments) = l->cplusplus_comments; CPP_OPTION (pfile, digraphs) = l->digraphs; |