diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-04-21 15:47:33 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-04-21 15:47:33 +0000 |
commit | 41806d92af91cf26e52aa00a536cf3094ef2648b (patch) | |
tree | d321c52c21dedb7b851a7e57b5ea7c445d44db56 /gcc/jump.c | |
parent | ac7e839c63bfb19d83e6c81aee68c4435c1915c2 (diff) | |
download | gcc-41806d92af91cf26e52aa00a536cf3094ef2648b.zip gcc-41806d92af91cf26e52aa00a536cf3094ef2648b.tar.gz gcc-41806d92af91cf26e52aa00a536cf3094ef2648b.tar.bz2 |
alias.c (true_dependence): Remove 'abort' from comments.
* alias.c (true_dependence): Remove 'abort' from comments. Use
gcc_assert and gcc_unreachable as appropriate.
(canon_true_dependence): Likewise.
* bb-reorder.c (connect_traces): Likewise.
* c-common.c (c_add_case_label): Likewise.
* c-decl.c (finish_function): Likewise.
* caller-save.c (insert_restore, insert_save): Likewise.
* cfg.c (update_bb_profile_for_threading): Likewise.
* cfganal.c (flow_active_insn_p): Likewise.
* cfgexpand.c (add_reg_br_prob_note): Likewise.
* cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
cfg_layout_merge_blocks): Likewise.
* ifcvt.c (cond_exec_process_insns, merge_if_block,
find_if_block): Likewise.
* integrate.c (allocate_initial_values): Likewise.
* jump.c (reverse_condition, reverse_condition_maybe_unordered,
swap_condition, unsigned_condition, signed_condition,
mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
reg_or_subregno): Likewise.
* lambda-code.c (lambda_compute_auxillary_space,
lambda_transform_legal_p): Likewise.
* lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
* langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
lhd_incomplete_type_error, lhd_expand_expr,
lhd_types_compatible_p, lhd_tree_size): Likewise.
* lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
* local-alloc.c (update_equiv_regs): Likewise.
* loop-unroll.c (peel_loop_completely
unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
peel_loop_simple, unroll_loop_stupid,
analyze_iv_to_split_insn): Likewise.
* loop.c (gen_prefetch, find_and_verify_loops,
basic_induction_var): Likewise.
* modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
* value-prof.c (tree_find_values_to_profile): Likewise.
* varasm.c (named_section, default_assemble_integer,
decode_addr_const): Likewise.
From-SVN: r98508
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -511,7 +511,7 @@ reverse_condition (enum rtx_code code) return UNKNOWN; default: - abort (); + gcc_unreachable (); } } @@ -554,7 +554,7 @@ reverse_condition_maybe_unordered (enum rtx_code code) return LTGT; default: - abort (); + gcc_unreachable (); } } @@ -600,7 +600,7 @@ swap_condition (enum rtx_code code) return UNLE; default: - abort (); + gcc_unreachable (); } } @@ -631,7 +631,7 @@ unsigned_condition (enum rtx_code code) return LEU; default: - abort (); + gcc_unreachable (); } } @@ -660,7 +660,7 @@ signed_condition (enum rtx_code code) return LE; default: - abort (); + gcc_unreachable (); } } @@ -1109,8 +1109,7 @@ mark_jump_label (rtx x, rtx insn, int in_mem) && NOTE_LINE_NUMBER (label) == NOTE_INSN_DELETED_LABEL) break; - if (!LABEL_P (label)) - abort (); + gcc_assert (LABEL_P (label)); /* Ignore references to labels of containing functions. */ if (LABEL_REF_NONLOCAL_P (x)) @@ -1723,10 +1722,13 @@ invert_jump_1 (rtx jump, rtx nlabel) { rtx x = pc_set (jump); int ochanges; + int ok; ochanges = num_validated_changes (); - if (!x || !invert_exp_1 (SET_SRC (x), jump)) - abort (); + gcc_assert (x); + ok = invert_exp_1 (SET_SRC (x), jump); + gcc_assert (ok); + if (num_validated_changes () == ochanges) return 0; @@ -1941,7 +1943,7 @@ rtx_renumbered_equal_p (rtx x, rtx y) break; default: - abort (); + gcc_unreachable (); } } return 1; @@ -1976,9 +1978,8 @@ true_regnum (rtx x) unsigned int reg_or_subregno (rtx reg) { - if (REG_P (reg)) - return REGNO (reg); if (GET_CODE (reg) == SUBREG) - return REGNO (SUBREG_REG (reg)); - abort (); + reg = SUBREG_REG (reg); + gcc_assert (REG_P (reg)); + return REGNO (reg); } |