function.c (purge_single_hard_subreg_set): Only check REGNO if the subreg was a hard register.

2001-04-10  Andrew MacLeod  <amacleod@redhat.com>

	* function.c (purge_single_hard_subreg_set): Only check REGNO if
	the subreg was a hard register. Pseudos are left as subregs.

From-SVN: r41217
This commit is contained in:
Andrew MacLeod 2001-04-10 02:47:32 +00:00 committed by Andrew Macleod
parent fa9518de02
commit 55107ee39c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-04-10 Andrew MacLeod <amacleod@redhat.com>
* function.c (purge_single_hard_subreg_set): Only check REGNO if
the subreg was a hard register. Pseudos are left as subregs.
2001-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* Makefile.in (LIB2FUNCS_STATIC_EXTRA): New macro.

View File

@ -3456,7 +3456,7 @@ purge_single_hard_subreg_set (pattern)
}
if (REGNO (reg) < FIRST_PSEUDO_REGISTER)
if (GET_CODE (reg) == REG && REGNO (reg) < FIRST_PSEUDO_REGISTER)
{
reg = gen_rtx_REG (mode, REGNO (reg) + offset);
SET_DEST (pattern) = reg;