diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 08:33:34 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 08:33:34 +0000 |
commit | 111f23890394d3c2902d922ef63048d640cf6a80 (patch) | |
tree | cfabfb3f4a0c67b72c39f9ffdec4790fd1ae41a6 /gcc/jump.c | |
parent | c21ff061c33e1dd455b1199659830ddfb503c451 (diff) | |
download | gcc-111f23890394d3c2902d922ef63048d640cf6a80.tar.gz |
* jump.c (can_reverse_comparison_p): Be prepared for insn null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34077 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 8711ba95efd..60d7ee682a9 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1775,8 +1775,7 @@ can_reverse_comparison_p (comparison, insn) #endif ) { - rtx prev = prev_nonnote_insn (insn); - rtx set; + rtx prev, set; /* First see if the condition code mode alone if enough to say we can reverse the condition. If not, then search backwards for a set of @@ -1788,6 +1787,9 @@ can_reverse_comparison_p (comparison, insn) && REVERSIBLE_CC_MODE (GET_MODE (arg0))) return 1; #endif + + if (! insn) + return 0; for (prev = prev_nonnote_insn (insn); prev != 0 && GET_CODE (prev) != CODE_LABEL; |