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]

choose_reload_regs patch


I have checked in the enclosed patch into the egsc mainline.
Patch reviewed by Jim Wilson.

Mon Mar  8 21:44:07 1999  J"orn Rennecke <amylaar@cygnus.co.uk>

	* reload1.c (choose_reload_regs): When inheriting from the frame
	pointer, don't clobber it.

Index: reload1.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/reload1.c,v
retrieving revision 1.218.2.2
diff -p -r1.218.2.2 reload1.c
*** reload1.c	1999/02/13 00:56:50	1.218.2.2
--- reload1.c	1999/03/08 21:44:21
*************** choose_reload_regs (chain)
*** 5941,5946 ****
--- 5941,5949 ----
  			      || (TEST_HARD_REG_BIT (reg_used_in_insn, i)
  				  && reload_out[r]
  				  && ! TEST_HARD_REG_BIT (reg_reloaded_dead, i))
+ 			      /* Don't clobber the frame pointer.  */
+ 			      || (i == HARD_FRAME_POINTER_REGNUM
+ 				  && reload_out[r])
  			      /* Don't really use the inherited spill reg
  				 if we need it wider than we've got it.  */
  			      || (GET_MODE_SIZE (reload_mode[r])


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