From 96922e4c5885cd77db84aa9526d444759a3ca630 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 16 Jan 2015 17:31:37 +0100 Subject: [PATCH] rs6000.h (PROMOTE_MODE): Correct test for when -m32 -mpowerpc64 is active. * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32 -mpowerpc64 is active. From-SVN: r219750 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b77b827328c..76ccc9d580a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-16 Segher Boessenkool + + * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32 + -mpowerpc64 is active. + 2015-01-16 Ilya Enkovich PR middle-end/64353 diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index c55d7ed516b..ef6bb2f7a53 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -733,7 +733,7 @@ extern unsigned char rs6000_recip_bits[]; #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE) \ if (GET_MODE_CLASS (MODE) == MODE_INT \ - && GET_MODE_SIZE (MODE) < UNITS_PER_WORD) \ + && GET_MODE_SIZE (MODE) < (TARGET_32BIT ? 4 : 8)) \ (MODE) = TARGET_32BIT ? SImode : DImode; /* Define this if most significant bit is lowest numbered -- 2.30.2