From 0c0600d5d578c46eab15040d81cf2029ecdea225 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 3 Oct 1993 21:41:25 -0400 Subject: (expand_call): Set MEM_IN_STRUCT_P in stack slot if appropriate. From-SVN: r5578 --- gcc/calls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc') diff --git a/gcc/calls.c b/gcc/calls.c index e76412c..3c8f04b 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1449,6 +1449,11 @@ expand_call (exp, target, ignore) addr = plus_constant (addr, arg_offset); args[i].stack = gen_rtx (MEM, args[i].mode, addr); + MEM_IN_STRUCT_P (args[i].stack) + = (TREE_CODE (TREE_TYPE (args[i].tree_value)) == RECORD_TYPE + || TREE_CODE (TREE_TYPE (args[i].tree_value)) == UNION_TYPE + || TREE_CODE (TREE_TYPE (args[i].tree_value)) == QUAL_UNION_TYPE + || TREE_CODE (TREE_TYPE (args[i].tree_value)) == ARRAY_TYPE); if (GET_CODE (slot_offset) == CONST_INT) addr = plus_constant (arg_reg, INTVAL (slot_offset)); -- cgit v1.1