From: Andrew Haley Date: Fri, 10 Sep 1999 14:12:01 +0000 (+0000) Subject: alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers. X-Git-Tag: prereleases/libstdc++-2.92~10682 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0d8bee96e17f6c63da6f2c33ccbe7392f6a120c;p=thirdparty%2Fgcc.git alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers. Wed Sep 8 16:12:04 1999 Andrew Haley * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used as pointers. From-SVN: r29269 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62c53c8fd332..7161319bbac6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 8 16:12:04 1999 Andrew Haley + + * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used + as pointers. + Fri Sep 10 11:58:55 1999 Bernd Schmidt * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some diff --git a/gcc/alias.c b/gcc/alias.c index a94793ea12c6..dd3b3f6803f2 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);