030-fix-arm-codegen-PR-65932.patch 653 B

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