Commit 19fdd3ee by Richard Stallman

(assign_parms): Don't copy too much when extending parm_reg_stack_loc.

From-SVN: r5004
parent 86615a62
......@@ -3295,9 +3295,11 @@ assign_parms (fndecl, second_time)
if (REGNO (parmreg) >= nparmregs)
{
rtx *new;
int old_nparmregs = nparmregs;
nparmregs = REGNO (parmreg) + 5;
new = (rtx *) oballoc (nparmregs * sizeof (rtx));
bcopy (parm_reg_stack_loc, new, nparmregs * sizeof (rtx));
bcopy (parm_reg_stack_loc, new, old_nparmregs * sizeof (rtx));
bzero (new + old_nparmregs, (nparmregs - old_nparmregs) * sizeof (rtx));
parm_reg_stack_loc = new;
}
parm_reg_stack_loc[REGNO (parmreg)] = stack_parm;
......
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