This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
AN egcs patch for linux 2.1.103?
- To: egcs-bugs at cygnus dot com
- Subject: AN egcs patch for linux 2.1.103?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Thu, 21 May 1998 22:10:56 -0700 (PDT)
- Cc: torvalds at transmeta dot com (Linus Torvalds)
This seems to work for me.
--
H.J. Lu (hjl@gnu.org)
--
Thu May 21 18:10:19 1998 H.J. Lu (hjl@gnu.org)
* alias.c (rtx_equal_for_memref_p): Return 0 if code == SCRATCH.
Index: alias.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/alias.c,v
retrieving revision 1.1.1.17
diff -u -p -r1.1.1.17 alias.c
--- alias.c 1998/05/18 13:28:17 1.1.1.17
+++ alias.c 1998/05/22 00:06:50
@@ -422,6 +423,8 @@ rtx_equal_for_memref_p (x, y)
return INTVAL (x) == INTVAL (y);
if (code == ADDRESSOF)
return REGNO (XEXP (x, 0)) == REGNO (XEXP (y, 0)) && XINT (x, 1) == XINT (y, 1);
+ if (code == SCRATCH)
+ return 0;
/* For commutative operations, the RTX match if the operand match in any
order. Also handle the simple binary and unary cases without a loop. */