Set rsize properly for args passed by reference.

From-SVN: r36429
This commit is contained in:
Bernd Schmidt 2000-09-15 09:24:47 +00:00 committed by Bernd Schmidt
parent c363a0c03b
commit dd193c7921
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
* config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
is defined.
* config/mips/mips.c (mips_va_arg): Args passed by reference have a
rsize of UNITS_PER_WORD.
Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>

View File

@ -4456,7 +4456,10 @@ mips_va_arg (valist, type)
indirect
= function_arg_pass_by_reference (NULL, TYPE_MODE (type), type, 0);
if (indirect)
size = rsize = POINTER_SIZE / BITS_PER_UNIT;
{
size = POINTER_SIZE / BITS_PER_UNIT;
rsize = UNITS_PER_WORD;
}
addr_rtx = gen_reg_rtx (Pmode);