aboutsummaryrefslogtreecommitdiff
path: root/gcc/lambda.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2005-04-21 18:05:34 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-04-21 18:05:34 +0000
commit0e61db61a0d66106ef00396aa04871d94021ddef (patch)
treea6170c4a24e29bff50c537b8652482d6d413b2a3 /gcc/lambda.h
parent7fc785d836a38912e6c48045fa7380f6e9e1c5c1 (diff)
downloadgcc-0e61db61a0d66106ef00396aa04871d94021ddef.zip
gcc-0e61db61a0d66106ef00396aa04871d94021ddef.tar.gz
gcc-0e61db61a0d66106ef00396aa04871d94021ddef.tar.bz2
lambda.h (lambda_vector_min_nz): Likewise.
* lambda.h (lambda_vector_min_nz): Likewise. * langhooks.h (struct lang_hooks_for_types, struct lang_hooks): Likewise. * output.h (assemble_integer, this_is_asm_operands): Likewise. * tree.h: Likewise. * vec.h: Likewise. * tree-flow-inline.h (relink_imm_use): Use gcc_assert. * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword comments to avoid 'abort'. Use gcc_assert as necessary. * opts.c (common_handle_option): Likewise. * pretty-print.c (pp_base_format_text): Likewise. * print-rtl.c (print_rtx): Likewise. * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise. * regmove.c (try_auto_increment): Likewise. * reload.c (find_valid_class, find_reloads_toplev, find_equiv_reg): Likewise. * reload1.c (reload, forget_old_reloads_1, function_invariant_p, merge_assigned_reloads): Likewise. * tree-inline.c (inline_forbidden_p_1, estimate_num_insns_1): Likewise. * tree-optimize.c (execute_todo): Likewise. * tree-outof-ssa.c (eliminate_phi): Likewise. * tree-ssa-alias.c (add_pointed_to_expr): Likewise. * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise. * tree-ssa-operands.c (parse_ssa_operands, get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise. * tree-ssa-pre.c (find_or_generate_expression): Likewise. * tree-ssanames.c (release_ssa_name): Likewise. * tree.c (int_bit_position, int_byte_position, tree_low_cst, walk_tree): Likewise. * tree-ssa-operands.c (verify_abort): Fold into .. (verify_imm_links): ... here. From-SVN: r98519
Diffstat (limited to 'gcc/lambda.h')
-rw-r--r--gcc/lambda.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/lambda.h b/gcc/lambda.h
index 6e145ad..0c259d6 100644
--- a/gcc/lambda.h
+++ b/gcc/lambda.h
@@ -326,19 +326,15 @@ lambda_vector_min_nz (lambda_vector vec1, int n, int start)
{
int j;
int min = -1;
-#ifdef ENABLE_CHECKING
- if (start > n)
- abort ();
-#endif
+
+ gcc_assert (start <= n);
for (j = start; j < n; j++)
{
if (vec1[j])
if (min < 0 || vec1[j] < vec1[min])
min = j;
}
-
- if (min < 0)
- abort ();
+ gcc_assert (min >= 0);
return min;
}