From: Aldy Hernandez Date: Tue, 14 May 2024 14:21:50 +0000 (+0200) Subject: [prange] Default pointers_handled_p() to false. X-Git-Tag: basepoints/gcc-16~9049 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c400b2100719d0a9e5989c63e0827b9e98919df3;p=thirdparty%2Fgcc.git [prange] Default pointers_handled_p() to false. The pointers_handled_p() method is an internal range-op helper to help catch dispatch type mismatches for pointer operands. This is what caught the IPA mismatch in PR114985. This method is only a temporary measure to catch any incompatibilities in the current pointer range-op entries. This patch returns true for any *new* entries in the range-op table, as the current ones are already fleshed out. This keeps us from having to implement this boilerplate function for any new range-op entries. PR tree-optimization/114995 * range-op-ptr.cc (range_operator::pointers_handled_p): Default to true. --- diff --git a/gcc/range-op-ptr.cc b/gcc/range-op-ptr.cc index 65cca65103a..2f47f3354ed 100644 --- a/gcc/range-op-ptr.cc +++ b/gcc/range-op-ptr.cc @@ -58,7 +58,7 @@ bool range_operator::pointers_handled_p (range_op_dispatch_type ATTRIBUTE_UNUSED, unsigned dispatch ATTRIBUTE_UNUSED) const { - return false; + return true; } bool