This is the mail archive of the gcc-patches@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


Bernd Schmidt and Mark Mitchell worked on resolving PR2876.
Unfortunately, the proposed patch breaks mips-sgi-irix6.5 gcc3.0
builds using the default `-O2'.  Thus, I am reverting the patch under
the gcc3.0 immediate reversion policy
(http://gcc.gnu.org/ml/gcc/2001-05/msg01044.html).

2001-06-05  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* reload1.c (reload): Revert Schmidt's change so all USEs are not
	deleted during reload.

Untested.
Approved by immediate reversion policy.
gcc 3.0 and 3.1

Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.255.4.10
diff -c -p -r1.255.4.10 reload1.c
*** reload1.c	2001/06/05 20:39:11	1.255.4.10
--- reload1.c	2001/06/06 03:28:20
*************** reload (first, global)
*** 1187,1193 ****
  					 CALL_INSN_FUNCTION_USAGE (insn));
  
  	if ((GET_CODE (PATTERN (insn)) == USE
! 	     && 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)))))
--- 1187,1193 ----
  					 CALL_INSN_FUNCTION_USAGE (insn));
  
  	if ((GET_CODE (PATTERN (insn)) == USE
! 	     && find_reg_note (insn, REG_EQUAL, NULL_RTX))
  	    || (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]