]> gcc.gnu.org Git - gcc.git/commit
Unify MINUS_EXPR range operator
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 9 Jun 2023 17:42:39 +0000 (13:42 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Sat, 10 Jun 2023 00:33:03 +0000 (20:33 -0400)
commitd5818a361779e19b9c17295c6a014c4145c73937
tree7ea95c6d6af4ad6d4d44ceb3729c586fa1dd70ae
parenta1aaaff33a79d1b7613fbf8a17b51321a135f19c
Unify MINUS_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_minus): Remove.  Move prototypes
to range-op-mixed.h
(operator_minus::fold_range): Rename from foperator_minus.
(operator_minus::op1_range): Ditto.
(operator_minus::op2_range): Ditto.
(operator_minus::rv_fold): Ditto.
(float_table::float_table): Remove MINUS_EXPR.
* range-op-mixed.h (class operator_minus): Combined from integer
and float files.
* range-op.cc (op_minus): New object.
(unified_table::unified_table): Add MINUS_EXPR.
(class operator_minus): Move to range-op-mixed.h.
(integral_table::integral_table): Remove MINUS_EXPR.
(pointer_table::pointer_table): Remove MINUS_EXPR.
gcc/range-op-float.cc
gcc/range-op-mixed.h
gcc/range-op.cc
This page took 0.05205 seconds and 5 git commands to generate.