gdb/riscv: Handle passing variadic floating point arguments
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 4 Dec 2018 15:56:09 +0000 (15:56 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 12 Dec 2018 14:21:31 +0000 (14:21 +0000)
commit4de3d8d06673d130e256a6ad81e5df2e412934c1
tree042cceb76e5a824b6b97adfea68570a0c85a6a2c
parent13dc50ee16e1ff4180da61bdbd86e4a3c304b283
gdb/riscv: Handle passing variadic floating point arguments

This commit fixes some test failures in gdb.base/varargs.exp when
running on targets with floating point hardware.  Floating point
unnamed (variadic) arguments should be passed in integer registers
according to the abi.

After this commit I see no failures in gdb.base/varargs.exp on 32 or
64 bit targets with floating point hardware.

gdb/ChangeLog:

* riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
arguments are passed in integer registers.
(riscv_call_arg_complex_float): Likewise.
gdb/ChangeLog
gdb/riscv-tdep.c