summaryrefslogtreecommitdiff
path: root/patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-28 21:08:01 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-28 21:08:01 (GMT)
commit3bf3f54ed10aec366066d796186eea63c4169ad2 (patch)
tree7d93c27bc08120f4b538bc9bda81f2213c506e8d /patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch
parent661dd3046d48cef51e2053bc8e8ac8a1fd7fb26f (diff)
Third go at renaming patches to contain neither the package name nor the package version.
Diffstat (limited to 'patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch')
-rw-r--r--patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch b/patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch
deleted file mode 100644
index 395c516..0000000
--- a/patches/gcc/3.4.6/601-gcc34-arm-ldm-peephole2.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -durN gcc-3.4.6.orig/gcc/config/arm/arm.c gcc-3.4.6/gcc/config/arm/arm.c
---- gcc-3.4.6.orig/gcc/config/arm/arm.c 2007-08-15 22:57:51.000000000 +0200
-+++ gcc-3.4.6/gcc/config/arm/arm.c 2007-08-15 22:57:51.000000000 +0200
-@@ -4572,6 +4572,10 @@
- int
- adjacent_mem_locations (rtx a, rtx b)
- {
-+ /* We don't guarantee to preserve the order of these memory refs. */
-+ if (volatile_refs_p (a) || volatile_refs_p (b))
-+ return 0;
-+
- if ((GET_CODE (XEXP (a, 0)) == REG
- || (GET_CODE (XEXP (a, 0)) == PLUS
- && GET_CODE (XEXP (XEXP (a, 0), 1)) == CONST_INT))
-@@ -4611,6 +4615,17 @@
- return 0;
-
- val_diff = val1 - val0;
-+
-+ if (arm_ld_sched)
-+ {
-+ /* If the target has load delay slots, then there's no benefit
-+ to using an ldm instruction unless the offset is zero and
-+ we are optimizing for size. */
-+ return (optimize_size && (REGNO (reg0) == REGNO (reg1))
-+ && (val0 == 0 || val1 == 0 || val0 == 4 || val1 == 4)
-+ && (val_diff == 4 || val_diff == -4));
-+ }
-+
- return ((REGNO (reg0) == REGNO (reg1))
- && (val_diff == 4 || val_diff == -4));
- }