]> gcc.gnu.org Git - gcc.git/commit - libcpp/expr.c
cppexp.c (possible_sum_sign, [...]): Remove.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 26 May 2002 18:42:21 +0000 (18:42 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 26 May 2002 18:42:21 +0000 (18:42 +0000)
commit913189081f3bc7eebcf6bd13b9e344ba9cd2f9a3
treee0b28595be44974817fef680c5e031a4b195ef68
parentbcb6a2be20c249fbb6edbd15b6f3d09c925a37e5
cppexp.c (possible_sum_sign, [...]): Remove.

* cppexp.c (possible_sum_sign, integer_overflow, left_shift,
right_shift): Remove.
(cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
HIGH_PART): New.
(struct op): Use cpp_num.
(num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
num_part_mul, num_unary_op, num_binary_op, num_negate,
num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
num_div_op, num_lshift, num_rshift, append_digit): New.
(interpret_number, parse_defined, eval_token, reduce): Update
for two-integer arithmetic.
(binary_handler): New typedef.
(optab): Update.
(COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
(_cpp_parse_expr, reduce): Update to handle two-integers.
* cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
testsuite:
* gcc.dg/cpp/arith-1.c: New semantic tests.
* gcc.dg/cpp/if-1.c: Update.

From-SVN: r53900
gcc/ChangeLog
gcc/cppexp.c
gcc/cpplib.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/arith-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/if-1.c
This page took 0.05801 seconds and 5 git commands to generate.