]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[prange] Default pointers_handled_p() to false.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 14 May 2024 14:21:50 +0000 (16:21 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 15 May 2024 10:32:55 +0000 (12:32 +0200)
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.

gcc/range-op-ptr.cc

index 65cca65103af95c925a5d55d2cd31e37e5adfed0..2f47f3354ed74be3e5d4ad47633222fe267552b1 100644 (file)
@@ -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