aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2005-03-10 15:36:42 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-03-10 15:36:42 +0000
commitfbc848cc8cfbbaa3fb117114f9d7692794e98748 (patch)
tree59b4463274c20dfe561aa971f50cc7afcdc8559d /gcc/vec.c
parent4fd24a758201ca5b0eaee8ee00ba30619cf1f99f (diff)
downloadgcc-fbc848cc8cfbbaa3fb117114f9d7692794e98748.zip
gcc-fbc848cc8cfbbaa3fb117114f9d7692794e98748.tar.gz
gcc-fbc848cc8cfbbaa3fb117114f9d7692794e98748.tar.bz2
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
Diffstat (limited to 'gcc/vec.c')
-rw-r--r--gcc/vec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/vec.c b/gcc/vec.c
index 72480dc..65a482e 100644
--- a/gcc/vec.c
+++ b/gcc/vec.c
@@ -66,8 +66,7 @@ vec_gc_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size
else
alloc = 4;
- if (pfx && pfx->alloc >= alloc)
- abort ();
+ gcc_assert (!pfx || pfx->alloc < alloc);
vec = ggc_realloc_stat (vec, vec_offset + alloc * elt_size PASS_MEM_STAT);
((struct vec_prefix *)vec)->alloc = alloc;
@@ -117,8 +116,7 @@ vec_heap_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size
else
alloc = 4;
- if (pfx && pfx->alloc >= alloc)
- abort ();
+ gcc_assert (!pfx || pfx->alloc < alloc);
vec = xrealloc (vec, vec_offset + alloc * elt_size);
((struct vec_prefix *)vec)->alloc = alloc;