aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object-xcoff.c
diff options
context:
space:
mode:
authorJin Ma <jinma@linux.alibaba.com>2025-01-13 10:10:22 -0700
committerJeff Law <jlaw@ventanamicro.com>2025-01-13 10:10:22 -0700
commitecf688edc217472774817cc1284e75a9f72fe1b4 (patch)
tree0e7f507b784424eeca6f291508e338c776969368 /libiberty/simple-object-xcoff.c
parent655a8a024dd49ddf73e745f3c7486596d68ae3e8 (diff)
downloadgcc-ecf688edc217472774817cc1284e75a9f72fe1b4.zip
gcc-ecf688edc217472774817cc1284e75a9f72fe1b4.tar.gz
gcc-ecf688edc217472774817cc1284e75a9f72fe1b4.tar.bz2
RISC-V: Fix program logic errors caused by data truncation on 32-bit host for zbs, such as i386
Correct logic on 64-bit host: ... bseti a5,zero,38 bseti a5,a5,63 addi a5,a5,-1 and a4,a4,a5 ... Wrong logic on 32-bit host: ... li a5,64 bseti a5,a5,31 addi a5,a5,-1 and a4,a4,a5 ... gcc/ChangeLog: * config/riscv/riscv.cc (riscv_build_integer_1): Change 1UL/1ULL to HOST_WIDE_INT_1U. gcc/testsuite/ChangeLog: * gcc.target/riscv/zbs-bug.c: New test.
Diffstat (limited to 'libiberty/simple-object-xcoff.c')
0 files changed, 0 insertions, 0 deletions