From 1e738f74b939e1330310b7f4f1e489ab7e868c07 Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Tue, 30 Jan 2001 19:34:41 +0000 Subject: jump.c (comparison_dominates_p): Don't try to handle UNKNOWN comparison codes. 2001-01-30 Franz Sirl * jump.c (comparison_dominates_p): Don't try to handle UNKNOWN comparison codes. From-SVN: r39353 --- gcc/jump.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/jump.c') diff --git a/gcc/jump.c b/gcc/jump.c index ff2ab14..6e16014 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -2087,6 +2087,12 @@ int comparison_dominates_p (code1, code2) enum rtx_code code1, code2; { + /* UNKNOWN comparison codes can happen as a result of trying to revert + comparison codes. + They can't match anything, so we have to reject them here. */ + if (code1 == UNKNOWN || code2 == UNKNOWN) + return 0; + if (code1 == code2) return 1; -- cgit v1.1