aboutsummaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-22 01:33:34 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-22 01:33:34 -0700
commit0dab8f8aa3ba781aeb8d6b6c49afe51e9dde78fa (patch)
treecfabfb3f4a0c67b72c39f9ffdec4790fd1ae41a6 /gcc/jump.c
parenta774e06ec746cce0d602bfbcfe294d5848e4db83 (diff)
downloadgcc-0dab8f8aa3ba781aeb8d6b6c49afe51e9dde78fa.zip
gcc-0dab8f8aa3ba781aeb8d6b6c49afe51e9dde78fa.tar.gz
gcc-0dab8f8aa3ba781aeb8d6b6c49afe51e9dde78fa.tar.bz2
* jump.c (can_reverse_comparison_p): Be prepared for insn null.
From-SVN: r34077
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 8711ba9..60d7ee6 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;