OSDN Git Service

* remove.c (optimize_reg_copy_3): Abort instead of silently generating
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 1998 23:19:05 +0000 (23:19 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 1998 23:19:05 +0000 (23:19 +0000)
        bogus rtl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21887 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regmove.c

index 5b659e3..67c10b4 100644 (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>
index ba78411..089dc46 100644 (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);
 }