diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-11-15 11:28:52 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-11-15 11:28:52 +0100 |
commit | 2b7d71b2b932e9be61b1c1415419e6df630a0165 (patch) | |
tree | 5dd2e96887032c78418387f269bc5c8e87b31f65 /gcc/jump.c | |
parent | 36a68fe705785961c143e33c0d52aa4d4ef85097 (diff) | |
download | gcc-2b7d71b2b932e9be61b1c1415419e6df630a0165.tar.gz |
jump.c (squeeze_notes): Return true if no real insns were found.
* jump.c (squeeze_notes): Return true if no real insns were found.
* rtl.h (squeeze_notes): Adjust prototype.
* cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
squeeze_notes finds no real instructions, abort.
(merge_blocks_move_successor_nojumps): Likewise.
* loop.c (find_and_verify_loops): Likewise.
* stmt.c (expand_end_case): Likewise.
* ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
find any real instructions.
* gcc.c-torture/compile/20011114-4.c: New test.
From-SVN: r47048
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index a7f18c058d4..c886aca6047 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -541,9 +541,10 @@ duplicate_loop_exit_test (loop_start) /* Move all block-beg, block-end, loop-beg, loop-cont, loop-vtop, loop-end, notes between START and END out before START. START and END may be such notes. Returns the values of the new starting and ending insns, which - may be different if the original ones were such notes. */ + may be different if the original ones were such notes. + Return true if there were only such notes and no real instructions. */ -void +bool squeeze_notes (startp, endp) rtx* startp; rtx* endp; @@ -584,15 +585,15 @@ squeeze_notes (startp, endp) last = insn; } - /* There were no real instructions, and we can't represent an empty - range. Die. */ + /* There were no real instructions. */ if (start == past_end) - abort (); + return true; end = last; *startp = start; *endp = end; + return false; } /* Return the label before INSN, or put a new label there. */ |