]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add a hybrid MIN_EXPR operator for integer and pointer.
authorAndrew MacLeod <amacleod@redhat.com>
Sat, 10 Jun 2023 20:34:26 +0000 (16:34 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 12 Jun 2023 14:48:40 +0000 (10:48 -0400)
commit73cbf402d3df24317ae299f52256ddfa93cca402
tree974a0fdc9b17b808f4dab04f7a18dbb3d2f0d65b
parentaf5e7f0629dc56be3cc7df75fbb407f0dfd72252
Add a hybrid MIN_EXPR operator for integer and pointer.

This adds an operator to the unified table for MIN_EXPR which will
select either the pointer or integer version based on the type passed
to the method.   This is for use until we have a seperate PRANGE class.

* range-op-mixed.h (operator_min): Remove final.
* range-op-ptr.cc (pointer_table::pointer_table): Remove MIN_EXPR.
(class hybrid_min_operator): New.
(range_op_table::initialize_pointer_ops): Add hybrid_min_operator.
* range-op.cc (unified_table::unified_table): Comment out MIN_EXPR.
gcc/range-op-mixed.h
gcc/range-op-ptr.cc
gcc/range-op.cc