diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 19:13:03 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 19:13:03 +0000 |
commit | 64db345d75ae393ca3444aebed0f7c62b91d65bd (patch) | |
tree | fff62e6c69665ec9937365c779e5da53606f6d80 /gcc/alias.c | |
parent | 9ec7c303979221da43c7649447a1b7f2207a4460 (diff) | |
download | gcc-64db345d75ae393ca3444aebed0f7c62b91d65bd.tar.gz |
* alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
gcc_assert and gcc_unreachable instead of abort.
* alloc-pool.c (abort, fancy_abort): Remove.
(create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
gcc_assert or gcc_unreachable.
* attribs.c (init_attributes, decl_attributes): Likewise.
* bb-reorder.c (FREE, find_traces_1_round, copy_bb,
mark_bb_for_unlikely_executed_section,
add_labels_and_missing_jumps, fix_crossing_conditional_branches,
fix_crossing_unconditional_branches): Likewise.
* bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
bitmap_operation): Likewise.
* bt-load.c (insn_sets_btr_p, augment_live_range,
move_btr_def): Likewise.
* builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
expand_builtin_mathfn_2, expand_builtin_mathfn_3,
builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
expand_builtin_memcmp, expand_builtin_args_info,
std_gimplify_va_arg_expr, expand_builtin_unop,
expand_builtin_fputs, expand_builtin_profile_func,
expand_builtin_fork_or_exec, fold_builtin_bitop,
fold_builtin_classify, fold_builtin_fputs): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 6807ad0726b..02ba2603baa 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -229,7 +229,6 @@ get_alias_set_entry (HOST_WIDE_INT alias_set) static inline int mems_in_disjoint_alias_sets_p (rtx mem1, rtx mem2) { -#ifdef ENABLE_CHECKING /* Perform a basic sanity check. Namely, that there are no alias sets if we're not using strict aliasing. This helps to catch bugs whereby someone uses PUT_CODE, but doesn't clear MEM_ALIAS_SET, or @@ -237,10 +236,8 @@ mems_in_disjoint_alias_sets_p (rtx mem1, rtx mem2) gen_rtx_MEM, and the MEM_ALIAS_SET is not cleared. If we begin to use alias sets to indicate that spilled registers cannot alias each other, we might need to remove this check. */ - if (! flag_strict_aliasing - && (MEM_ALIAS_SET (mem1) != 0 || MEM_ALIAS_SET (mem2) != 0)) - abort (); -#endif + gcc_assert (flag_strict_aliasing + || (!MEM_ALIAS_SET (mem1) && !MEM_ALIAS_SET (mem2))); return ! alias_sets_conflict_p (MEM_ALIAS_SET (mem1), MEM_ALIAS_SET (mem2)); } @@ -624,8 +621,7 @@ record_alias_subset (HOST_WIDE_INT superset, HOST_WIDE_INT subset) if (superset == subset) return; - if (superset == 0) - abort (); + gcc_assert (superset); superset_entry = get_alias_set_entry (superset); if (superset_entry == 0) @@ -930,8 +926,7 @@ record_set (rtx dest, rtx set, void *data ATTRIBUTE_UNUSED) regno = REGNO (dest); - if (regno >= VARRAY_SIZE (reg_base_value)) - abort (); + gcc_assert (regno < VARRAY_SIZE (reg_base_value)); /* If this spans multiple hard registers, then we must indicate that every register has an unusable value. */ @@ -1307,7 +1302,7 @@ rtx_equal_for_memref_p (rtx x, rtx y) contain anything but integers and other rtx's, except for within LABEL_REFs and SYMBOL_REFs. */ default: - abort (); + gcc_unreachable (); } } return 1; @@ -2899,8 +2894,8 @@ init_alias_analysis (void) } /* Now propagate values from new_reg_base_value to reg_base_value. */ - if (maxreg != (unsigned int) max_reg_num()) - abort (); + gcc_assert (maxreg == (unsigned int) max_reg_num()); + for (ui = 0; ui < maxreg; ui++) { if (new_reg_base_value[ui] |