From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7784 invoked by alias); 17 Nov 2001 06:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7766 invoked by uid 71); 17 Nov 2001 06:26:01 -0000 Date: Tue, 06 Nov 2001 16:54:00 -0000 Message-ID: <20011117062601.7765.qmail@sourceware.cygnus.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Craig Rodrigues Subject: Re: optimization/4815 Reply-To: Craig Rodrigues X-SW-Source: 2001-11/txt/msg00166.txt.bz2 List-Id: The following reply was made to PR optimization/4815; it has been noted by GNATS. From: Craig Rodrigues To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, ecoffey@students.latrobe.edu.au, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: optimization/4815 Date: Sat, 17 Nov 2001 01:21:41 -0500 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