This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50764] [4.7 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -O2 -fsched2-use-superblocks -ftree-tail-merge
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Oct 2011 12:28:23 +0000
- Subject: [Bug rtl-optimization/50764] [4.7 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -O2 -fsched2-use-superblocks -ftree-tail-merge
- Auto-submitted: auto-generated
- References: <bug-50764-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50764
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |rtl-optimization
--- Comment #7 from vries at gcc dot gnu.org 2011-10-29 12:28:23 UTC ---
Using this patch, the dead label introduced by cfg_layout_finalize is removed:
...
Index: gcc/bb-reorder.c
===================================================================
--- gcc/bb-reorder.c (revision 180521)
+++ gcc/bb-reorder.c (working copy)
@@ -2328,6 +2328,7 @@ rest_of_handle_reorder_blocks (void)
if (bb->next_bb != EXIT_BLOCK_PTR)
bb->aux = bb->next_bb;
cfg_layout_finalize ();
+ cleanup_cfg (0);
/* Add NOTE_INSN_SWITCH_TEXT_SECTIONS notes. */
insert_section_boundary_note ();
...
and the assert triggers for -O2 -fsched2-use-superblocks -fno-tree-tail-merge.
Changing component to rtl-optimization.