* expr.c (use_group_regs): Don't call use_reg for MEMs.

From-SVN: r16046
This commit is contained in:
Doug Evans 1997-10-18 19:48:25 +00:00 committed by Doug Evans
parent 6981eacffd
commit 6bd35f8671
2 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 18 12:47:31 1997 Doug Evans <dje@canuck.cygnus.com>
* expr.c (use_group_regs): Don't call use_reg for MEMs.
Sat Oct 18 00:43:59 1997 Jeffrey A Law (law@cygnus.com)
* i386/freebsd.h (ASM_COMMENT_START): Fix.

View file

@ -1922,15 +1922,16 @@ use_group_regs (call_fusage, regs)
{
int i;
/* Check for a NULL entry, used to indicate that the parameter goes
both on the stack and in registers. */
if (XEXP (XVECEXP (regs, 0, 0), 0))
i = 0;
else
i = 1;
for (i = 0; i < XVECLEN (regs, 0); i++)
{
rtx reg = XEXP (XVECEXP (regs, 0, i), 0);
for (; i < XVECLEN (regs, 0); i++)
use_reg (call_fusage, XEXP (XVECEXP (regs, 0, i), 0));
/* A NULL entry means the parameter goes both on the stack and in
registers. This can also be a MEM for targets that pass values
partially on the stack and partially in registers. */
if (reg && GET_CODE (reg) == REG)
use_reg (call_fusage, reg);
}
}
/* Generate several move instructions to clear LEN bytes of block TO.