Commit dd193c79 by Bernd Schmidt Committed by Bernd Schmidt

Set rsize properly for args passed by reference.

From-SVN: r36429
parent c363a0c0
......@@ -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>
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment