diff options
author | Neil Booth <neil@duron.akihabara.co.uk> | 2004-07-04 12:57:50 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2004-07-04 12:57:50 +0000 |
commit | a09d4744294e28a19e7f785e85a361d2cd34c25e (patch) | |
tree | 7aa5c20469e6c104827c6efe34863e1cdbc76042 /libcpp/init.c | |
parent | b25c17bcf0525adb212c2f08fa2607a0543630a8 (diff) | |
download | gcc-a09d4744294e28a19e7f785e85a361d2cd34c25e.zip gcc-a09d4744294e28a19e7f785e85a361d2cd34c25e.tar.gz gcc-a09d4744294e28a19e7f785e85a361d2cd34c25e.tar.bz2 |
re PR preprocessor/16192 (Bug in expression evaluation when operand is missing)
* 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.
From-SVN: r84080
Diffstat (limited to 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index 65cca9b..d1cc1e6 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; |