diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-06-10 16:33:17 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-06-12 10:48:38 -0400 |
commit | af5e7f0629dc56be3cc7df75fbb407f0dfd72252 (patch) | |
tree | 78cbd1b04f5abde23c2ad269c31913a9cef9a40e /gcc/range-op.cc | |
parent | 8e0f292f92b5e6d7aa3b24c51b48db882d0d800b (diff) | |
download | gcc-af5e7f0629dc56be3cc7df75fbb407f0dfd72252.zip gcc-af5e7f0629dc56be3cc7df75fbb407f0dfd72252.tar.gz gcc-af5e7f0629dc56be3cc7df75fbb407f0dfd72252.tar.bz2 |
Add a hybrid BIT_IOR_EXPR operator for integer and pointer.
This adds an operator to the unified table for BIT_IOR_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_bitwise_or): Remove final.
* range-op-ptr.cc (pointer_table::pointer_table): Remove BIT_IOR_EXPR.
(class hybrid_or_operator): New.
(range_op_table::initialize_pointer_ops): Add hybrid_or_operator.
* range-op.cc (unified_table::unified_table): Comment out BIT_IOR_EXPR.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r-- | gcc/range-op.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc index dcb9221..0a9a329 100644 --- a/gcc/range-op.cc +++ b/gcc/range-op.cc @@ -121,8 +121,8 @@ unified_table::unified_table () // is used until there is a pointer range class. Then we can simply // uncomment the operator here and use the unified version. - //set (BIT_AND_EXPR, op_bitwise_and); - set (BIT_IOR_EXPR, op_bitwise_or); + // set (BIT_AND_EXPR, op_bitwise_and); + // set (BIT_IOR_EXPR, op_bitwise_or); set (MIN_EXPR, op_min); set (MAX_EXPR, op_max); } |