]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] [RISC-V] Fix testsuite fallout from recent changes
authorJeff Law <jlaw@ventanamicro.com>
Fri, 11 Apr 2025 14:28:22 +0000 (08:28 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Fri, 11 Apr 2025 14:28:22 +0000 (08:28 -0600)
Recent changes have started triggering:

> Tests that now fail, but worked before (3 tests):
>
> unix/-march=rv64gc_zba_zbb_zbs_zicond: gcc: gcc.target/riscv/rvv/base/pr115068-run.c (test for excess errors)
> unix/-march=rv64gc_zba_zbb_zbs_zicond: gcc: gcc.target/riscv/rvv/base/pr115068.c (test for excess errors)
> unix/-march=rv64gc_zba_zbb_zbs_zicond: gcc: gcc.target/riscv/rvv/base/vwaddsub-1.c (test for excess errors)

We're emitting a pedantic diagnostic on the #include_next.  This just turns off the pedantic warnings.

Pushing as obvious.

gcc/testsuite
* gcc.target/riscv/rvv/base/pr115068-run.c: Turn off pedantic diagnostics.
* gcc.target/riscv/rvv/base/pr115068.c: Likewise.
* gcc.target/riscv/rvv/base/vwaddsub-1.c: Likewise.

gcc/testsuite/gcc.target/riscv/rvv/base/pr115068-run.c
gcc/testsuite/gcc.target/riscv/rvv/base/pr115068.c
gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c

index d552eb568f679a8cc6b61533eac8850de820d3fa..e9e41f7db87f5f61d5fa8bbe2078159ff8315d8d 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target riscv_v_ok } */
 /* { dg-add-options riscv_v } */
-/* { dg-additional-options "-std=gnu99" } */
+/* { dg-additional-options "-std=gnu99 -Wno-pedantic" } */
 
 #include "pr115068.c"
index 8144d29b83783d3f18edbf11b12ca5591b9d0771..ce9a3892a700729163e0f716af287dcfd6387685 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile { target { ! riscv_abi_e } } } */
 /* { dg-add-options riscv_v } */
-/* { dg-additional-options "-std=gnu99" } */
+/* { dg-additional-options "-std=gnu99 -Wno-pedantic" } */
 
 #include <stdint.h>
 #include "riscv_vector.h"
index c0ca9fcbf9080d8e2cba42a0fba47fe5b1ef765e..43be202ebe9ae78fe7d69b2fe7bc435cc6fde687 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile { target { { ! riscv_abi_e } && rv64 } } } */
 /* { dg-add-options riscv_v } */
-/* { dg-additional-options "-std=gnu99 -O3 -fno-schedule-insns -fno-schedule-insns2" } */
+/* { dg-additional-options "-std=gnu99 -O3 -fno-schedule-insns -fno-schedule-insns2 -Wno-pedantic" } */
 
 #include <stdint.h>
 #include "riscv_vector.h"