diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-18 01:19:20 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-18 01:19:20 +0000 |
commit | 680a19b9f4ebb43da96fa302ccc3d9ee8ba9650c (patch) | |
tree | 47c51434efd5419a4c84affaa30de90732e3007d /gcc/tree-into-ssa.c | |
parent | 5d3e4e7d66f8389d3199c87133090fbfff6e09ba (diff) | |
download | gcc-680a19b9f4ebb43da96fa302ccc3d9ee8ba9650c.tar.gz |
* tree-vn.c (vn_add): Use XNEW.
* tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
(ccp_fold): Likewise.
(fold_stmt_r): Use explicit cast to convert from void *.
* tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
(new_temp_expr_table): Likewise.
* gimplify.c (lookup_tmp_var): Use XNEW.
(gimplify_asm_expr): Use explcit cast to convert from void *.
* tree-into-ssa.c (get_ssa_name_ann): Likewise.
(get_def_blocks_for): Use XNEW.
(add_to_repl_tbl): Likewise.
(mark_def_sites): Use explicit cast to convert from void *.
(def_blocks_free): Likewise.
(mark_def_sites_initialize_block): Likewise.
(update_ssa): Use XNEWVEC.
* tree-dfa.c (create_var_ann): Use GGC_NEW.
(create_stmt_ann): Likewise.
(create_tree_ann): Likewise.
(referenced_var_insert): Likewise.
(set_default_def): Likewise.
(referenced_var_lookup_if_exists): Use explicit cast to
* convert
from void *.
(referenced_var_lookup): Likewise.
(default_def): Likewise.
(set_default_def): Likewise.
* tree-cfg.c (create_bb): Likewise.
(edge_to_cases_cleanup): Likewise.
(verify_node_sharing): Likewise.
(record_switch_edge): Use XNEW.
(cleanup_dead_labels): Use XCNEWVEC.
(tree_duplicate_sese_region): Use XNEWVEC.
* tree-scalar-evolution.c (get_instantiated_value): Likewise.
* tree-ssa.c (verify_ssa): Use XCNEWVEC.
(int_tree_map_eq): Use explicit cast to convert from void *.
* libgcov.c (gcov_exit): Use explicit cast to convert from
* void *.
(__gcov_execl): Likewise.
(__gcov_execlp): Likewise.
(__gcov_execle): Likewise.
* tree-eh.c (struct_ptr_eq): Likewise.
(struct_ptr_hash): Likewise.
(lookup_stmt_eh_region_fn): Likewise.
(outside_finally_tree): Likewise.
(find_goto_replacement): Likewise.
(make_eh_edge): Likewise.
(mark_eh_edge): Likewise.
(add_stmt_to_eh_region_fn): Use GGC_NEW.
(record_in_finally_tree): Use XNEW.
(maybe_record_in_goto_queue): Use XRESIZEVEC.
(lower_try_finally_copy): Use XCNEWVEC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108736 138bc75d-0d04-0410-961f-82ee72b054a4
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 515abb810f5..6acd69ef3e0 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); |