diff options
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch new file mode 100644 index 0000000000..64d6262d60 --- /dev/null +++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99530.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | 2011-07-21 Richard Sandiford <rdsandiford@googlemail.com> | ||
2 | |||
3 | gcc/ | ||
4 | Backport from mainline: | ||
5 | |||
6 | 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org> | ||
7 | |||
8 | * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK. | ||
9 | |||
10 | === modified file 'gcc/regcprop.c' | ||
11 | --- old/gcc/regcprop.c 2010-08-05 15:28:47 +0000 | ||
12 | +++ new/gcc/regcprop.c 2011-07-21 12:40:44 +0000 | ||
13 | @@ -418,10 +418,9 @@ | ||
14 | |||
15 | offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0) | ||
16 | + (BYTES_BIG_ENDIAN ? byteoffset : 0)); | ||
17 | - return gen_rtx_raw_REG (new_mode, | ||
18 | - regno + subreg_regno_offset (regno, orig_mode, | ||
19 | - offset, | ||
20 | - new_mode)); | ||
21 | + regno += subreg_regno_offset (regno, orig_mode, offset, new_mode); | ||
22 | + if (HARD_REGNO_MODE_OK (regno, new_mode)) | ||
23 | + return gen_rtx_raw_REG (new_mode, regno); | ||
24 | } | ||
25 | return NULL_RTX; | ||
26 | } | ||
27 | |||