diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-02-15 13:48:26 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-02-15 13:48:26 -0800 |
commit | 10568ad0dd64fc868941cb4f21d05ac802708c24 (patch) | |
tree | 82c95fb70b0c0a6e72d68383287d454110b96742 /gcc/integrate.c | |
parent | f639f6b6ff9b3db42b74fcbd679d587e7b70f4b4 (diff) | |
download | gcc-10568ad0dd64fc868941cb4f21d05ac802708c24.tar.gz |
(save_for_inline_copying): Allocate reg_map with size
based on regno_pointer_flag_length instead of max_reg+1.
From-SVN: r11279
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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--) |