* Fix ipa-icf.c segfault
@ 2015-12-06 5:46 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2015-12-06 5:46 UTC (permalink / raw)
To: gcc-patches
Hi,
this patch fixes segfault that crept into my prevoius patch.
Bootstrapped/regtested x86_64-linux, comitted.
Honza
* ipa-icf.c (sem_function::merge): Check that local_original exists.
Index: ipa-icf.c
===================================================================
--- ipa-icf.c (revision 231319)
+++ ipa-icf.c (working copy)
@@ -1359,7 +1359,9 @@ sem_function::merge (sem_item *alias_ite
{
if (dump_file)
fprintf (dump_file, "Dropping merged_comdat flag.\n\n");
- local_original->merged_comdat = original->merged_comdat = false;
+ if (local_original)
+ local_original->merged_comdat = false;
+ original->merged_comdat = false;
}
if (remove)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-06 5:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-06 5:46 Fix ipa-icf.c segfault Jan Hubicka
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).