This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/49941] [4.7 Regression] segmentation fault in redirect_jump_2
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 15:14:29 +0000
- Subject: [Bug rtl-optimization/49941] [4.7 Regression] segmentation fault in redirect_jump_2
- Auto-submitted: auto-generated
- References: <bug-49941-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49941
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P1 |P3
Target Milestone|4.7.0 |---
--- Comment #1 from Alan Modra <amodra at gmail dot com> 2011-08-02 15:14:01 UTC ---
This is the jump from fold-compare-3.c.198r.pro_and_epilogue
(jump_insn 8 7 9 2 (set (pc)
(if_then_else (ne (reg:CC 75 7 [122])
(const_int 0 [0]))
(return)
(pc)))
/home/amodra/src/gcc-current/gcc/testsuite/gcc.dg/fold-compare-3.c:30 662
{*rs6000.md:15325}
(expr_list:REG_BR_PROB (const_int 8010 [0x1f4a])
(nil))
-> return)
^^^^^^^^^--- and it has its label.
The label disappears in fold-compare-3.c.201r.peephole2
(jump_insn 26 25 9 2 (set (pc)
(if_then_else (ne (reg:CC 75 7 [122])
(const_int 0 [0]))
(return)
(pc)))
/home/amodra/src/gcc-current/gcc/testsuite/gcc.dg/fold-compare-3.c:30 -1
(nil))
Last define_peephole2 in rs6000.md is involved here.