[committed] [RISC-V] Fix testsuite fallout from recent changes

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.
This commit is contained in:
Jeff Law 2025-04-11 08:28:22 -06:00
parent 4acdfb71d4
commit 992be16d83
3 changed files with 3 additions and 3 deletions

View 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"

View 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"

View 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"