summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch')
-rw-r--r--meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch
new file mode 100644
index 0000000000..2f41a0a73c
--- /dev/null
+++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch
@@ -0,0 +1,22 @@
12011-03-03 Richard Sandiford <richard.sandiford@linaro.org>
2
3 gcc/
4 * ee.c (reg_use_p): Handle subregs of promoted vars.
5
6=== modified file 'gcc/ee.c'
7--- old/gcc/ee.c 2010-12-10 15:33:37 +0000
8+++ new/gcc/ee.c 2011-03-03 17:08:58 +0000
9@@ -209,7 +209,11 @@
10
11 *regno = REGNO (reg);
12
13- if (paradoxical_subreg_p (use))
14+ /* Non-paradoxical SUBREGs of promoted vars guarantee that the
15+ upper (elided) bits of the inner register have a particular value.
16+ For our purposes, such SUBREGs act as a full reference to the
17+ inner register. */
18+ if (paradoxical_subreg_p (use) || SUBREG_PROMOTED_VAR_P (use))
19 *size = GET_MODE_BITSIZE (GET_MODE (reg));
20 else
21 *size = subreg_lsb (use) + GET_MODE_BITSIZE (GET_MODE (use));
22