https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60866
--- Comment #8 from Andrey Belevantsev <abel at gcc dot gnu.org> --- Author: abel Date: Tue Jun 3 10:08:58 2014 New Revision: 211169 URL: http://gcc.gnu.org/viewcvs?rev=211169&root=gcc&view=rev Log: Backport from mainline 2014-05-14 Andrey Belevantsev <a...@ispras.ru> PR rtl-optimization/60866 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno. Default it to -1. Pass it down to init_simplejump_data. (init_simplejump_data): New parameter old_seqno. Pass it down to get_seqno_for_a_jump. (get_seqno_for_a_jump): New parameter old_seqno. Use it for initializing new jump seqno as a last resort. Add comment. (sel_redirect_edge_and_branch): Save old seqno of the conditional jump and pass it down to sel_init_new_insn. (sel_redirect_edge_and_branch_force): Likewise. * gcc.dg/pr60866.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr60866.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/sel-sched-ir.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog