This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
choose_reload_regs patch
- To: egcs-patches at cygnus dot com
- Subject: choose_reload_regs patch
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Wed, 10 Mar 1999 19:02:21 +0000 (GMT)
- Cc: amylaar at cygnus dot co dot uk
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])