summaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-02 17:42:29 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-02 17:42:29 +0000
commitd4f88b816e3855a8f14e52bef2f91f3af67e5ec6 (patch)
treeb31ebbdef4679acf5d7432b7e58338a0348f6fd4 /gcc/config/m32r
parent4fde0ae6e74e3bb43735d3c896d23a03763182c9 (diff)
downloadgcc-d4f88b816e3855a8f14e52bef2f91f3af67e5ec6.tar.gz
Define MUST_PASS_IN_STACK to override default. (Fixes testsuite/gcc.c-execute/strct-stdarg-1.c)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20908 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/m32r.h6
1 files changed, 6 insertions, 0 deletions
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