RISC-V: Fix two testscases related to -std changes.

Message ID 157b3c54-d18f-4908-b20b-b6726545b999@gmail.com
State Committed
Commit 1067e9d347a9d9ff8e1cd3df9e60bca3da85a734
Delegated to: Robin Dapp
Headers
Series RISC-V: Fix two testscases related to -std changes. |

Checks

Context Check Description
rivoscibot/toolchain-ci-rivos-apply-patch success Patch applied
rivoscibot/toolchain-ci-rivos-lint success Lint passed
linaro-tcwg-bot/tcwg_gcc_build--master-arm success Testing passed
rivoscibot/toolchain-ci-rivos-build--newlib-rv64gc-lp64d-multilib success Build passed
rivoscibot/toolchain-ci-rivos-build--linux-rv32gc_zba_zbb_zbc_zbs-ilp32d-non-multilib success Build passed
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Testing passed
rivoscibot/toolchain-ci-rivos-build--linux-rv64gc_zba_zbb_zbc_zbs-lp64d-non-multilib success Build passed
rivoscibot/toolchain-ci-rivos-test pending Testing started
rivoscibot/toolchain-ci-rivos-build--linux-rv64gcv-lp64d-multilib pending Build started
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Testing passed
rivoscibot/toolchain-ci-rivos-build--newlib-rv64gcv-lp64d-multilib pending Build started

Commit Message

Robin Dapp Dec. 4, 2023, 1:17 p.m. UTC
  Hi,

recent -std changes caused testsuite failures.  Fix those by adding
-std=gnu99 and -Wno-incompatible-pointer-types.

Going to commit as obvious.

Regards
 Robin

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/pr112552.c: Add
	-Wno-incompatible-pointer-types.
	* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c:
	Add -std=gnu99.
---
 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c           | 2 +-
 .../gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Jeff Law Dec. 4, 2023, 3:20 p.m. UTC | #1
On 12/4/23 06:17, Robin Dapp wrote:
> Hi,
> 
> recent -std changes caused testsuite failures.  Fix those by adding
> -std=gnu99 and -Wno-incompatible-pointer-types.
> 
> Going to commit as obvious.
> 
> Regards
>   Robin
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.target/riscv/rvv/autovec/pr112552.c: Add
> 	-Wno-incompatible-pointer-types.
> 	* gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c:
> 	Add -std=gnu99.
THanks.  Seeing light fallout from this stuff is totally expected.

My tester has churned through its supported *-elf targets and all those 
have been fixed.  Now it's just a matter of waiting for the native 
emulated targets which only fire once a week.

Jeff
  

Patch

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c
index 32d221ccede..4ef76cd3506 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -w" } */
+/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -w -Wno-incompatible-pointer-types" } */
 
 int a, c, d;
 void (*b)();
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c
index 79037048f55..3beca30c361 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c
@@ -1,5 +1,5 @@ 
 /* { dg-do run { target { riscv_v && riscv_zvfh_hw } } } */
-/* { dg-additional-options "-std=c99 --param=riscv-autovec-preference=scalable -fno-vect-cost-model" } */
+/* { dg-additional-options "-std=gnu99 --param=riscv-autovec-preference=scalable -fno-vect-cost-model" } */
 
 #define TYPE _Float16
 #define ITYPE int16_t