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]

Re: RFA: disparage CLASS_LIKELY_SPILLED reloads for fully used register classes; fixes sh-elf build failure


> 2004-03-01  J"orn Rennecke <joern.rennecke@superh.com>
> 
> 	* reload.h (find_reloads): Declare in insn_chain block.  First
> 	argument is a struct insn_chain *.  Changed all callers.
> 	* reload.c (no_free_reg): New function.
> 	(find_reloads): First argument is a struct insn_chain *.
> 	For CLASS_LIKLY_SPILLED_P registers, disparage win_reg strategy if
> 	there is no free register available.

P.S.: I forgot to mention the header file changes in the ChangeLog
and to include the Makefile.in patch.

2004-03-01  J"orn Rennecke <joern.rennecke@superh.com>

	* reload.h (find_reloads): Declare in insn_chain block.  First
	argument is a struct insn_chain *.  Changed all callers.
	* reload.c ("basic-block.h"): Include.
	("reload.h"): Include after "hard-reg-set.h" and "basic-block.h".
	(no_free_reg): New function.
	(find_reloads): First argument is a struct insn_chain *.
	For CLASS_LIKLY_SPILLED_P registers, disparage win_reg strategy if
	there is no free register available.
	* Makefile.in (reload.o): Depend on $(BASIC_BLOCK_H).

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1256
diff -p -r1.1256 Makefile.in
*** Makefile.in	27 Feb 2004 08:54:28 -0000	1.1256
--- Makefile.in	1 Mar 2004 21:01:01 -0000
*************** ra-rewrite.o : ra-rewrite.c $(CONFIG_H) 
*** 1780,1786 ****
     output.h except.h ra.h reload.h insn-config.h
  reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) flags.h output.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \
!    $(REGS_H) function.h real.h toplev.h $(TM_P_H) $(PARAMS_H)
  reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) real.h flags.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
     $(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h $(TM_P_H) \
--- 1780,1786 ----
     output.h except.h ra.h reload.h insn-config.h
  reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) flags.h output.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \
!    $(REGS_H) function.h real.h toplev.h $(TM_P_H) $(PARAMS_H) $(BASIC_BLOCK_H)
  reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) real.h flags.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
     $(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h $(TM_P_H) \


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