7f0b43c0e994cbf7a3938f166121d82add906f85
[openwrt/staging/yousong.git] / toolchain / gcc / patches / 5.2.0 / 030-fix-arm-codegen-PR-65932.patch
1 Fix from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932
2
3 --- a/gcc/config/arm/arm.h
4 +++ b/gcc/config/arm/arm.h
5 @@ -628,16 +628,10 @@ extern int arm_arch_crc;
6 type, but kept valid in the wider mode. The signedness of the
7 extension may differ from that of the type. */
8
9 -/* It is far faster to zero extend chars than to sign extend them */
10 -
11 #define PROMOTE_MODE(MODE, UNSIGNEDP, TYPE) \
12 if (GET_MODE_CLASS (MODE) == MODE_INT \
13 && GET_MODE_SIZE (MODE) < 4) \
14 { \
15 - if (MODE == QImode) \
16 - UNSIGNEDP = 1; \
17 - else if (MODE == HImode) \
18 - UNSIGNEDP = 1; \
19 (MODE) = SImode; \
20 }
21