diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-08-02 19:29:52 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-08-02 19:29:52 +0200 |
commit | bb45bd5a12e56dc3a52e3f025593140729c00770 (patch) | |
tree | 1f08df3ed5c909618d911eecffca578a7866695f /gcc | |
parent | 50e60bc3d7c3ab94e6f5eabaaee3eab574e0b0c3 (diff) | |
download | gcc-bb45bd5a12e56dc3a52e3f025593140729c00770.zip gcc-bb45bd5a12e56dc3a52e3f025593140729c00770.tar.gz gcc-bb45bd5a12e56dc3a52e3f025593140729c00770.tar.bz2 |
loop.c (scan_loop): Ensure update_end label does not go away until reg_scan_update is run.
* loop.c (scan_loop): Ensure update_end label does not
go away until reg_scan_update is run.
From-SVN: r35428
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c7d740..3343f37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-02 Jakub Jelinek <jakub@redhat.com> + + * loop.c (scan_loop): Ensure update_end label does not + go away until reg_scan_update is run. + 2000-08-02 Zack Weinberg <zack@wolery.cumb.org> * c-common.h: Prototype min_precision and c_build_qualified_type here... @@ -1131,11 +1131,19 @@ scan_loop (loop, flags) if (flag_strength_reduce) { + if (update_end && GET_CODE (update_end) == CODE_LABEL) + /* Ensure our label doesn't go away. */ + LABEL_NUSES (update_end)++; + the_movables = movables; strength_reduce (loop, insn_count, flags); reg_scan_update (update_start, update_end, loop_max_reg); loop_max_reg = max_reg_num (); + + if (update_end && GET_CODE (update_end) == CODE_LABEL + && --LABEL_NUSES (update_end) == 0) + delete_insn (update_end); } VARRAY_FREE (reg_single_usage); |