This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PR2876 vs. reload


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)))))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]