This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[new-ra] enable-checking fix
- From: Michael Matz <matz at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Oct 2003 20:23:48 +0200 (CEST)
- Subject: [new-ra] enable-checking fix
Hi,
--enable-checking=something caught this one.
Ciao,
Michael.
--
* pre-reload.c (scan_alternative): Don't overwrite operand before
using it.
Index: pre-reload.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/pre-reload.c,v
retrieving revision 1.1.2.17
diff -u -p -r1.1.2.17 pre-reload.c
--- pre-reload.c 10 Oct 2003 14:18:56 -0000 1.1.2.17
+++ pre-reload.c 10 Oct 2003 18:20:30 -0000
@@ -2238,8 +2238,8 @@ scan_alternative (this_alt, constraints,
match_operator and friends. */
if (GET_RTX_CLASS (GET_CODE (operand)) == '1' && *p != 0)
{
- operand = XEXP (operand, 0);
operand_loc = &XEXP (operand, 0);
+ operand = XEXP (operand, 0);
}
/* If the operand is a SUBREG, extract
@@ -2261,8 +2261,8 @@ scan_alternative (this_alt, constraints,
SUBREG_BYTE (operand),
GET_MODE (operand));
}
- operand = SUBREG_REG (operand);
operand_loc = &SUBREG_REG (operand);
+ operand = SUBREG_REG (operand);
/* Force reload if this is a constant or PLUS or if there may
be a problem accessing OPERAND in the outer mode. */
if (CONSTANT_P (operand)