(assign_parms): Set MEM_IN_STRUCT_P right in stack slots.

From-SVN: r2157
This commit is contained in:
Richard Stallman 1992-09-19 04:46:22 +00:00
parent 73bdfabc83
commit 7e41ffa25c

View File

@ -2859,8 +2859,14 @@ assign_parms (fndecl, second_time)
if it becomes a problem. */ if it becomes a problem. */
if (stack_parm == 0) if (stack_parm == 0)
stack_parm {
= assign_stack_local (GET_MODE (entry_parm), size_stored, 0); stack_parm
= assign_stack_local (GET_MODE (entry_parm), size_stored, 0);
/* If this is a memory ref that contains aggregate components,
mark it as such for cse and loop optimize. */
MEM_IN_STRUCT_P (stack_parm) = aggregate;
}
else if (PARM_BOUNDARY % BITS_PER_WORD != 0) else if (PARM_BOUNDARY % BITS_PER_WORD != 0)
abort (); abort ();
@ -2989,8 +2995,15 @@ assign_parms (fndecl, second_time)
if (entry_parm != stack_parm) if (entry_parm != stack_parm)
{ {
if (stack_parm == 0) if (stack_parm == 0)
stack_parm = assign_stack_local (GET_MODE (entry_parm), {
GET_MODE_SIZE (GET_MODE (entry_parm)), 0); stack_parm
= assign_stack_local (GET_MODE (entry_parm),
GET_MODE_SIZE (GET_MODE (entry_parm)), 0);
/* If this is a memory ref that contains aggregate components,
mark it as such for cse and loop optimize. */
MEM_IN_STRUCT_P (stack_parm) = aggregate;
}
emit_move_insn (validize_mem (stack_parm), emit_move_insn (validize_mem (stack_parm),
validize_mem (entry_parm)); validize_mem (entry_parm));
} }