aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
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++)
{