]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix bitwise_or logic for prange.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 28 Oct 2024 13:47:03 +0000 (09:47 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 28 Oct 2024 16:46:55 +0000 (12:46 -0400)
commit1c0ecf06c0c9f3268ba52d4027e9b78aae4acb51
treec899675db58e4c6443deb01420eaf57bed123704
parent7c0e4963d5de12b44414c82419d3d9e426f718b6
Fix bitwise_or logic for prange.

Set non-zero only if at least one of the two operands does not contain zero.

* range-op-ptr.cc (operator_bitwise_or::fold_range): Fix logic
for setting nonzero.
gcc/range-op-ptr.cc