diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-12-18 01:19:20 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-12-18 01:19:20 +0000 |
commit | 858904db9ee5873db3c28b4ba0f4258e9c8ece0d (patch) | |
tree | 47c51434efd5419a4c84affaa30de90732e3007d /gcc/tree-cfg.c | |
parent | 0e27ef71a5e6b0a413a2ea667a085656e9d638b4 (diff) | |
download | gcc-858904db9ee5873db3c28b4ba0f4258e9c8ece0d.zip gcc-858904db9ee5873db3c28b4ba0f4258e9c8ece0d.tar.gz gcc-858904db9ee5873db3c28b4ba0f4258e9c8ece0d.tar.bz2 |
tree-vn.c (vn_add): Use XNEW.
* 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.
From-SVN: r108736
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 6c0d1c0..3f925b3 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -374,7 +374,7 @@ create_bb (void *h, void *e, basic_block after) bb->index = last_basic_block; bb->flags = BB_NEW; - bb->stmt_list = h ? h : alloc_stmt_list (); + bb->stmt_list = h ? (tree) h : alloc_stmt_list (); /* Add the new block to the linked list of blocks. */ link_block (bb, after); @@ -640,7 +640,7 @@ edge_to_cases_eq (const void *p1, const void *p2) static void edge_to_cases_cleanup (void *p) { - struct edge_to_cases_elt *elt = p; + struct edge_to_cases_elt *elt = (struct edge_to_cases_elt *) p; tree t, next; for (t = elt->case_labels; t; t = next) @@ -691,7 +691,7 @@ record_switch_edge (edge e, tree case_label) /* Build a hash table element so we can see if E is already in the table. */ - elt = xmalloc (sizeof (struct edge_to_cases_elt)); + elt = XNEW (struct edge_to_cases_elt); elt->e = e; elt->case_labels = case_label; @@ -942,7 +942,7 @@ void cleanup_dead_labels (void) { basic_block bb; - label_for_bb = xcalloc (last_basic_block, sizeof (tree)); + label_for_bb = XCNEWVEC (tree, last_basic_block); /* Find a suitable label for each block. We use the first user-defined label if there is one, or otherwise just the first label we see. */ @@ -3453,7 +3453,7 @@ verify_node_sharing (tree * tp, int *walk_subtrees, void *data) slot = htab_find_slot (htab, *tp, INSERT); if (*slot) - return *slot; + return (tree) *slot; *slot = *tp; return NULL; @@ -4343,7 +4343,7 @@ tree_duplicate_sese_region (edge entry, edge exit, if (!region_copy) { - region_copy = xmalloc (sizeof (basic_block) * n_region); + region_copy = XNEWVEC (basic_block, n_region); free_region_copy = true; } @@ -4351,7 +4351,7 @@ tree_duplicate_sese_region (edge entry, edge exit, /* Record blocks outside the region that are dominated by something inside. */ - doms = xmalloc (sizeof (basic_block) * n_basic_blocks); + doms = XNEWVEC (basic_block, n_basic_blocks); initialize_original_copy_tables (); n_doms = get_dominated_by_region (CDI_DOMINATORS, region, n_region, doms); |