diff options
author | Jeff Law <law@gcc.gnu.org> | 1997-10-07 23:18:17 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-10-07 23:18:17 -0600 |
commit | 253a01b4a68c55fa013bf94d73c60211b2e436a7 (patch) | |
tree | 64634e6d61bf9e5a2df481983c714ca63e164419 /gcc | |
parent | a6f025879ba98efb5a0fc222e6d279b26dcdf216 (diff) | |
download | gcc-253a01b4a68c55fa013bf94d73c60211b2e436a7.zip gcc-253a01b4a68c55fa013bf94d73c60211b2e436a7.tar.gz gcc-253a01b4a68c55fa013bf94d73c60211b2e436a7.tar.bz2 |
Fix thinko in last change.
From-SVN: r15874
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/integrate.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index aa3654e..71302c3 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1244,6 +1244,10 @@ expand_inline_function (fndecl, parms, target, ignore, type, rtvec arg_vector = ORIGINAL_ARG_VECTOR (header); rtx static_chain_value = 0; + /* The pointer used to track the true location of the memory used + for MAP->LABEL_MAP. */ + rtx *real_label_map = 0; + /* Allow for equivalences of the pseudos we make for virtual fp and ap. */ max_regno = MAX_REGNUM (header) + 3; if (max_regno < FIRST_PSEUDO_REGISTER) @@ -1383,8 +1387,9 @@ expand_inline_function (fndecl, parms, target, ignore, type, /* We used to use alloca here, but the size of what it would try to allocate would occasionally cause it to exceed the stack limit and cause unpredictable core dumps. */ - label_map = (rtx *) xmalloc ((max_labelno) * sizeof (rtx)); - map->label_map = label_map; + real_label_map + = (rtx *) xmalloc ((max_labelno) * sizeof (rtx)); + map->label_map = real_label_map; map->insn_map = (rtx *) alloca (INSN_UID (header) * sizeof (rtx)); bzero ((char *) map->insn_map, INSN_UID (header) * sizeof (rtx)); |