From fbc848cc8cfbbaa3fb117114f9d7692794e98748 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 10 Mar 2005 15:36:42 +0000 Subject: value-prof.c (rtl_find_values_to_profile): Use gcc_assert and gcc_unreachable. * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and gcc_unreachable. (rtl_register_value_prof_hooks, tree_value_profile_transformations, tree_register_value_prof_hooks): Likewise. * var-tracking.c (stack_adjust_offset_pre_post, variable_htab_free, variable_union, dataflow_set_different_2, count_uses, variable_was_changed, set_frame_base_location, set_variable_part, emit_note_insn_var_location, vt_emit_notes, vt_add_function_parameters): Likewise. * varasm.c (named_section_real, named_section, make_decl_rtl, asm_emit_uninitialised, assemble_integer, decode_addr_const, const_hash_1, compare_constant, copy_constant, force_const_mem, output_constant_pool_2, output_constant_pool_1, output_constant, output_constructor, make_decl_one_only, decl_tls_model, default_no_named_section, default_elf_select_section_1, default_unique_section_1): Likewise. * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise. * vmsdbgout.c (addr_const_to_string): Likewise. From-SVN: r96241 --- gcc/value-prof.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'gcc/value-prof.c') diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 7c1f7e1..c563234 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -360,7 +360,7 @@ rtl_find_values_to_profile (histogram_values *values) break; default: - abort (); + gcc_unreachable (); } } allocate_reg_info (max_reg_num (), FALSE, FALSE); @@ -1032,21 +1032,20 @@ void rtl_register_value_prof_hooks (void) { value_prof_hooks = &rtl_value_prof_hooks; - if (ir_type ()) - abort (); + gcc_assert (!ir_type ()); } /* Tree-based versions are stubs for now. */ static void tree_find_values_to_profile (histogram_values *values ATTRIBUTE_UNUSED) { - abort (); + gcc_unreachable (); } static bool tree_value_profile_transformations (void) { - abort (); + gcc_unreachable (); } static struct value_prof_hooks tree_value_prof_hooks = { @@ -1058,8 +1057,7 @@ void tree_register_value_prof_hooks (void) { value_prof_hooks = &tree_value_prof_hooks; - if (!ir_type ()) - abort (); + gcc_assert (ir_type ()); } /* IR-independent entry points. */ -- cgit v1.1