aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-04 17:47:30 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-04 17:47:30 -0400
commite328af29dcd659de94435e6bbde99727368ac445 (patch)
tree8a1dfd5a57d5a137d5b07032b20688a1f92f4024 /gcc
parent9e7b1d0a36292e03ebe3f149c4a97818e7567058 (diff)
downloadgcc-e328af29dcd659de94435e6bbde99727368ac445.zip
gcc-e328af29dcd659de94435e6bbde99727368ac445.tar.gz
gcc-e328af29dcd659de94435e6bbde99727368ac445.tar.bz2
(get_jump_flags): Check for LABEL == 0 before using LABEL.
From-SVN: r4008
Diffstat (limited to 'gcc')
-rw-r--r--gcc/reorg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 81b8c51..83bbdda 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -1137,8 +1137,8 @@ get_jump_flags (insn, label)
if (GET_CODE (insn) == JUMP_INSN
&& condjump_p (insn)
&& INSN_UID (insn) <= max_uid
- && INSN_UID (label) <= max_uid
- && label != 0)
+ && label != 0
+ && INSN_UID (label) <= max_uid)
flags
= (uid_to_ruid[INSN_UID (label)] > uid_to_ruid[INSN_UID (insn)])
? ATTR_FLAG_forward : ATTR_FLAG_backward;