From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id C3EF03858C5E; Thu, 23 Feb 2023 14:27:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3EF03858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677162422; bh=s4l2jrGxhw4nvcJwJGwl4L+MJX7QZHxaZPNIGe84Cd0=; h=From:To:Subject:Date:From; b=DaNWaurnZ2a8rAe6a1JHsnNwz20kCGOcYAEdnIU0p2etHHYMKhXzknaBpwmoWh5OK 6vcwsOAAYyrJ5ql4zS+23tMzP57IQ/eBM8inBJQmI30Uqnbu1e/6KjKP0L1ZA97qaN P1J8umxnmgJSFu+/d9+vS2kP6p0EBQ2afVwPnCjs= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6303] ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: 8fda668e0919af9ceda9435f02a1708b375b2913 X-Git-Newrev: 68e7489b6c1035c69ee008a63d3d56e89fafbb30 Message-Id: <20230223142702.C3EF03858C5E@sourceware.org> Date: Thu, 23 Feb 2023 14:27:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:68e7489b6c1035c69ee008a63d3d56e89fafbb30 commit r13-6303-g68e7489b6c1035c69ee008a63d3d56e89fafbb30 Author: Jakub Jelinek Date: Thu Feb 23 15:24:43 2023 +0100 ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258] There is another spot that handles in IPA just BUILT_IN_UNREACHABLE and not BUILT_IN_UNREACHABLE_TRAP. This patch fixes that. 2023-02-23 Jakub Jelinek PR middle-end/106258 * ipa-prop.cc (try_make_edge_direct_virtual_call): Handle BUILT_IN_UNREACHABLE_TRAP like BUILT_IN_UNREACHABLE. Diff: --- gcc/ipa-prop.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc index 16c4b036558..de45dbccf16 100644 --- a/gcc/ipa-prop.cc +++ b/gcc/ipa-prop.cc @@ -3850,6 +3850,7 @@ try_make_edge_direct_virtual_call (struct cgraph_edge *ie, { if (!t || fndecl_built_in_p (t, BUILT_IN_UNREACHABLE) + || fndecl_built_in_p (t, BUILT_IN_UNREACHABLE_TRAP) || !possible_polymorphic_call_target_p (ie, cgraph_node::get (t))) {