]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: riscv: pr114139 goes 64-bit without choosing a 64-bit abi
authorAlexandre Oliva <oliva@adacore.com>
Sun, 1 Feb 2026 07:35:44 +0000 (04:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 1 Feb 2026 07:35:44 +0000 (04:35 -0300)
This test selects a 64-bit cpu, which sets the arch to 64-bit, without
selecting a 64-bit abi, so it fails on riscv32-elf.  Set the abi.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/pr114139.c: Set the abi explicitly.

gcc/testsuite/gcc.target/riscv/pr114139.c

index d4e7593f5c04b1141e9f441c771c6752268913f1..5aa587f1b6f0ff9d8f9ec3887d176dff046bf6dd 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! riscv_abi_e } } } */
-/* { dg-options "-O2 -fpic -mexplicit-relocs -mcpu=sifive-p450" } */
+/* { dg-options "-O2 -fpic -mexplicit-relocs -mcpu=sifive-p450 -mabi=lp64d" } */
 
 static void *p;
 extern void *a[];