This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/79386] [7 Regression] ICE: segmentation fault in cprop w/ -O2 on 32-bit BE powerpc
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2017 13:10:56 +0000
- Subject: [Bug rtl-optimization/79386] [7 Regression] ICE: segmentation fault in cprop w/ -O2 on 32-bit BE powerpc
- Auto-submitted: auto-generated
- References: <bug-79386-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79386
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- cprop.c.jj2 2017-01-30 09:31:48.000000000 +0100
+++ cprop.c 2017-02-06 14:09:24.316978439 +0100
@@ -1697,7 +1697,6 @@ bypass_conditional_jumps (void)
if (ENTRY_BLOCK_PTR_FOR_FN (cfun)->next_bb == EXIT_BLOCK_PTR_FOR_FN (cfun))
return 0;
- bypass_last_basic_block = last_basic_block_for_fn (cfun);
mark_dfs_back_edges ();
changed = 0;
@@ -1863,6 +1862,8 @@ one_cprop_pass (void)
}
}
+ bypass_last_basic_block = last_basic_block_for_fn (cfun);
+
while (!uncond_traps.is_empty ())
{
rtx_insn *insn = uncond_traps.pop ();
fixes the ICE, the basic blocks after the unconditional traps should be dead
code, so no point in transforming anything in those anyway.