rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT to test for 32-bit ABIs, not...
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 17 Jan 2015 21:04:23 +0000 (22:04 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 17 Jan 2015 21:04:23 +0000 (22:04 +0100)
* 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
gcc/config/rs6000/rs6000.c

index fc5fd061099e3b10d64b46d636592499649f7b70..1e28484a5f8cf1b315dc9ae75cf4c8039ecca87e 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * 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  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
index 551181ba7a5c19bfc712e6d0304baca98d2473bc..80fcd655ffffb643b09c20a1e8f9ebc7b44a583f 100644 (file)
@@ -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);