public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6303] ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258]
@ 2023-02-23 14:27 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-02-23 14:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:68e7489b6c1035c69ee008a63d3d56e89fafbb30

commit r13-6303-g68e7489b6c1035c69ee008a63d3d56e89fafbb30
Author: Jakub Jelinek <jakub@redhat.com>
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  <jakub@redhat.com>
    
            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)))
 		{

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-23 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 14:27 [gcc r13-6303] ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).