Commit 10568ad0 by Jim Wilson

(save_for_inline_copying): Allocate reg_map with size

based on regno_pointer_flag_length instead of max_reg+1.

From-SVN: r11279
parent f639f6b6
...@@ -474,7 +474,7 @@ save_for_inline_copying (fndecl) ...@@ -474,7 +474,7 @@ save_for_inline_copying (fndecl)
Make these new rtx's now, and install them in regno_reg_rtx, so they Make these new rtx's now, and install them in regno_reg_rtx, so they
will be the official pseudo-reg rtx's for the rest of compilation. */ will be the official pseudo-reg rtx's for the rest of compilation. */
reg_map = (rtx *) savealloc ((max_reg + 1) * sizeof (rtx)); reg_map = (rtx *) savealloc (regno_pointer_flag_length * sizeof (rtx));
len = sizeof (struct rtx_def) + (GET_RTX_LENGTH (REG) - 1) * sizeof (rtunion); len = sizeof (struct rtx_def) + (GET_RTX_LENGTH (REG) - 1) * sizeof (rtunion);
for (i = max_reg - 1; i > LAST_VIRTUAL_REGISTER; i--) for (i = max_reg - 1; i > LAST_VIRTUAL_REGISTER; i--)
......
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