gcc: add a bugfix for an internal compiler error on mips64
[openwrt/openwrt.git] / toolchain / gcc / patches / 4.6.3 / 030-gcc_bug_48403.patch
1 --- a/gcc/haifa-sched.c
2 +++ b/gcc/haifa-sched.c
3 @@ -4654,10 +4654,12 @@ schedule_block (basic_block *target_bb)
4
5 if (recog_memoized (insn) >= 0)
6 {
7 + memcpy (temp_state, curr_state, dfa_state_size);
8 cost = state_transition (curr_state, insn);
9 if (sched_pressure != SCHED_PRESSURE_WEIGHTED)
10 gcc_assert (cost < 0);
11 - cycle_issued_insns++;
12 + if (memcmp (temp_state, curr_state, dfa_state_size) != 0)
13 + cycle_issued_insns++;
14 asm_p = false;
15 }
16 else