diff options
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r-- | gcc/dominance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c index a9411d40431..38182ef5318 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -133,10 +133,10 @@ void debug_dominance_info (dominance_info); { \ unsigned int i = 1; /* Catch content == i. */ \ if (! (content)) \ - (var) = (type *) xcalloc ((num), sizeof (type)); \ + (var) = xcalloc ((num), sizeof (type)); \ else \ { \ - (var) = (type *) xmalloc ((num) * sizeof (type)); \ + (var) = xmalloc ((num) * sizeof (type)); \ for (i = 0; i < num; i++) \ (var)[i] = (content); \ } \ @@ -212,7 +212,7 @@ calc_dfs_tree_nonrec (struct dom_info *di, basic_block bb, enum cdi_direction re /* Ending block. */ basic_block ex_block; - stack = (edge *) xmalloc ((n_basic_blocks + 3) * sizeof (edge)); + stack = xmalloc ((n_basic_blocks + 3) * sizeof (edge)); sp = 0; /* Initialize our border blocks, and the first edge. */ @@ -545,7 +545,7 @@ calculate_dominance_info (enum cdi_direction reverse) dominance_info info; basic_block b; - /* allocate structure for dominance information. */ + /* Allocate structure for dominance information. */ info = xmalloc (sizeof (struct dominance_info)); info->forest = et_forest_create (); VARRAY_GENERIC_PTR_INIT (info->varray, last_basic_block + 3, "dominance info"); |