The following testcase was failing with the warning: old-style function
definition ever since the c standard version has been updated. Update
the function definition.

gcc/testsuite/ChangeLog:

        * gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c: Update
          function definition.

Signed-off-by: Edwin Lu <e...@rivosinc.com>
---
 .../gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c 
b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c
index c0a7e1c35e6..476d03469d0 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c
@@ -2,9 +2,7 @@
 /* { dg-options "-march=rv32gcv -mabi=ilp32 -O2 -ftree-vectorize -flto 
-fno-use-linker-plugin -flto-partition=none -mrvv-max-lmul=dynamic" } */
 
 void (*foo[6][6]) (int);
-void bar (hdR)
-    int hdR;
-{ }
+void bar (int hdR) { }
 void xxx ()
 {
     unsigned int i, j;
-- 
2.34.1

Reply via email to