diff options
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 515abb8..6acd69e 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -246,7 +246,7 @@ get_ssa_name_ann (tree name) if (!SSA_NAME_AUX (name)) SSA_NAME_AUX (name) = xcalloc (1, sizeof (struct ssa_name_info)); - return SSA_NAME_AUX (name); + return (struct ssa_name_info *) SSA_NAME_AUX (name); } @@ -365,7 +365,7 @@ get_def_blocks_for (tree var) slot = htab_find_slot (def_blocks, (void *) &db, INSERT); if (*slot == NULL) { - db_p = xmalloc (sizeof (*db_p)); + db_p = XNEW (struct def_blocks_d); db_p->var = var; db_p->def_blocks = BITMAP_ALLOC (NULL); db_p->phi_blocks = BITMAP_ALLOC (NULL); @@ -532,7 +532,7 @@ add_to_repl_tbl (tree new, tree old) slot = htab_find_slot (repl_tbl, (void *) &m, INSERT); if (*slot == NULL) { - mp = xmalloc (sizeof (*mp)); + mp = XNEW (struct repl_map_d); mp->name = new; mp->set = BITMAP_ALLOC (NULL); *slot = (void *) mp; @@ -630,7 +630,8 @@ mark_def_sites (struct dom_walk_data *walk_data, basic_block bb, block_stmt_iterator bsi) { - struct mark_def_sites_global_data *gd = walk_data->global_data; + struct mark_def_sites_global_data *gd = + (struct mark_def_sites_global_data *) walk_data->global_data; bitmap kills = gd->kills; tree stmt, def; use_operand_p use_p; @@ -1203,7 +1204,7 @@ def_blocks_eq (const void *p1, const void *p2) static void def_blocks_free (void *p) { - struct def_blocks_d *entry = p; + struct def_blocks_d *entry = (struct def_blocks_d *) p; BITMAP_FREE (entry->def_blocks); BITMAP_FREE (entry->phi_blocks); BITMAP_FREE (entry->livein_blocks); @@ -1645,7 +1646,8 @@ static void mark_def_sites_initialize_block (struct dom_walk_data *walk_data, basic_block bb ATTRIBUTE_UNUSED) { - struct mark_def_sites_global_data *gd = walk_data->global_data; + struct mark_def_sites_global_data *gd = + (struct mark_def_sites_global_data *) walk_data->global_data; bitmap kills = gd->kills; bitmap_clear (kills); } @@ -2744,7 +2746,7 @@ update_ssa (unsigned update_flags) /* If the caller requested PHI nodes to be added, compute dominance frontiers. */ - dfs = xmalloc (last_basic_block * sizeof (bitmap)); + dfs = XNEWVEC (bitmap, last_basic_block); FOR_EACH_BB (bb) dfs[bb->index] = BITMAP_ALLOC (NULL); compute_dominance_frontiers (dfs); |