https://gcc.gnu.org/g:b9cc894fda53cdcf05efd9884f3d607e8c014360

commit b9cc894fda53cdcf05efd9884f3d607e8c014360
Author: Robin Dapp <[email protected]>
Date:   Mon Nov 3 13:36:09 2025 -0700

    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.
    
    (cherry picked from commit c5d658eb0b35df360b79c1fcc65737239ff5cee7)

Diff:
---
 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 ac8a70e9eddf..524201c95f7a 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

Reply via email to