From c5d658eb0b35df360b79c1fcc65737239ff5cee7 Mon Sep 17 00:00:00 2001 From: Robin Dapp Date: Mon, 3 Nov 2025 13:36:09 -0700 Subject: [PATCH] RISC-V: testsuite: Fix pr119115.c. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pr119115.c b/gcc/testsuite/gcc.target/riscv/rvv/base/pr119115.c index ac8a70e9edd..524201c95f7 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pr119115.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pr119115.c @@ -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 -- 2.47.3