re PR preprocessor/16192 (Bug in expression evaluation when operand is missing)
authorNeil Booth <neil@duron.akihabara.co.uk>
Sun, 4 Jul 2004 12:57:50 +0000 (12:57 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 4 Jul 2004 12:57:50 +0000 (12:57 +0000)
commita09d4744294e28a19e7f785e85a361d2cd34c25e
tree7aa5c20469e6c104827c6efe34863e1cdbc76042
parentb25c17bcf0525adb212c2f08fa2607a0543630a8
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
gcc/ChangeLog
gcc/doc/cpp.texi
gcc/doc/cppopts.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/if-mop.c
gcc/testsuite/gcc.dg/cpp/trad/comment-3.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c
libcpp/init.c