aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2023-12-04 13:22:18 +0100
committerRobin Dapp <rdapp@ventanamicro.com>2023-12-04 17:06:38 +0100
commit1067e9d347a9d9ff8e1cd3df9e60bca3da85a734 (patch)
tree4e0383b0c21727db12a0fce9c9ec5793f4169fd6 /gcc
parentcdb34bf5dd10df967b7f72a502a48cc34e284ef0 (diff)
downloadgcc-1067e9d347a9d9ff8e1cd3df9e60bca3da85a734.zip
gcc-1067e9d347a9d9ff8e1cd3df9e60bca3da85a734.tar.gz
gcc-1067e9d347a9d9ff8e1cd3df9e60bca3da85a734.tar.bz2
RISC-V: Fix two testscases related to -std changes.
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c2
-rw-r--r--gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c
index 32d221c..4ef76cd 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 7903704..3beca30 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