re PR target/64115 (ICE: : in rs6000_delegitimize_address, at config/rs6000/rs6000...
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 2 Dec 2014 14:27:46 +0000 (14:27 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 2 Dec 2014 14:27:46 +0000 (14:27 +0000)
PR target/64115
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.

From-SVN: r218273

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index c746d0f8a5134ea597447a2f69a5ec0d2d9b6d95..d85bb4eb5b5c94fb9f4c3225cdd16aebf0b64f78 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       PR target/64115
+       * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
+       invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
+
 2014-12-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/64108
index 6811ed4dcfa4eee5e9c9fe86406434e82edfa765..cdb9de9b7cf39c139ed638b1ad763db0bcec83c7 100644 (file)
@@ -7033,24 +7033,6 @@ rs6000_delegitimize_address (rtx orig_x)
   if (GET_CODE (y) == UNSPEC
       && XINT (y, 1) == UNSPEC_TOCREL)
     {
-#ifdef ENABLE_CHECKING
-      if (REG_P (XVECEXP (y, 0, 1))
-         && REGNO (XVECEXP (y, 0, 1)) == TOC_REGISTER)
-       {
-         /* All good.  */
-       }
-      else if (GET_CODE (XVECEXP (y, 0, 1)) == DEBUG_EXPR)
-       {
-         /* Weirdness alert.  df_note_compute can replace r2 with a
-            debug_expr when this unspec is in a debug_insn.
-            Seen in gcc.dg/pr51957-1.c  */
-       }
-      else
-       {
-         debug_rtx (orig_x);
-         abort ();
-       }
-#endif
       y = XVECEXP (y, 0, 0);
 
 #ifdef HAVE_AS_TLS