This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: fix bootstrap/25397 part 2 (Was: Re: [Bug bootstrap/25397] Bootstrap failed)
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: gcc-bugzilla at gcc dot gnu dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>, pinskia at gcc dot gnu dot org
- Date: Tue, 13 Dec 2005 23:03:19 +0000
- Subject: RFA: fix bootstrap/25397 part 2 (Was: Re: [Bug bootstrap/25397] Bootstrap failed)
- References: <bug-25397-682@http.gcc.gnu.org/bugzilla/> <20051213225147.25868.qmail@sourceware.org>
pinskia at gcc dot gnu dot org wrote:
/* Compile with -O2 -m32 -fPIC */
...
Thanks. I have attached a patch.
2005-12-13 J"orn Rennecke <joern.rennecke@st.com>
* struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
of STACK_REGS bits.
Index: struct-equiv.c
===================================================================
/usr/bin/diff -p -d -F^( -u -L struct-equiv.c (revision 108480) -L struct-equiv.c (working copy) .svn/text-base/struct-equiv.c.svn-base struct-equiv.c
--- struct-equiv.c (revision 108480)
+++ struct-equiv.c (working copy)
@@ -1001,7 +1004,7 @@ struct_equiv_init (int mode, struct equi
these regs are not necessarily all dead - we swap random bogosity
against constant bogosity. However, clearing these bits at
least makes the regsets comparable. */
- for (rn = FIRST_STACK_REG; rn < LAST_STACK_REG; rn++)
+ for (rn = FIRST_STACK_REG; rn <= LAST_STACK_REG; rn++)
{
CLEAR_REGNO_REG_SET (info->x_block->il.rtl->global_live_at_end, rn);
CLEAR_REGNO_REG_SET (info->y_block->il.rtl->global_live_at_end, rn);