PR target/64115
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2014 14:27:46 +0000 (14:27 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2014 14:27:46 +0000 (14:27 +0000)
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.

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

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

index c746d0f..d85bb4e 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 6811ed4..cdb9de9 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