* config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
authorAlan Modra <amodra@bigpond.net.au>
Thu, 18 Nov 2004 22:30:58 +0000 (22:30 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 18 Nov 2004 22:30:58 +0000 (09:00 +1030)
From-SVN: r90883

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2cb26b672dd4d7979ccb4ee0ec3f7263a5f71377..c0e24369fb14c88efbe1d0de41929126855c1df7 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
+
 2004-11-18  Nicolas Pitre <nico@cam.org>
 
        * config/arm/arm.c (const_double_needs_minipool): New function to
index 2e404efa8c7b9a264d1da2f3f23144f545857897..7bf65545d8b586860d30d23e6b240b0fb77f8f15 100644 (file)
@@ -5525,6 +5525,9 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
          if (TARGET_32BIT && TARGET_POWERPC64)
            return rs6000_mixed_function_arg (mode, type, align_words);
 
+         if (mode == BLKmode)
+           mode = Pmode;
+
          return gen_rtx_REG (mode, GP_ARG_MIN_REG + align_words);
        }
       else