diff options
author | David Edelsohn <edelsohn@mhpcc.edu> | 1998-10-09 08:42:34 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 1998-10-09 04:42:34 -0400 |
commit | 400d63220a087bbf7e00ee633e7d2bbe5c0cf3d2 (patch) | |
tree | ca64afffaa9f63bf4d5cc5f2757893b5a9b70ec7 /gcc | |
parent | 3fe88ebf0d52945c40325bb0e8586593894abb60 (diff) | |
download | gcc-400d63220a087bbf7e00ee633e7d2bbe5c0cf3d2.zip gcc-400d63220a087bbf7e00ee633e7d2bbe5c0cf3d2.tar.gz gcc-400d63220a087bbf7e00ee633e7d2bbe5c0cf3d2.tar.bz2 |
* loop.c (insert_bct): Ensure loop_iteration_var non-zero before use.
From-SVN: r22955
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/loop.c | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4878aa2..57bf533 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 9 11:44:47 1998 David Edelsohn <edelsohn@mhpcc.edu> + + * loop.c (insert_bct): Ensure loop_iteration_var non-zero before use. + Thu Oct 8 21:59:47 1998 Dave Brolley <brolley@cygnus.com> * emit-rtl.c (init_emit_once): Call INIT_EXPANDERS. @@ -8054,12 +8054,21 @@ insert_bct (loop_start, loop_end) at compile time. In this case we generate run_time calculation of the number of iterations. */ + if (loop_iteration_var == 0) + { + if (loop_dump_stream) + fprintf (loop_dump_stream, + "insert_bct %d: BCT Runtime Instrumentation failed: no loop iteration variable found\n", + loop_num); + return; + } + if (GET_MODE_CLASS (GET_MODE (loop_iteration_var)) != MODE_INT || GET_MODE_SIZE (GET_MODE (loop_iteration_var)) != UNITS_PER_WORD) { if (loop_dump_stream) fprintf (loop_dump_stream, - "insert_bct %d: BCT Instrumentation failed: loop variable not integer\n", + "insert_bct %d: BCT Runtime Instrumentation failed: loop variable not integer\n", loop_num); return; } @@ -8069,7 +8078,7 @@ insert_bct (loop_start, loop_end) { if (loop_dump_stream) fprintf (loop_dump_stream, - "insert_bct %d: runtime bounds with != comparison\n", + "insert_bct %d: BCT Runtime Instrumentation failed: runtime bounds with != comparison\n", loop_num); return; } |