From 326ebbac11b7afe23ea0ca8e3a213f381712ff27 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 1 Aug 2011 13:35:25 -0700 Subject: gcc-4.6: Bring in linaro patches upto 07.2011 release Signed-off-by: Khem Raj --- .../gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch') diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch new file mode 100644 index 0000000000..5335a9e375 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106782.patch @@ -0,0 +1,27 @@ +2011-07-21 Richard Sandiford + + gcc/ + Backport from mainline: + + 2011-07-21 Richard Sandiford + + * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK. + +=== modified file 'gcc/regcprop.c' +--- old/gcc/regcprop.c 2010-12-17 22:51:25 +0000 ++++ new/gcc/regcprop.c 2011-07-21 11:30:53 +0000 +@@ -418,10 +418,9 @@ + + offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0) + + (BYTES_BIG_ENDIAN ? byteoffset : 0)); +- return gen_rtx_raw_REG (new_mode, +- regno + subreg_regno_offset (regno, orig_mode, +- offset, +- new_mode)); ++ regno += subreg_regno_offset (regno, orig_mode, offset, new_mode); ++ if (HARD_REGNO_MODE_OK (regno, new_mode)) ++ return gen_rtx_raw_REG (new_mode, regno); + } + return NULL_RTX; + } + -- cgit v1.2.3-54-g00ecf