summaryrefslogtreecommitdiffstats
path: root/gcc/conflict.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/conflict.c')
-rw-r--r--gcc/conflict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/conflict.c b/gcc/conflict.c
index 1b63e3b1c2c..43f7860820e 100644
--- a/gcc/conflict.c
+++ b/gcc/conflict.c
@@ -147,7 +147,7 @@ arc_eq (const void *arcp1, const void *arcp2)
conflict_graph
conflict_graph_new (int num_regs)
{
- conflict_graph graph = xmalloc (sizeof (struct conflict_graph_def));
+ conflict_graph graph = XNEW (struct conflict_graph_def);
graph->num_regs = num_regs;
/* Set up the hash table. No delete action is specified; memory
@@ -159,7 +159,7 @@ conflict_graph_new (int num_regs)
obstack_init (&graph->arc_obstack);
/* Create and zero the lookup table by register number. */
- graph->neighbor_heads = xcalloc (num_regs, sizeof (conflict_graph_arc));
+ graph->neighbor_heads = XCNEWVEC (conflict_graph_arc, num_regs);
return graph;
}
OpenPOWER on IntegriCloud