diff options
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch')
-rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch new file mode 100644 index 000000000..be71a2f64 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/linaro-lp815435.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | 2011-07-29 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
2 | |||
3 | gcc/ | ||
4 | Backport only bits marked as [*] from mainline: | ||
5 | 2010-12-19 Chung-Lin Tang <cltang@codesourcery.com> | ||
6 | |||
7 | * config/arm/arm.c ([*]arm_legitimate_index_p): Add VFP load/store | ||
8 | index range case. Change to SF/DFmode tests to avoid capturing HFmode. | ||
9 | (thumb2_legitimate_index_p): Same. | ||
10 | |||
11 | Index: gcc-4_5-branch/gcc/config/arm/arm.c | ||
12 | =================================================================== | ||
13 | --- gcc-4_5-branch.orig/gcc/config/arm/arm.c 2011-07-22 17:56:51.000000000 -0700 | ||
14 | +++ gcc-4_5-branch/gcc/config/arm/arm.c 2011-07-29 14:43:42.171610966 -0700 | ||
15 | @@ -5631,8 +5631,8 @@ arm_legitimate_index_p (enum machine_mod | ||
16 | |||
17 | /* Standard coprocessor addressing modes. */ | ||
18 | if (TARGET_HARD_FLOAT | ||
19 | - && (TARGET_FPA || TARGET_MAVERICK) | ||
20 | - && (GET_MODE_CLASS (mode) == MODE_FLOAT | ||
21 | + && (TARGET_FPA || TARGET_MAVERICK || TARGET_VFP) | ||
22 | + && ((mode == SFmode || mode == DFmode) | ||
23 | || (TARGET_MAVERICK && mode == DImode))) | ||
24 | return (code == CONST_INT && INTVAL (index) < 1024 | ||
25 | && INTVAL (index) > -1024 | ||