diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-06-10 16:34:26 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-06-12 10:48:40 -0400 |
commit | 73cbf402d3df24317ae299f52256ddfa93cca402 (patch) | |
tree | 974a0fdc9b17b808f4dab04f7a18dbb3d2f0d65b /gcc/range-op.cc | |
parent | af5e7f0629dc56be3cc7df75fbb407f0dfd72252 (diff) | |
download | gcc-73cbf402d3df24317ae299f52256ddfa93cca402.zip gcc-73cbf402d3df24317ae299f52256ddfa93cca402.tar.gz gcc-73cbf402d3df24317ae299f52256ddfa93cca402.tar.bz2 |
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.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r-- | gcc/range-op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc index 0a9a329..481f3b1 100644 --- a/gcc/range-op.cc +++ b/gcc/range-op.cc @@ -123,7 +123,7 @@ unified_table::unified_table () // set (BIT_AND_EXPR, op_bitwise_and); // set (BIT_IOR_EXPR, op_bitwise_or); - set (MIN_EXPR, op_min); + // set (MIN_EXPR, op_min); set (MAX_EXPR, op_max); } |