]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix riscv_subword() for big endian
authorMarcus Comstedt <marcus@mc.pp.se>
Fri, 19 Mar 2021 19:49:09 +0000 (20:49 +0100)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 23 Mar 2021 09:32:41 +0000 (17:32 +0800)
commitfffefe3d9d1715f83c82331f2265e040f42d09fe
tree75b0066c2185b65c29d1170b384d2dcb98a8cdcb
parent7ac4dfec3912ef0be85542a00628c3ba01ddea2a
RISC-V: Fix riscv_subword() for big endian

gcc/
* config/riscv/riscv.c (riscv_subword): Take endianness into
account when calculating the byte offset.
gcc/config/riscv/riscv.c