diff options
author | Andrew Haley <aph@cygnus.com> | 1999-09-10 14:12:01 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 1999-09-10 14:12:01 +0000 |
commit | a0d8bee96e17f6c63da6f2c33ccbe7392f6a120c (patch) | |
tree | a74c0037a8492ec6cb7689db684c8e9331f61e6d /gcc/alias.c | |
parent | 0881d22348ea600a977f125e1d8ca7dd3952ec53 (diff) | |
download | gcc-a0d8bee96e17f6c63da6f2c33ccbe7392f6a120c.zip gcc-a0d8bee96e17f6c63da6f2c33ccbe7392f6a120c.tar.gz gcc-a0d8bee96e17f6c63da6f2c33ccbe7392f6a120c.tar.bz2 |
alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers.
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
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index a94793e..dd3b3f6 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); |