Define MUST_PASS_IN_STACK to override default. (Fixes testsuite/gcc.c-execute/strct...
authorNick Clifton <nickc@cygnus.com>
Thu, 2 Jul 1998 17:42:29 +0000 (17:42 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 2 Jul 1998 17:42:29 +0000 (17:42 +0000)
From-SVN: r20908

gcc/ChangeLog
gcc/config/m32r/m32r.h

index 4169c6ebccaec6ada0f7be985b2543615432de0f..5d7f90efdc22b15ab69aae2c110cbb3c9d6f2954 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul  2 17:41:14 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * config/m32r/m32r.h (MUST_PASS_IN_STACK): Override default
+       version. 
+
 Thu Jul  2 14:34:48 1998  David Edelsohn  <edelsohn@mhpcc.edu>
 
        * expr.h (STACK_SIZE_MODE): New macro.
index 1503bdfcdd76f195200648a5ffc47a1e66bb4de5..9028f014f32b3f3cca5a8c41c3f3be012f290997 100644 (file)
@@ -843,6 +843,12 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size)
    SIZE is the number of bytes of arguments passed on the stack.  */
 #define RETURN_POPS_ARGS(DECL, FUNTYPE, SIZE) 0
 
+/* Nonzero if we do not know how to pass TYPE solely in registers. */
+#define MUST_PASS_IN_STACK(MODE,TYPE)                  \
+  ((TYPE) != 0                                         \
+   && (TREE_CODE (TYPE_SIZE (TYPE)) != INTEGER_CST     \
+       || TREE_ADDRESSABLE (TYPE)))
+
 /* Define a data type for recording info about an argument list
    during the scan of that argument list.  This data type should
    hold all necessary information about the function itself