diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-04 21:38:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-04 21:38:15 +0000 |
commit | fff328fd4122020f0c77d2473db96dac033c45f7 (patch) | |
tree | ddb216be1adb900c5b415d95f6ed52059caa098e /toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch | |
parent | 200460fb548b87312b22542ca66b6265cc05aab6 (diff) | |
download | master-31e0f0ae-fff328fd4122020f0c77d2473db96dac033c45f7.tar.gz master-31e0f0ae-fff328fd4122020f0c77d2473db96dac033c45f7.tar.bz2 master-31e0f0ae-fff328fd4122020f0c77d2473db96dac033c45f7.zip |
toolchain/gcc (linaro): fix extension elimination optimization
This applies Richard Sandiford's patch for Linaro GCC as an alternative to disabling the Linaro-specific extension elimination optimization altogether.
Original patch: https://bugs.launchpad.net/gcc-linaro/+bug/728315
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 25871
Diffstat (limited to 'toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch')
-rw-r--r-- | toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch b/toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch new file mode 100644 index 0000000000..387e02a789 --- /dev/null +++ b/toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch @@ -0,0 +1,18 @@ +https://bugs.launchpad.net/gcc-linaro/+bug/728315 +https://lists.openwrt.org/pipermail/openwrt-devel/2011-March/009847.html + +--- a/gcc/ee.c ++++ b/gcc/ee.c +@@ -209,7 +209,11 @@ + + *regno = REGNO (reg); + +- if (paradoxical_subreg_p (use)) ++ /* Non-paradoxical SUBREGs of promoted vars guarantee that the ++ upper (elided) bits of the inner register have a particular value. ++ For our purposes, such SUBREGs act as a full reference to the ++ inner register. */ ++ if (paradoxical_subreg_p (use) || SUBREG_PROMOTED_VAR_P (use)) + *size = GET_MODE_BITSIZE (GET_MODE (reg)); + else + *size = subreg_lsb (use) + GET_MODE_BITSIZE (GET_MODE (use)); |