diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 10:11:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 10:11:07 +0000 |
commit | effe9133001d797079592e848a9fb23f6c5138e9 (patch) | |
tree | c455cbccced931eea9c7a41fd0c632a25f2cf36a /toolchain/gcc/patches | |
parent | 01695667a89785538d92a65f85c739ad27a5db09 (diff) | |
download | upstream-effe9133001d797079592e848a9fb23f6c5138e9.tar.gz upstream-effe9133001d797079592e848a9fb23f6c5138e9.tar.bz2 upstream-effe9133001d797079592e848a9fb23f6c5138e9.zip |
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
Diffstat (limited to 'toolchain/gcc/patches')
-rw-r--r-- | toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch | 16 | ||||
-rw-r--r-- | toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch b/toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch new file mode 100644 index 0000000000..69569de763 --- /dev/null +++ b/toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch @@ -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 diff --git a/toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch b/toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch new file mode 100644 index 0000000000..69569de763 --- /dev/null +++ b/toolchain/gcc/patches/4.6.3/030-gcc_bug_48403.patch @@ -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 |