summaryrefslogtreecommitdiffstats
path: root/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch')
-rw-r--r--toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
new file mode 100644
index 000000000..4419a2017
--- /dev/null
+++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
@@ -0,0 +1,35 @@
1Upstream-Status:Backport
22011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
3
4 gcc/
5 Backport from mainline:
6
7 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8
9 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
10 (arm_size_rtx_costs): Likewise.
11
12=== modified file 'gcc/config/arm/arm.c'
13--- old/gcc/config/arm/arm.c 2011-08-12 08:08:31 +0000
14+++ new/gcc/config/arm/arm.c 2011-08-18 13:53:37 +0000
15@@ -7464,6 +7464,9 @@
16 *total = COSTS_N_INSNS (4);
17 return true;
18
19+ case SET:
20+ return false;
21+
22 default:
23 *total = COSTS_N_INSNS (4);
24 return false;
25@@ -7811,6 +7814,9 @@
26 *total = COSTS_N_INSNS (1) + 1;
27 return true;
28
29+ case SET:
30+ return false;
31+
32 default:
33 if (mode != VOIDmode)
34 *total = COSTS_N_INSNS (ARM_NUM_REGS (mode));
35