Commit 2654605a by Jim Wilson

(assign_parms): When copy arg passed by invisible

reference to pseudo reg, don't use nominal_mode.

From-SVN: r1876
parent 3c3fa147
......@@ -2879,7 +2879,9 @@ assign_parms (fndecl, second_time)
|| (flag_float_store
&& TREE_CODE (TREE_TYPE (parm)) == REAL_TYPE)))
{
parmreg = gen_reg_rtx (nominal_mode);
/* We can't use nominal_mode, because it will have been set to
Pmode above. We must use the actual mode of the parm. */
parmreg = gen_reg_rtx (TYPE_MODE (TREE_TYPE (parm)));
emit_move_insn (parmreg, DECL_RTL (parm));
DECL_RTL (parm) = parmreg;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment