]> git.ipfire.org Git - thirdparty/gcc.git/commit
Unify PLUS_EXPR range operator
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 9 Jun 2023 17:41:28 +0000 (13:41 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Sat, 10 Jun 2023 00:33:03 +0000 (20:33 -0400)
commit29dbd7ef69fe1375055ada081af88e3a8919fff0
treec7dc22136fd6a0fc3ae6849e2d4fe07262d66f47
parent6a4ac393e199a63f39063daa28827f39dab49a07
Unify PLUS_EXPR range operator

Move the declaration of the class to the range-op-mixed header, add the
floating point prototypes as well, and use it in the new unified table.

* range-op-float.cc (foperator_plus): Remove.  Move prototypes
to range-op-mixed.h
(operator_plus::fold_range): Rename from foperator_plus.
(operator_plus::op1_range): Ditto.
(operator_plus::op2_range): Ditto.
(operator_plus::rv_fold): Ditto.
(float_table::float_table): Remove PLUS_EXPR.
* range-op-mixed.h (class operator_plus): Combined from integer
and float files.
* range-op.cc (op_plus): New object.
(unified_table::unified_table): Add PLUS_EXPR.
(class operator_plus): Move to range-op-mixed.h.
(integral_table::integral_table): Remove PLUS_EXPR.
(pointer_table::pointer_table): Remove PLUS_EXPR.
gcc/range-op-float.cc
gcc/range-op-mixed.h
gcc/range-op.cc