aboutsummaryrefslogtreecommitdiff
path: root/binutils/binemul.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-03-13 15:50:28 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-03-25 11:29:00 +0000
commitdd8953924b0966e363c27ee38a0663c08f742fa0 (patch)
tree4c6e18d299e8d9dee3f0f0a4e964ea0a94e08436 /binutils/binemul.c
parentcf2611febcfa6b7c680de31071c5658e7463eee4 (diff)
downloadgdb-dd8953924b0966e363c27ee38a0663c08f742fa0.zip
gdb-dd8953924b0966e363c27ee38a0663c08f742fa0.tar.gz
gdb-dd8953924b0966e363c27ee38a0663c08f742fa0.tar.bz2
gdb/riscv: Apply NaN boxing when writing return values into registers
When setting up function parameters we already perform NaN boxing, as required by the RISC-V ABI, however, we don't do this when writing values into registers as part of setting up a return value. This commit moves the NaN boxing code into a small helper function, and then makes use of this function when setting up function parameters, and also when setting up return values. This should resolve this failure: FAIL: gdb.base/return-nodebug.exp: float: full width of the returned result gdb/ChangeLog: PR gdb/25489 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. (riscv_regcache_cooked_write): New function. (riscv_push_dummy_call): Use new function. (riscv_return_value): Likewise.
Diffstat (limited to 'binutils/binemul.c')
0 files changed, 0 insertions, 0 deletions