diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-10 15:36:42 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-10 15:36:42 +0000 |
commit | 22167fd563c0e056e682259a2c8e26bb51d6fa81 (patch) | |
tree | 59b4463274c20dfe561aa971f50cc7afcdc8559d /gcc/value-prof.c | |
parent | c7170b512880b20295e4465b47396f204ffc5e4c (diff) | |
download | gcc-22167fd563c0e056e682259a2c8e26bb51d6fa81.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96241 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 7c1f7e17a50..c56323473cb 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. */ |