From ffafb4f0392d2c52f1de8ae738dfa29f7afbdc3b Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Sat, 17 Jan 2015 22:04:23 +0100 Subject: [PATCH] rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT to test for 32-bit ABIs, not !TARGET_POWERPC64. * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT to test for 32-bit ABIs, not !TARGET_POWERPC64. From-SVN: r219805 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc5fd061099..1e28484a5f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-17 Segher Boessenkool + + * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT + to test for 32-bit ABIs, not !TARGET_POWERPC64. + 2015-01-17 Segher Boessenkool * config/rs6000/rs6000.c (rs6000_parallel_return): New function. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 551181ba7a5..80fcd655fff 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11471,7 +11471,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); -- 2.30.2