diff mbox

[3/6] rs6000: Fix SDmode varargs for -m32 -mpowerpc64

Message ID 262abeac6ba3ac8c4c8903f783399683fe56a3f6.1421482716.git.segher@kernel.crashing.org
State New
Headers show

Commit Message

Segher Boessenkool Jan. 17, 2015, 8:48 a.m. UTC
This fixes 26 FAILs.


2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/
	* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
	to test for 32-bit ABIs, not !TARGET_POWERPC64.

---
 gcc/config/rs6000/rs6000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Edelsohn Jan. 17, 2015, 2:30 p.m. UTC | #1
On Sat, Jan 17, 2015 at 3:48 AM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> This fixes 26 FAILs.
>
>
> 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
>
> gcc/
>         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
>         to test for 32-bit ABIs, not !TARGET_POWERPC64.

Okay.

Thanks, David
diff mbox

Patch

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 53bee13..4807ad6 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -11508,7 +11508,7 @@  rs6000_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p,
 
       /* _Decimal32 varargs are located in the second word of the 64-bit
 	 FP register for 32-bit binaries.  */
-      if (!TARGET_POWERPC64
+      if (TARGET_32BIT
 	  && TARGET_HARD_FLOAT && TARGET_FPRS
 	  && TYPE_MODE (type) == SDmode)
 	t = fold_build_pointer_plus_hwi (t, size);