summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/cpp/if-oppr.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-28 19:42:54 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-28 19:42:54 +0000
commit5bbf045f8148eb62a4813716c428bb68c3b6b2c5 (patch)
treec4adc85edfa9fa27de90af625624219e92a87257 /gcc/testsuite/gcc.dg/cpp/if-oppr.c
parent0b14bde96c614131a18bcd151024878f18ef976e (diff)
downloadppe42-gcc-5bbf045f8148eb62a4813716c428bb68c3b6b2c5.tar.gz
ppe42-gcc-5bbf045f8148eb62a4813716c428bb68c3b6b2c5.zip
* cppexp.c (lex): Update to use state.skip_eval.
(struct op): Remove prio and flags members. (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS, SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove. (LEFT_ASSOC): New macro. (optab): New table of operator priorities and flags. (SHIFT): Update. (_cpp_parse_expr): Clean up logic. Return bool. Use a malloc-ed parser stack. (reduce): New; reduce the operator stack. (_cpp_expand_op_stack): Expand the operator stack as necessary. * cpphash.h (struct op): Predeclare. (struct cpp_reader): New members op_stack, op_limit. (struct lexer_state): New member skip_eval. (_cpp_parse_expr): Update. (_cpp_expand_op_stack): New. * cpplib.c (do_if): Update. * cppinit.c (cpp_create_reader): Create op stack. (cpp_destroy): And destroy it. * cpplib.h (CPP_LAST_CPP_OP): Correct. (TTYPE_TABLE): Correct. testsuite: * gcc.dg/cpp/if-mop.c: Update. * gcc.dg/cpp/if-mpar.c: Add test. * gcc.dg/cpp/if-oppr.c: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52853 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/if-oppr.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/if-oppr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/if-oppr.c b/gcc/testsuite/gcc.dg/cpp/if-oppr.c
index 3f06cd67ba9..9c4910f6a20 100644
--- a/gcc/testsuite/gcc.dg/cpp/if-oppr.c
+++ b/gcc/testsuite/gcc.dg/cpp/if-oppr.c
@@ -20,7 +20,7 @@
#endif
/* , not higher than ?. This is not a syntax error if it is. */
-#if 1 ? 0, 1: 1 /* { dg-error "syntax" "? higher precedence than ," } */
+#if 1 ? 0, 1: 1 /* { dg-error "without" "? higher precedence than ," } */
#error
#endif
OpenPOWER on IntegriCloud