From 10568ad0dd64fc868941cb4f21d05ac802708c24 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 15 Feb 1996 13:48:26 -0800 Subject: [PATCH] (save_for_inline_copying): Allocate reg_map with size based on regno_pointer_flag_length instead of max_reg+1. From-SVN: r11279 --- gcc/integrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/integrate.c b/gcc/integrate.c index 4ecbfb27ea4..0d871bd4a1b 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -474,7 +474,7 @@ save_for_inline_copying (fndecl) 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. */ - 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); for (i = max_reg - 1; i > LAST_VIRTUAL_REGISTER; i--) -- 2.30.2