alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers.
authorAndrew Haley <aph@cygnus.com>
Fri, 10 Sep 1999 14:12:01 +0000 (14:12 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 10 Sep 1999 14:12:01 +0000 (14:12 +0000)
Wed Sep  8 16:12:04 1999  Andrew Haley  <aph@cygnus.com>

        * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
        as pointers.

From-SVN: r29269

gcc/ChangeLog
gcc/alias.c

index 62c53c8..7161319 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep  8 16:12:04 1999  Andrew Haley  <aph@cygnus.com>
+
+       * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
+       as pointers.
+
 Fri Sep 10 11:58:55 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall.  Fix some
index a94793e..dd3b3f6 100644 (file)
@@ -626,6 +626,10 @@ rtx_equal_for_memref_p (x, y)
     return XSTR (x, 0) == XSTR (y, 0);
   if (code == CONST_INT)
     return INTVAL (x) == INTVAL (y);
+  /* There's no need to compare the contents of CONST_DOUBLEs because
+     they're unique. */
+  if (code == CONST_DOUBLE)
+    return 0;
   if (code == ADDRESSOF)
     return REGNO (XEXP (x, 0)) == REGNO (XEXP (y, 0)) && XINT (x, 1) == XINT (y, 1);