gcc: add a bugfix for an internal compiler error on mips64
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37601
This commit is contained in:
parent
73c4d73d6d
commit
e00aaea5df
16
toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch
Normal file
16
toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- a/gcc/haifa-sched.c
|
||||
+++ b/gcc/haifa-sched.c
|
||||
@@ -4654,10 +4654,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 (sched_pressure != SCHED_PRESSURE_WEIGHTED)
|
||||
gcc_assert (cost < 0);
|
||||
- cycle_issued_insns++;
|
||||
+ if (memcmp (temp_state, curr_state, dfa_state_size) != 0)
|
||||
+ cycle_issued_insns++;
|
||||
asm_p = false;
|
||||
}
|
||||
else
|
16
toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch
Normal file
16
toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- a/gcc/haifa-sched.c
|
||||
+++ b/gcc/haifa-sched.c
|
||||
@@ -4654,10 +4654,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 (sched_pressure != SCHED_PRESSURE_WEIGHTED)
|
||||
gcc_assert (cost < 0);
|
||||
- cycle_issued_insns++;
|
||||
+ if (memcmp (temp_state, curr_state, dfa_state_size) != 0)
|
||||
+ cycle_issued_insns++;
|
||||
asm_p = false;
|
||||
}
|
||||
else
|
Loading…
Reference in New Issue
Block a user