summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-23 23:03:25 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-23 23:03:25 +0000
commitecdd71417c62351fdd6db144eb508dbefa264e3e (patch)
tree5abc19b1ec1852dff43717bacc990a99a8cfdf9b /toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm
parent2b192f0815973e032c6f58c98043d0712bd6eede (diff)
downloadbuildroot-novena-ecdd71417c62351fdd6db144eb508dbefa264e3e.tar.gz
buildroot-novena-ecdd71417c62351fdd6db144eb508dbefa264e3e.zip
Fix unroll bug for ARM toolchain
Diffstat (limited to 'toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm')
-rw-r--r--toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm31
1 files changed, 31 insertions, 0 deletions
diff --git a/toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm b/toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm
new file mode 100644
index 000000000..dadaf32ac
--- /dev/null
+++ b/toolchain/gcc/4.3.2/306-arm-funroll-loops.patch.arm
@@ -0,0 +1,31 @@
+ChangeLog (regrename)
+
+ gcc/
+ * regrename.c: Unshare RTX earlier in build_def_use to avoid
+ corruption of dup_loc.
+
+
+Index: gcc/regrename.c
+===================================================================
+--- gcc/regrename.c (revision 197947)
++++ gcc/regrename.c (working copy)
+@@ -783,6 +783,10 @@ build_def_use (basic_block bb)
+ recog_data.operand_type[i] = OP_INOUT;
+ }
+
++ /* Unshare dup_loc RTL */
++ for (i = 0; i < recog_data.n_dups; i++)
++ *recog_data.dup_loc[i] = copy_rtx(*recog_data.dup_loc[i]);
++
+ /* Step 1: Close chains for which we have overlapping reads. */
+ for (i = 0; i < n_ops; i++)
+ scan_rtx (insn, recog_data.operand_loc[i],
+@@ -813,7 +817,7 @@ build_def_use (basic_block bb)
+ OP_IN, 0);
+
+ for (i = 0; i < recog_data.n_dups; i++)
+- *recog_data.dup_loc[i] = copy_rtx (old_dups[i]);
++ *recog_data.dup_loc[i] = old_dups[i];
+ for (i = 0; i < n_ops; i++)
+ *recog_data.operand_loc[i] = old_operands[i];
+ if (recog_data.n_dups)