mips.c (mips_va_arg): In the EABI code, apply the big-endian correction to indirect arguments too.
* config/mips/mips.c (mips_va_arg): In the EABI code, apply the big-endian correction to indirect arguments too. From-SVN: r60990
This commit is contained in:
parent
f2741d5fbb
commit
83282119ef
2 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-01-07 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* config/mips/mips.c (mips_va_arg): In the EABI code, apply the
|
||||
big-endian correction to indirect arguments too.
|
||||
|
||||
2003-01-06 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
Segher Boessenkool <segher@koffie.nl>
|
||||
|
|
|
@ -4989,6 +4989,8 @@ mips_va_arg (valist, type)
|
|||
emit_queue();
|
||||
emit_label (lab_over);
|
||||
}
|
||||
if (BYTES_BIG_ENDIAN && rsize != size)
|
||||
addr_rtx = plus_constant (addr_rtx, rsize - size);
|
||||
if (indirect)
|
||||
{
|
||||
addr_rtx = force_reg (Pmode, addr_rtx);
|
||||
|
@ -4996,11 +4998,6 @@ mips_va_arg (valist, type)
|
|||
set_mem_alias_set (r, get_varargs_alias_set ());
|
||||
emit_move_insn (addr_rtx, r);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (BYTES_BIG_ENDIAN && rsize != size)
|
||||
addr_rtx = plus_constant (addr_rtx, rsize - size);
|
||||
}
|
||||
return addr_rtx;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue