]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa/97565 - fix IPA PTA body availability check
authorRichard Biener <rguenther@suse.de>
Mon, 23 Aug 2021 13:37:48 +0000 (15:37 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 24 Aug 2021 06:44:41 +0000 (08:44 +0200)
commit5bc33f0318152235ce10220f0d1a2e0c87bde9f1
treee95d35469221e6d2be78222a653c4364d9cd2d26
parentc62cf32d051fcbb403e82000207ede6a91dc26e8
ipa/97565 - fix IPA PTA body availability check

Looks like the existing check using has_gimple_body_p isn't enough
at LTRANS time but I need to check in_other_partition as well.

2021-08-23  Richard Biener  <rguenther@suse.de>

PR ipa/97565
* tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
in addition to has_gimple_body.

* g++.dg/lto/pr97565_0.C: New testcase.
* g++.dg/lto/pr97565_1.C: Likewise.

(cherry picked from commit 0230e69a3fabe6ad1d80cdf308ad1bf1934c4381)
gcc/testsuite/g++.dg/lto/pr97565_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr97565_1.C [new file with mode: 0644]
gcc/tree-ssa-structalias.c