This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR2876 vs. reload
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: PR2876 vs. reload
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Tue, 5 Jun 2001 15:02:48 +0100 (BST)
- cc: <gcc at gcc dot gnu dot org>, Richard Henderson <rth at cygnus dot com>
On Tue, 5 Jun 2001, Mark Mitchell wrote:
>
> The failure is a regression from GCC 2.95. Bernd, would you be
> willing to look at this?
I can't reproduce the problem, but does this patch fix it?
Bernd
* reload1.c (reload): Delete all USEs generated during reload.
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.255.4.9
diff -u -p -r1.255.4.9 reload1.c
--- reload1.c 2001/05/17 17:04:51 1.255.4.9
+++ reload1.c 2001/06/05 14:02:04
@@ -1187,7 +1187,7 @@ reload (first, global)
CALL_INSN_FUNCTION_USAGE (insn));
if ((GET_CODE (PATTERN (insn)) == USE
- && find_reg_note (insn, REG_EQUAL, NULL_RTX))
+ && INSN_UID (insn) >= reload_first_uid)
|| (GET_CODE (PATTERN (insn)) == CLOBBER
&& (GET_CODE (XEXP (PATTERN (insn), 0)) != REG
|| ! REG_FUNCTION_VALUE_P (XEXP (PATTERN (insn), 0)))))