[backport r172006 for the second and final fix to PR48403 regression from r171843 ] gcc/ 2011-04-05 Bernd Schmidt PR bootstrap/48403 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only if old and new states differ. --- gcc-4.7-20110402/gcc/haifa-sched.c.~1~ 2011-04-19 20:50:48.000000000 +0200 +++ gcc-4.7-20110402/gcc/haifa-sched.c 2011-04-19 20:53:20.000000000 +0200 @@ -3230,10 +3230,12 @@ schedule_block (basic_block *target_bb) if (recog_memoized (insn) >= 0) { + memcpy (temp_state, curr_state, dfa_state_size); cost = state_transition (curr_state, insn); if (!flag_sched_pressure) gcc_assert (cost < 0); - cycle_issued_insns++; + if (memcmp (temp_state, curr_state, dfa_state_size) != 0) + cycle_issued_insns++; asm_p = false; } else