summaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-10 14:12:01 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-10 14:12:01 +0000
commitea82bb93744f68a0411344b57701a041eb2b6bd1 (patch)
treea74c0037a8492ec6cb7689db684c8e9331f61e6d /gcc/alias.c
parent5b0b5a84004c1a237c35b83a08bf28aed19f781c (diff)
downloadgcc-ea82bb93744f68a0411344b57701a041eb2b6bd1.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index a94793ea12c..dd3b3f6803f 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -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);