This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR2876 vs. reload
- To: bernds at redhat dot com
- Subject: Re: PR2876 vs. reload
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Tue, 5 Jun 2001 20:41:05 -0700
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com, Jeffrey Oldham <oldham at codesourcery dot com>, rth at cygnus dot com
- Organization: CodeSourcery LLC
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)))))