From 311fe27c71628f8d246b23084f5ce2168912215e Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Mon, 29 Nov 1999 10:51:09 +0000 Subject: [PATCH] Fix abort in loop_iterations From-SVN: r30698 --- gcc/ChangeLog | 5 +++++ gcc/unroll.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef7b57da8ab..717e1e2599d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-11-29 Bernd Schmidt + + * unroll.c (loop_iterations): Don't abort if iteration variable + was made by loop. + 1999-11-29 David S. Miller * config/sparc/sparc.c (init_cumulative_args): Fix type of third diff --git a/gcc/unroll.c b/gcc/unroll.c index 3994e79c226..94451e1717b 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3687,11 +3687,9 @@ loop_iterations (loop_start, loop_end, loop_info) return 0; } - /* The only new registers that care created before loop iterations are - givs made from biv increments, so this should never occur. */ - + /* This can happen due to optimization in load_mems. */ if ((unsigned) REGNO (iteration_var) >= reg_iv_type->num_elements) - abort (); + return 0; iteration_info (iteration_var, &initial_value, &increment, loop_start, loop_end); -- 2.30.2