aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-11-04 16:49:03 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-11-04 16:49:03 -0800
commite7749837caaa5c7a7fddea3e8eb90b852cead3d6 (patch)
tree36caca6632c74bf9cd783c44f1c99239c1b55570 /gcc/stmt.c
parent920a303df913c5bcc6912ce722bee38e8fc04197 (diff)
downloadgcc-e7749837caaa5c7a7fddea3e8eb90b852cead3d6.zip
gcc-e7749837caaa5c7a7fddea3e8eb90b852cead3d6.tar.gz
gcc-e7749837caaa5c7a7fddea3e8eb90b852cead3d6.tar.bz2
bitmap.h (BITMAP_XFREE): New.
* bitmap.h (BITMAP_XFREE): New. * flow.c (life_analysis): Use it. (life_analysis_1): Free blocks. * combine.c (undo_commit): New. (try_combine): Use it. Don't zap undobuf.undos. (combine_instructions): Don't zap undobuf.undos; free the undobuf.frees list. * local-alloc.c (local_alloc): Free qty_phys_num_sugg. * stmt.c (cost_table_): New. (estimate_case_costs): Use it instead of xmalloc. * toplev.c (compile_file): Reuse dumpname memory instead of strdup'ing it. From-SVN: r30404
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index f38b94f..17a2402 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -106,6 +106,7 @@ typedef struct case_node *case_node_ptr;
/* These are used by estimate_case_costs and balance_case_nodes. */
/* This must be a signed type, and non-ANSI compilers lack signed char. */
+static short cost_table_[129];
static short *cost_table;
static int use_cost_table;
@@ -5694,7 +5695,7 @@ estimate_case_costs (node)
if (cost_table == NULL)
{
- cost_table = ((short *) xcalloc (129, sizeof (short))) + 1;
+ cost_table = cost_table_ + 1;
for (i = 0; i < 128; i++)
{