diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-26 00:28:15 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-26 00:28:15 +0000 |
commit | 364c0c59a6feb76e4a0b2a17a68b165d7321f329 (patch) | |
tree | 3626ec88a0d5007c7aaf8ffc7c298754080ebf83 /gcc/dominance.c | |
parent | 2457c75425617823976a1142d6f88c514ca985bc (diff) | |
download | ppe42-gcc-364c0c59a6feb76e4a0b2a17a68b165d7321f329.tar.gz ppe42-gcc-364c0c59a6feb76e4a0b2a17a68b165d7321f329.zip |
* alias.c (record_alias_subset, init_alias_analysis): Fix
-Wc++-compat and/or -Wcast-qual warnings.
* attribs.c (lookup_attribute_spec): Likewise.
* bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
copy_bb, connect_traces,
find_rarely_executed_basic_blocks_and_cr): Likewise.
* bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
note_btr_set, migrate_btr_defs): Likewise.
* builtins.c (result_vector, expand_builtin_memcpy,
expand_builtin_mempcpy_args, expand_builtin_strncpy,
builtin_memset_read_str, expand_builtin_printf,
fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
Likewise.
* caller-save.c (mark_set_regs): Likewise.
* calls.c (expand_call, emit_library_call_value_1): Likewise.
* cgraph.c (cgraph_edge): Likewise.
* combine.c (likely_spilled_retval_1): Likewise.
* coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
htab_counts_entry_del, get_coverage_counts): Likewise.
* cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
new_cselib_val): Likewise.
* dbgcnt.c (dbg_cnt_process_opt): Likewise.
* dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
Likewise.
* df-core.c (df_compact_blocks): Likewise.
* df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
* df-scan.c (df_grow_reg_info, df_ref_create,
df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
df_ref_compare, df_ref_create_structure, df_bb_refs_record,
df_record_entry_block_defs, df_record_exit_block_uses,
df_bb_verify): Likewise.
* df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
DF_REF_EXTRACT_MODE_CONST): New.
* dominance.c (get_immediate_dominator, get_dominated_by,
nearest_common_dominator, root_of_dom_tree,
iterate_fix_dominators, first_dom_son, next_dom_son): Fix
-Wc++-compat and/or -Wcast-qual warnings.
* dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
record_store, replace_read, check_mem_read_rtx, scan_insn,
dse_step1, dse_record_singleton_alias_set): Likewise.
* dwarf2asm.c (dw2_force_const_mem): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r-- | gcc/dominance.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c index 811d2b91300..b4dff4c6c16 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -706,7 +706,7 @@ get_immediate_dominator (enum cdi_direction dir, basic_block bb) if (!node->father) return NULL; - return node->father->data; + return (basic_block) node->father->data; } /* Set the immediate dominator of the block possibly removing @@ -749,9 +749,9 @@ get_dominated_by (enum cdi_direction dir, basic_block bb) if (!son) return NULL; - VEC_safe_push (basic_block, heap, bbs, son->data); + VEC_safe_push (basic_block, heap, bbs, (basic_block) son->data); for (ason = son->right, n = 1; ason != son; ason = ason->right) - VEC_safe_push (basic_block, heap, bbs, ason->data); + VEC_safe_push (basic_block, heap, bbs, (basic_block) ason->data); return bbs; } @@ -823,7 +823,7 @@ nearest_common_dominator (enum cdi_direction dir, basic_block bb1, basic_block b if (!bb2) return bb1; - return et_nca (bb1->dom[dir_index], bb2->dom[dir_index])->data; + return (basic_block) et_nca (bb1->dom[dir_index], bb2->dom[dir_index])->data; } @@ -1103,7 +1103,7 @@ succeed: static basic_block root_of_dom_tree (enum cdi_direction dir, basic_block bb) { - return et_root (bb->dom[dom_convert_dir_to_idx (dir)])->data; + return (basic_block) et_root (bb->dom[dom_convert_dir_to_idx (dir)])->data; } /* See the comment in iterate_fix_dominators. Finds the immediate dominators @@ -1313,10 +1313,10 @@ iterate_fix_dominators (enum cdi_direction dir, VEC (basic_block, heap) *bbs, dom_i = (size_t) *pointer_map_contains (map, dom); /* Do not include parallel edges to G. */ - if (bitmap_bit_p (g->vertices[dom_i].data, i)) + if (bitmap_bit_p ((bitmap) g->vertices[dom_i].data, i)) continue; - bitmap_set_bit (g->vertices[dom_i].data, i); + bitmap_set_bit ((bitmap) g->vertices[dom_i].data, i); add_edge (g, dom_i, i); } } @@ -1394,7 +1394,7 @@ first_dom_son (enum cdi_direction dir, basic_block bb) unsigned int dir_index = dom_convert_dir_to_idx (dir); struct et_node *son = bb->dom[dir_index]->son; - return son ? son->data : NULL; + return (basic_block) (son ? son->data : NULL); } /* Returns the next dominance son after BB in the dominator or postdominator @@ -1406,7 +1406,7 @@ next_dom_son (enum cdi_direction dir, basic_block bb) unsigned int dir_index = dom_convert_dir_to_idx (dir); struct et_node *next = bb->dom[dir_index]->right; - return next->father->son == next ? NULL : next->data; + return (basic_block) (next->father->son == next ? NULL : next->data); } /* Return dominance availability for dominance info DIR. */ |