This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/4815
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ecoffey at students dot latrobe dot edu dot au, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sat, 17 Nov 2001 01:21:41 -0500
- Subject: Re: optimization/4815
[Get raw message]
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4815&database=gcc
I have a better patch than the one mentioned in the e-mail archive.
Can you try the following patch? It merges in some changes from the gcc
3.1
tree.
Index: alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/alias.c,v
retrieving revision 1.115.4.7
diff -u -r1.115.4.7 alias.c
--- alias.c 2001/09/11 21:39:24 1.115.4.7
+++ alias.c 2001/11/17 06:19:01
@@ -1041,6 +1041,9 @@
/* Some RTL can be compared without a recursive examination. */
switch (code)
{
+ case VALUE:
+ return CSELIB_VAL_PTR (x) == CSELIB_VAL_PTR (y);
+
case REG:
return REGNO (x) == REGNO (y);
@@ -1109,6 +1112,12 @@
if (rtx_equal_for_memref_p (XEXP (x, i), XEXP (y, i)) == 0)
return 0;
break;
+
+ /* This can happen for asm operands. */
+ case 's':
+ if (strcmp (XSTR (x, i), XSTR (y, i)))
+ return 0;
+ break;
/* This can happen for an asm which clobbers memory. */
case '0':
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net