On Thu, Dec 18, 2025 at 4:24 AM Robin Dapp <[email protected]> wrote: > > Hi, > > I thought I had sent this already but cannot seem to find it now. > This patch trivially fixes a few test cases that I noticed during > testing. > > Regtested on rv64gcv_zvl512b. Going to commit as obvious. > > Regards > Robin > > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/rvv/autovec/pr120378-1.c: Dump "optimized". > * gcc.target/riscv/rvv/autovec/pr121510.c: Add semicolon. > * gcc.target/riscv/rvv/base/pr112431-21.c: Add -Wno-pedantic. > --- > gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c | 2 +- > gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c | 2 +- > gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c > b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c > index 500028e7a15..54f25e0ceaa 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr120378-1.c > @@ -1,5 +1,5 @@ > /* { dg-do compile } */ > -/* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ > +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fdump-tree-optimized" } */ > > #include <stdint.h> > > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c > b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c > index 8e1728608d3..3f11c717afc 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr121510.c > @@ -8,7 +8,7 @@ void print_bfloat() { > long j; > union { > _Float16 x; > - char b[] > + char b[]; > } u; > j = 0; > for (; j < sizeof 0; j++) > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c > b/gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c > index a0ed79352d2..8239c5436d3 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/pr112431-21.c > @@ -1,5 +1,5 @@ > /* { dg-do run { target { riscv_v } } } */ > -/* { dg-additional-options "-O3 -ansi -pedantic-errors -std=gnu99" } */ > +/* { dg-additional-options "-O3 -ansi -pedantic-errors -std=gnu99 > -Wno-pedantic" } */
This change seems wrong. -pedantic-errors turns on -Werror=Wpedantic and you just added -Wno-pedantic so you turn it off. I have not looked into the source to understand what pedantic error is showing up though. Thanks, Andrew > > #include "riscv_vector.h" > > -- > 2.51.1 >
