diff options
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99340.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99340.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99340.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99340.patch new file mode 100644 index 0000000000..31fa99a2e3 --- /dev/null +++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99340.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Merge from Sourcery G++ 4.4: | ||
2 | |||
3 | 2009-08-26 Kazu Hirata <kazu@codesourcery.com> | ||
4 | |||
5 | Issue #6089 | ||
6 | gcc/ | ||
7 | * config/arm/arm.c (arm_rtx_costs_1): Don't special case for | ||
8 | Thumb-2 in the MINUS case. | ||
9 | |||
10 | 2010-07-26 Julian Brown <julian@codesourcery.com> | ||
11 | |||
12 | Backport from FSF mainline: | ||
13 | |||
14 | gcc/ | ||
15 | |||
16 | === modified file 'gcc/config/arm/arm.c' | ||
17 | --- old/gcc/config/arm/arm.c 2010-08-12 13:35:39 +0000 | ||
18 | +++ new/gcc/config/arm/arm.c 2010-08-12 14:08:29 +0000 | ||
19 | @@ -6494,23 +6494,6 @@ | ||
20 | return true; | ||
21 | |||
22 | case MINUS: | ||
23 | - if (TARGET_THUMB2) | ||
24 | - { | ||
25 | - if (GET_MODE_CLASS (mode) == MODE_FLOAT) | ||
26 | - { | ||
27 | - if (TARGET_HARD_FLOAT && (mode == SFmode || mode == DFmode)) | ||
28 | - *total = COSTS_N_INSNS (1); | ||
29 | - else | ||
30 | - *total = COSTS_N_INSNS (20); | ||
31 | - } | ||
32 | - else | ||
33 | - *total = COSTS_N_INSNS (ARM_NUM_REGS (mode)); | ||
34 | - /* Thumb2 does not have RSB, so all arguments must be | ||
35 | - registers (subtracting a constant is canonicalized as | ||
36 | - addition of the negated constant). */ | ||
37 | - return false; | ||
38 | - } | ||
39 | - | ||
40 | if (mode == DImode) | ||
41 | { | ||
42 | *total = COSTS_N_INSNS (ARM_NUM_REGS (mode)); | ||
43 | |||