From 4da896b292ef313d2c365eefc33c088f77f71baf Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 8 Nov 1999 04:56:18 +0000 Subject: 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 --- gcc/function.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/function.c') 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 -- cgit v1.1