gcc: add a bugfix for an internal compiler error on mips64

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37601 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2013-07-29 10:11:07 +00:00
parent 01695667a8
commit effe913300
2 changed files with 32 additions and 0 deletions

View 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

View 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