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]
Other format: [Raw text]

RFA: fix bootstrap/25397 part 2 (Was: Re: [Bug bootstrap/25397] Bootstrap failed)


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

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