diff options
author | Jim Wilson <jimw@sifive.com> | 2018-11-14 14:52:34 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-11-14 14:52:34 -0800 |
commit | ef2de9e7eb19cf6f56c8378df82cab30ff741fe0 (patch) | |
tree | b6d1d7ffdda84af419fca6c83e17199cbbbb99d4 /gdb/utils.c | |
parent | 174f8ac8d49021137f98884fc22a7d233e2f89b2 (diff) | |
download | binutils-ef2de9e7eb19cf6f56c8378df82cab30ff741fe0.zip binutils-ef2de9e7eb19cf6f56c8378df82cab30ff741fe0.tar.gz binutils-ef2de9e7eb19cf6f56c8378df82cab30ff741fe0.tar.bz2 |
RISC-V: Handle vector type alignment.
For riscv64-linux target, first half of fix for
FAIL: gdb.base/gnu_vector.exp: call add_various_floatvecs
GCC gives vectors natural aligment based on total size, not element size,
bounded by the maximum supported type alignment.
gdb/
* riscv-tdep.c (BIGGEST_ALIGNMENT): New.
(riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
of TYPE_LENGTH and BIGGEST_ALIGNMENT.
Diffstat (limited to 'gdb/utils.c')
0 files changed, 0 insertions, 0 deletions