From d80efa726fcb355ff6a45acc49b4142c87fe41b9 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 4 Jul 2004 12:57:50 +0000 Subject: * doc/cpp.texi: Don't document what we do for ill-formed expressions. * doc/cppopts.texi: Clarify processing of command-line defines. libcpp: PR preprocessor/16192 PR preprocessor/15913 PR preprocessor/15572 * expr.c (_cpp_parse_expr): Handle remaining cases where an expression is missing. * init.c (post_options): Traditional cpp doesn't do // comments. testsuite: * gcc.dg/cpp/if-mop.c: Two new testcases. * gcc.dg/cpp/trad/comment-3.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84080 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcpp/init.c') diff --git a/libcpp/init.c b/libcpp/init.c index 65cca9b2bab..d1cc1e65d0f 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -611,6 +611,8 @@ post_options (cpp_reader *pfile) if (CPP_OPTION (pfile, traditional)) { + CPP_OPTION (pfile, cplusplus_comments) = 0; + /* Traditional CPP does not accurately track column information. */ CPP_OPTION (pfile, show_column) = 0; CPP_OPTION (pfile, trigraphs) = 0; -- cgit v1.2.3