On 1/31/2026 1:19 AM, Alexandre Oliva wrote:
The test selects a 64-bit cpu explicitly, which enables a 64-bit arch,
but the test doesn't set the abi, so it fails on riscv32-elf. Set a
64-bit abi explicitly.
Regstrapped on x86_64-linux-gnu along with other patches in this batch;
also tested with targets riscv64-elf and riscv32-elf on the same host,
both trunk and gcc-15. Ok to install?
for gcc/testsuite/ChangeLog
* gcc.target/riscv/pr118170.c: Set the abi explicitly.
OK. Consider similar patches pre-approved.
This kind of oversight is fairly common in the riscv tests because the
architecture does not imply the ABI. We've got an open BZ to address
that recurring problem, but nobody's tackled it yet.
Jeff