reload1.c (reload_reg_free_for_value_p): Don't use a register that is in reload_reg_used.

Thu Nov  4 15:52:35 1999  Andrew Haley  <aph@cygnus.com>

	* reload1.c (reload_reg_free_for_value_p): Don't use a register
	that is in reload_reg_used.

From-SVN: r30461
This commit is contained in:
Andrew Haley 1999-11-09 16:52:19 +00:00 committed by Andrew Haley
parent eb3921e89a
commit dc8842bf9b
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
* reload1.c (reload_reg_free_for_value_p): Don't use a register
that is in reload_reg_used.
Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/arm-protos.h: New file: Prototypes for functions

View File

@ -5307,6 +5307,13 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
int i;
int copy = 0;
/* ??? reload_reg_used is abused to hold the registers that are not
available as spill registers, including hard registers that are
earlyclobbered in asms. As a temporary measure, reject anything
in reload_reg_used. */
if (TEST_HARD_REG_BIT (reload_reg_used, regno))
return 0;
if (out == const0_rtx)
{
copy = 1;