aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-02-29 20:09:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-02-29 20:09:45 +0000
commit5168d43b16658db0bf17db9798715e4363fdf2bc (patch)
tree7b066ae98de3e213c632b3e934ead02d60af4efa /toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch
parent64fc5264cc4ee23fbf663e0658372eb4536bfce1 (diff)
downloadupstream-5168d43b16658db0bf17db9798715e4363fdf2bc.tar.gz
upstream-5168d43b16658db0bf17db9798715e4363fdf2bc.tar.bz2
upstream-5168d43b16658db0bf17db9798715e4363fdf2bc.zip
gcc: update gcc 5 to version 5.3.0
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48826
Diffstat (limited to 'toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch')
-rw-r--r--toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch b/toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch
new file mode 100644
index 0000000000..7f0b43c0e9
--- /dev/null
+++ b/toolchain/gcc/patches/5.3.0/030-fix-arm-codegen-PR-65932.patch
@@ -0,0 +1,21 @@
+Fix from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932
+
+--- a/gcc/config/arm/arm.h
++++ b/gcc/config/arm/arm.h
+@@ -628,16 +628,10 @@ extern int arm_arch_crc;
+ type, but kept valid in the wider mode. The signedness of the
+ extension may differ from that of the type. */
+
+-/* It is far faster to zero extend chars than to sign extend them */
+-
+ #define PROMOTE_MODE(MODE, UNSIGNEDP, TYPE) \
+ if (GET_MODE_CLASS (MODE) == MODE_INT \
+ && GET_MODE_SIZE (MODE) < 4) \
+ { \
+- if (MODE == QImode) \
+- UNSIGNEDP = 1; \
+- else if (MODE == HImode) \
+- UNSIGNEDP = 1; \
+ (MODE) = SImode; \
+ }
+