RISC-V: Give stack slots same align as XLEN.
authorJim Wilson <jimw@sifive.com>
Wed, 14 Nov 2018 22:51:40 +0000 (14:51 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 14 Nov 2018 22:51:40 +0000 (14:51 -0800)
commit174f8ac8d49021137f98884fc22a7d233e2f89b2
tree7ed2c1d745734f44f5e577f7b7ec255788331599
parentdd9168931facd539a585b88d7b7c6c04c8c065c2
RISC-V: Give stack slots same align as XLEN.

For riscv64-linux target, fixes
FAIL: gdb.base/gnu_vector.exp: call add_many_charvecs

Ensure that stack slots are always the same alignment as XLEN by rounding
up arg align to xlen.

gdb/
* riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
setting len.  New local align, set to max of arg align and xlen,
and pass to first riscv_assign_stack_location call.
gdb/ChangeLog
gdb/riscv-tdep.c