jump.c (comparison_dominates_p): Don't try to handle UNKNOWN comparison codes.

2001-01-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * jump.c (comparison_dominates_p): Don't try to handle UNKNOWN
        comparison codes.

From-SVN: r39353
This commit is contained in:
Franz Sirl 2001-01-30 19:34:41 +00:00 committed by Franz Sirl
parent e9770d5120
commit 1e738f74b9
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-01-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* jump.c (comparison_dominates_p): Don't try to handle UNKNOWN
comparison codes.
2001-01-30 Neil Booth <neil@daikokuya.demon.co.uk>
* c-decl.c (c_expand_body): Check TYPE_SIZE_UNIT (ret_type)

View File

@ -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;