This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix lto-symtab ICE during Ada LTO bootstrap
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, "H.J. Lu" <hjl dot tools at gmail dot com>, Richard Biener <richard dot guenther at gmail dot com>, Arnaud Charlet <charlet at adacore dot com>
- Date: Mon, 21 Dec 2015 11:19:54 +0100
- Subject: Re: Fix lto-symtab ICE during Ada LTO bootstrap
- Authentication-results: sourceware.org; auth=none
- References: <20151121182122 dot GB23225 at kam dot mff dot cuni dot cz> <20151123183655 dot GB77967 at kam dot mff dot cuni dot cz> <5296555 dot IcPf3kD4Th at polaris>
> It's apparently another bug in the DCE pass.
But it comes from a stalled ABNORMAL flag after the FRE3 pass so:
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c (revision 231856)
+++ tree-ssa-pre.c (working copy)
@@ -4128,6 +4128,14 @@ eliminate_dom_walker::before_dom_childre
print_gimple_stmt (dump_file, stmt, 0, 0);
}
+ if (is_gimple_call (stmt)
+ && stmt_can_make_abnormal_goto (stmt))
+ {
+ bitmap_set_bit (need_ab_cleanup, gimple_bb (stmt)-
>index);
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file, " Removed AB side-effects.\n");
+ }
+
pre_stats.eliminations++;
continue;
}
is apparently sufficient. Testing...
--
Eric Botcazou