]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: fix old-style function definition error [NFC]
authorEdwin Lu <ewlu@rivosinc.com>
Mon, 18 Nov 2024 22:36:17 +0000 (14:36 -0800)
committerEdwin Lu <ewlu@rivosinc.com>
Tue, 19 Nov 2024 17:39:22 +0000 (09:39 -0800)
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 <ewlu@rivosinc.com>
gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c

index c0a7e1c35e6cbc3cbbb15390bb90779d55da7450..476d03469d0163dd4a03230a8088991c16a52850 100644 (file)
@@ -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;