diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-08 07:47:45 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-08 07:47:45 +0000 |
commit | 7bd4f6b63b19925aeac70cbaca769aef8d58ed91 (patch) | |
tree | badd4a59c4d7d42a6830a798ebfe95eb02d81f64 /gcc/ddg.c | |
parent | fd62c19a524b1f9c297d4eeb9a4cb3705e106be1 (diff) | |
download | gcc-7bd4f6b63b19925aeac70cbaca769aef8d58ed91.tar.gz |
* dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
gcc_assert and gcc_unreachable.
* ddg.c (create_ddg_dependence, add_deps_for_def,
add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
* df.c (df_ref_unlink, df_ref_record, df_uses_record,
df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
df_bb_reg_live_end_p, df_bb_regs_lives_compare,
df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
dataflow_set_copy, hybrid_search, diagnostic.c,
diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
* dojump.c (do_jump): Likewise.
* dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
compute_dom_fast_query, calculate_dominance_info,
free_dominance_info, get_immediate_dominator,
set_immediate_dominator, get_dominated_by,
redirect_immediate_dominators, nearest_common_dominator,
dominated_by_p, verify_dominators, recount_dominator,
iterate_fix_dominators, add_to_dominance_info,
delete_from_dominance_info): Likewise.
* dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
flush_queued_reg_saves, dwarf2out_frame_debug_expr,
dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
output_call_frame_info, output_loc_operands, build_cfa_loc,
decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
splice_child_die, attr_checksum, same_dw_val_p,
break_out_includes, build_abbrev_table, size_of_die, mark_dies,
unmark_dies, value_format, output_loc_list, output_die,
output_pubnames, output_aranges, base_type_die, is_base_type,
modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
field_byte_offset, add_data_member_location_attribute,
add_const_value_attribute, rtl_for_decl_location,
add_location_or_const_value_attribute, add_byte_size_attribute,
add_bit_offset_attribute, add_bit_size_attribute,
add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
decl_start_label, gen_formal_parameter_die,
gen_type_die_for_member, gen_subprogram_die, gen_label_die,
gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
force_decl_die, force_type_die, gen_decl_die,
dwarf2out_imported_module_or_decl, prune_unused_types_prune,
dwarf2out_finish): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87176 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r-- | gcc/ddg.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/gcc/ddg.c b/gcc/ddg.c index 34a5971b5a6..3cd9c6b78f5 100644 --- a/gcc/ddg.c +++ b/gcc/ddg.c @@ -164,8 +164,7 @@ create_ddg_dependence (ddg_ptr g, ddg_node_ptr src_node, if (interloop) distance = 1; - if (!link) - abort (); + gcc_assert (link); /* Note: REG_DEP_ANTI applies to MEM ANTI_DEP as well!! */ if (REG_NOTE_KIND (link) == REG_DEP_ANTI) @@ -240,8 +239,7 @@ add_deps_for_def (ddg_ptr g, struct df *df, struct ref *rd) rtx use_insn = DF_REF_INSN (r_use->ref); ddg_node_ptr dest_node = get_node_of_insn (g, use_insn); - if (!src_node || !dest_node) - abort (); + gcc_assert (src_node && dest_node); /* Any such upwards exposed use appears before the rd def. */ use_before_def = true; @@ -296,8 +294,7 @@ add_deps_for_use (ddg_ptr g, struct df *df, struct ref *use) use_node = get_node_of_insn (g, use->insn); def_node = get_node_of_insn (g, first_def->insn); - if (!use_node || !def_node) - abort (); + gcc_assert (use_node && def_node); /* Make sure there are no defs after USE. */ for (i = use_node->cuid + 1; i < g->num_nodes; i++) @@ -484,10 +481,8 @@ create_ddg (basic_block bb, struct df *df, int closing_branch_deps) } if (JUMP_P (insn)) { - if (g->closing_branch) - abort (); /* Found two branches in DDG. */ - else - g->closing_branch = &g->nodes[i]; + gcc_assert (!g->closing_branch); + g->closing_branch = &g->nodes[i]; } else if (GET_CODE (PATTERN (insn)) == USE) { @@ -505,9 +500,10 @@ create_ddg (basic_block bb, struct df *df, int closing_branch_deps) g->nodes[i++].insn = insn; first_note = NULL_RTX; } - - if (!g->closing_branch) - abort (); /* Found no branch in DDG. */ + + /* We must have found a branch in DDG. */ + gcc_assert (g->closing_branch); + /* Build the data dependency graph. */ build_intra_loop_deps (g); @@ -646,8 +642,8 @@ add_edge_to_ddg (ddg_ptr g ATTRIBUTE_UNUSED, ddg_edge_ptr e) ddg_node_ptr src = e->src; ddg_node_ptr dest = e->dest; - if (!src->successors || !dest->predecessors) - abort (); /* Should have allocated the sbitmaps. */ + /* Should have allocated the sbitmaps. */ + gcc_assert (src->successors && dest->predecessors); SET_BIT (src->successors, dest->cuid); SET_BIT (dest->predecessors, src->cuid); |