From: Nick Clifton Date: Thu, 2 Jul 1998 17:42:29 +0000 (+0000) Subject: Define MUST_PASS_IN_STACK to override default. (Fixes testsuite/gcc.c-execute/strct... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4abfe23513e94ae3f32839a24d93ff1b237f3197;p=gcc.git Define MUST_PASS_IN_STACK to override default. (Fixes testsuite/gcc.c-execute/strct-stdarg-1.c) From-SVN: r20908 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4169c6ebcca..5d7f90efdc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 2 17:41:14 1998 Nick Clifton + + * config/m32r/m32r.h (MUST_PASS_IN_STACK): Override default + version. + Thu Jul 2 14:34:48 1998 David Edelsohn * expr.h (STACK_SIZE_MODE): New macro. diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index 1503bdfcdd7..9028f014f32 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -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