remove.c (optimize_reg_copy_3): Abort instead of silently generating bogus rtl.

* remove.c (optimize_reg_copy_3): Abort instead of silently generating
        bogus rtl.

From-SVN: r21887
This commit is contained in:
Jeffrey A Law 1998-08-20 23:19:05 +00:00 committed by Jeff Law
parent 8fc001f9a2
commit 84f1ebff03
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Thu Aug 20 19:43:44 1998 Jeffrey A Law (law@cygnus.com)
* remove.c (optimize_reg_copy_3): Abort instead of silently generating
bogus rtl.
* jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
Thu Aug 20 17:35:20 1998 David S. Miller <davem@pierdol.cobaltmicro.com>

View File

@ -560,7 +560,10 @@ optimize_reg_copy_3 (insn, dest, src)
{
if (GET_RTX_CLASS (GET_CODE (p)) != 'i')
continue;
validate_replace_rtx (src_reg, subreg, p);
/* If we can not perform the replacement, then abort now
to make debugging easier. */
if (! validate_replace_rtx (src_reg, subreg, p))
abort ();
}
validate_replace_rtx (src, src_reg, insn);
}