]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Fix pr119115.c.
authorRobin Dapp <rdapp.gcc@gmail.com>
Mon, 3 Nov 2025 20:36:09 +0000 (13:36 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 3 Nov 2025 20:36:09 +0000 (13:36 -0700)
pr119115.c is broken (since it was added?) but because we only
attempt to compile/run it on a 256b target I never noticed it.

This patch adds -std=gnu99 to make it compile.

Regtested on rv64gcv_zvl512b.  Going to push after the CI run.

Regards
 Robin

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/pr119115.c: Add -std=gnu99.

gcc/testsuite/gcc.target/riscv/rvv/base/pr119115.c

index ac8a70e9eddf3b28eac0ee171e18bcf7d4a715b3..524201c95f7ae7bb1dc1db8d3558bd88ec3f7cd2 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-require-effective-target rv64 } */
 /* { dg-require-effective-target rvv_zvl256b_ok } */
-/* { dg-additional-options "-march=rv64gcv_zvl256b -mabi=lp64d -O3 -fsigned-char -fwrapv -mrvv-vector-bits=zvl" } */
+/* { dg-additional-options "-march=rv64gcv_zvl256b -mabi=lp64d -O3 -fsigned-char -fwrapv -mrvv-vector-bits=zvl -std=gnu99" } */
 
 short a[4][14][14];
 void