From ed909a0959acaa751bb78bcf3b7c44c3c07942a0 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 6 Aug 2002 20:35:46 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56077 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 03f04c1a5d6..a7ffeb03d9a 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; -- cgit v1.2.3