]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix two testscases related to -std changes.
authorRobin Dapp <rdapp@ventanamicro.com>
Mon, 4 Dec 2023 12:22:18 +0000 (13:22 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Mon, 4 Dec 2023 16:06:38 +0000 (17:06 +0100)
Recent -std changes caused testsuite failures.  Fix those by adding
-std=gnu99 and -Wno-incompatible-pointer-types.

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
gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c

index 32d221ccede4b58c92e21b6815a27a5a7eaacf51..4ef76cd350685212fb3b59ca6c46d3186af422ac 100644 (file)
@@ -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)();
index 79037048f55e4dac5598ac06db2b90a0d4a68cc8..3beca30c361ea117b6a56c47cf8e817093491a05 100644 (file)
@@ -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