summaryrefslogtreecommitdiffstats
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-06 20:35:46 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-06 20:35:46 +0000
commited909a0959acaa751bb78bcf3b7c44c3c07942a0 (patch)
tree6bf828a9fcc79198ebca01c572aeea673134e23a /gcc/cppinit.c
parent1d6eb2a0734ba49f4477fcff84d920ab5e45e5a9 (diff)
downloadppe42-gcc-ed909a0959acaa751bb78bcf3b7c44c3c07942a0.tar.gz
ppe42-gcc-ed909a0959acaa751bb78bcf3b7c44c3c07942a0.zip
* 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
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c7
1 files changed, 4 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud