]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add a hybrid BIT_IOR_EXPR operator for integer and pointer.
authorAndrew MacLeod <amacleod@redhat.com>
Sat, 10 Jun 2023 20:33:17 +0000 (16:33 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 12 Jun 2023 14:48:38 +0000 (10:48 -0400)
commitaf5e7f0629dc56be3cc7df75fbb407f0dfd72252
tree78cbd1b04f5abde23c2ad269c31913a9cef9a40e
parent8e0f292f92b5e6d7aa3b24c51b48db882d0d800b
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.
gcc/range-op-mixed.h
gcc/range-op-ptr.cc
gcc/range-op.cc