030-gcc_bug_48403.patch 509 B

12345678910111213141516
  1. --- a/gcc/haifa-sched.c
  2. +++ b/gcc/haifa-sched.c
  3. @@ -4654,10 +4654,12 @@ schedule_block (basic_block *target_bb)
  4. if (recog_memoized (insn) >= 0)
  5. {
  6. + memcpy (temp_state, curr_state, dfa_state_size);
  7. cost = state_transition (curr_state, insn);
  8. if (sched_pressure != SCHED_PRESSURE_WEIGHTED)
  9. gcc_assert (cost < 0);
  10. - cycle_issued_insns++;
  11. + if (memcmp (temp_state, curr_state, dfa_state_size) != 0)
  12. + cycle_issued_insns++;
  13. asm_p = false;
  14. }
  15. else