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