(assign_parms): Clear STACK_PARM when we have a
pass-by-pointer parm that we load into a pseudo. From-SVN: r6098
This commit is contained in:
parent
a3579a47d1
commit
c110c53d6e
|
@ -3412,6 +3412,9 @@ assign_parms (fndecl, second_time)
|
||||||
parmreg = gen_reg_rtx (TYPE_MODE (TREE_TYPE (parm)));
|
parmreg = gen_reg_rtx (TYPE_MODE (TREE_TYPE (parm)));
|
||||||
emit_move_insn (parmreg, DECL_RTL (parm));
|
emit_move_insn (parmreg, DECL_RTL (parm));
|
||||||
DECL_RTL (parm) = parmreg;
|
DECL_RTL (parm) = parmreg;
|
||||||
|
/* STACK_PARM is the pointer, not the parm, and PARMREG is
|
||||||
|
now the parm. */
|
||||||
|
stack_parm = 0;
|
||||||
}
|
}
|
||||||
#ifdef FUNCTION_ARG_CALLEE_COPIES
|
#ifdef FUNCTION_ARG_CALLEE_COPIES
|
||||||
/* If we are passed an arg by reference and it is our responsibility
|
/* If we are passed an arg by reference and it is our responsibility
|
||||||
|
|
Loading…
Reference in New Issue