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]

[PATCH]: PR 11271 Handle reloading of R+R+CONST for any reg


I originally proposed this some time ago, but never got around to 
installing it.  On Thumb register elimination can lead us to situations 
where a construct of the form

	Reg + Reg + CONST

does not contain a base register.   A patch made to handle a different 
problem on SPARC resulted in this case failing to compile, even though a 
later pass could fix up the problem.

Fixed by forcing find_reloads_address to handle this case for all register 
classes, not just base-register classes.

R.

2003-10-31  Richard Earnshaw  <rearnsha@arm.com>

	PR target/11271
	* reload.c (find_reloads_address): Handle any register in
	(PLUS (PLUS (REG) (REG)) (CONST_INT).


Attachment: reload_addr_elim.patch
Description: reload_addr_elim.patch


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