Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 650756 Details for
Bug 733482
gcc-10.1.0 SIGSEGVs in has_undead_caller_from_outside_scc_p() (was: dev-util/radare2-4.5.0 with -flto leads to lto1 segfault)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-ipa-96291-don-t-crash-on-unoptimized-lto-functions.patch
0001-ipa-96291-don-t-crash-on-unoptimized-lto-functions.patch (text/plain), 1.42 KB, created by
Sergei Trofimovich (RETIRED)
on 2020-07-25 18:44:54 UTC
(
hide
)
Description:
0001-ipa-96291-don-t-crash-on-unoptimized-lto-functions.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2020-07-25 18:44:54 UTC
Size:
1.42 KB
patch
obsolete
>From 03810b1b2dec00575b2bcb579eb3d7c34bd176bc Mon Sep 17 00:00:00 2001 >From: Sergei Trofimovich <siarheit@google.com> >Date: Sat, 25 Jul 2020 19:26:50 +0100 >Subject: [PATCH] ipa/96291: don't crash on unoptimized lto functions > >In PR ipa/96291 the test contained an SCC with one >unoptimized function. This tricked ipa-cp into NULL dereference. > >has_undead_caller_from_outside_scc_p() did not take into account >that unoptimized funtions don't have IPA summary analysis. and >dereferenced NULL pointer causing an ICE. > > PR ipa/96291 > * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider > unoptimized callers as undead. >--- > gcc/ipa-cp.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > >diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c >index b0c8f405260..d5082576962 100644 >--- a/gcc/ipa-cp.c >+++ b/gcc/ipa-cp.c >@@ -5666,9 +5666,15 @@ has_undead_caller_from_outside_scc_p (struct cgraph_node *node, > && cs->caller->call_for_symbol_thunks_and_aliases > (has_undead_caller_from_outside_scc_p, NULL, true)) > return true; >- else if (!ipa_edge_within_scc (cs) >- && !IPA_NODE_REF (cs->caller)->node_dead) >- return true; >+ else if (!ipa_edge_within_scc (cs)) >+ { >+ /* Unoptimized callers don't have IPA information. >+ Conservatively assume callers are undead. */ >+ if (!IPA_NODE_REF (cs->caller)) >+ return true; >+ if (!IPA_NODE_REF (cs->caller)->node_dead) >+ return true; >+ } > return false; > } > >-- >2.27.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 733482
:
650160
| 650756