aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-08 04:56:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-08 04:56:18 +0000
commit4da896b292ef313d2c365eefc33c088f77f71baf (patch)
tree208424c6ec3b805174618dc54704dbe65bd2d6fc /gcc/function.c
parent8d170590175c07873ad68a42c5cc98457edba4d9 (diff)
downloadgcc-4da896b292ef313d2c365eefc33c088f77f71baf.zip
gcc-4da896b292ef313d2c365eefc33c088f77f71baf.tar.gz
gcc-4da896b292ef313d2c365eefc33c088f77f71baf.tar.bz2
cse.c (delete_trivially_dead_insns): Replace alloca with xmalloc/xcalloc.
* cse.c (delete_trivially_dead_insns): Replace alloca with xmalloc/xcalloc. * except.c (update_rethrow_references): Likewise. (init_eh_nesting_info): Likewise. * function.c (identify_blocks): Likewise. * gcse.c (dump_hash_table): Likewise. * graph.c (print_rtl_graph_with_bb): Likewise. * loop.c (combine_movables): Likewise. (move_movables): Likewise. (count_loop_regs_set): Likewise. (strength_reduce): Likewise. * profile.c (compute_branch_probabilities): New function, split out from ... (branch_prob): Here. Replace alloca with xmalloc/xcalloc. * regclass.c (regclass): Likewise. * regmove.c (regmove_optimize): Likewise. * toplev.c (compile_file): Likewise. (main): Don't mess with the stack rlimit. From-SVN: r30445
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index aacbdff..edf979f 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5558,7 +5558,7 @@ identify_blocks (block, insns)
block_vector = (tree *) xmalloc (n_blocks * sizeof (tree));
all_blocks (block, block_vector);
- block_stack = (tree *) alloca (n_blocks * sizeof (tree));
+ block_stack = (tree *) xmalloc (n_blocks * sizeof (tree));
for (insn = insns; insn; insn = NEXT_INSN (insn))
if (GET_CODE (insn) == NOTE)
@@ -5594,6 +5594,7 @@ identify_blocks (block, insns)
abort ();
free (block_vector);
+ free (block_stack);
}
/* Given a revised instruction chain, rebuild the tree structure of