aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-05-02 20:53:50 +0000
committerDoug Evans <dje@gnu.org>1995-05-02 20:53:50 +0000
commit60374599761f74ac16626190acf43132835d71a5 (patch)
tree122774fd16cfe165e3b58d5fbc7d2ac9c4e5be8a
parent122977b9df2cc7098292c6555c617ad423a2a2ab (diff)
downloadgcc-60374599761f74ac16626190acf43132835d71a5.zip
gcc-60374599761f74ac16626190acf43132835d71a5.tar.gz
gcc-60374599761f74ac16626190acf43132835d71a5.tar.bz2
(jump_optimize, can_reach_end determination): A barrier can
follow the return insn. From-SVN: r9564
-rw-r--r--gcc/jump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index c150964..4483c72 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -265,6 +265,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
then one of them follows the note. */
|| (GET_CODE (insn) == JUMP_INSN
&& GET_CODE (PATTERN (insn)) == RETURN)
+ /* A barrier can follow the return insn. */
+ || GET_CODE (insn) == BARRIER
/* Other kinds of notes can follow also. */
|| (GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END)))
@@ -2093,6 +2095,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
then one of them follows the note. */
|| (GET_CODE (insn) == JUMP_INSN
&& GET_CODE (PATTERN (insn)) == RETURN)
+ /* A barrier can follow the return insn. */
+ || GET_CODE (insn) == BARRIER
/* Other kinds of notes can follow also. */
|| (GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END)))