aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch
diff options
context:
space:
mode:
authorJames <>2015-11-04 11:49:21 +0000
committerJames <>2015-11-04 11:49:21 +0000
commit716ca530e1c4515d8683c9d5be3d56b301758b66 (patch)
tree700eb5bcc1a462a5f21dcec15ce7c97ecfefa772 /toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch
downloadtrunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.tar.gz
trunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.tar.bz2
trunk-47381-716ca530e1c4515d8683c9d5be3d56b301758b66.zip
trunk-47381HEADmaster
Diffstat (limited to 'toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch')
-rw-r--r--toolchain/gcc/patches/4.6-linaro/030-gcc_bug_48403.patch16
1 files changed, 16 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 0000000..69569de
--- /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