]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add missing check for const_pool in the escaped solutions
authorRichard Biener <rguenther@suse.de>
Fri, 17 May 2024 07:31:52 +0000 (09:31 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 17 May 2024 08:54:11 +0000 (10:54 +0200)
commitb420e0b920613c42f63252aa2478a8315dc37a13
tree881fa8b9789ef27b8a69bfec8f2073e9c6400716
parent9bd0b709ddb70589436c326142b1566f49f5e979
Add missing check for const_pool in the escaped solutions

The ptr-vs-ptr compare folding using points-to info was missing a
check for const_pool being included in the escaped solution.  The
following fixes that, fixing the observed execute FAIL of
experimental/functional/searchers.cc

* tree-ssa-alias.h (pt_solution_includes_const_pool): Declare.
* tree-ssa-alias.cc (ptrs_compare_unequal): Use
pt_solution_includes_const_pool.
* tree-ssa-structalias.cc (pt_solution_includes_const_pool): New.

* gcc.dg/torture/20240517-1.c: New testcase.
gcc/testsuite/gcc.dg/torture/20240517-1.c [new file with mode: 0644]
gcc/tree-ssa-alias.cc
gcc/tree-ssa-alias.h
gcc/tree-ssa-structalias.cc