xtensa.c (function_arg): Generalize logic so that it handles complex and vector modes.
authorBob Wilson <bob.wilson@acm.org>
Thu, 22 Jan 2004 21:42:33 +0000 (21:42 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Thu, 22 Jan 2004 21:42:33 +0000 (21:42 +0000)
* config/xtensa/xtensa.c (function_arg): Generalize logic so that it
handles complex and vector modes.

From-SVN: r76373

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 6a33f576e19a85f81024fe952c4abf026c26e454..6c632630aa2c10745ba99ff0d5f78e1262942464 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-22  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
+       handles complex and vector modes.
+
 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
index e8926c9c1e36c6eace948e6914fb7b767b69586c..d7e2902c2774deabebaeae467f884d954a8129ba 100644 (file)
@@ -1753,12 +1753,12 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
   result_mode = (mode == BLKmode ? TYPE_MODE (type) : mode);
 
   /* We need to make sure that references to a7 are represented with
-     rtx that is not equal to hard_frame_pointer_rtx.  For BLKmode and
-     modes bigger than 2 words (because we only have patterns for
-     modes of 2 words or smaller), we can't control the expansion
-     unless we explicitly list the individual registers in a PARALLEL.  */
+     rtx that is not equal to hard_frame_pointer_rtx.  For multi-word
+     modes for which we don't define move patterns, we can't control
+     the expansion unless we explicitly list the individual registers
+     in a PARALLEL.  */
 
-  if ((mode == BLKmode || words > 2)
+  if (mode != DImode && mode != DFmode
       && regno < A7_REG
       && regno + words > A7_REG)
     {