aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEdwin Lu <ewlu@rivosinc.com>2024-11-18 14:36:17 -0800
committerEdwin Lu <ewlu@rivosinc.com>2024-11-19 09:39:22 -0800
commitc4156864611ea231acd842a8d3705989217a8a13 (patch)
tree393ee344dc05fdb663bca5be7be609d577143308 /gcc
parent9f7b323caab2215042df0ab0f4eef251c54128fc (diff)
downloadgcc-c4156864611ea231acd842a8d3705989217a8a13.zip
gcc-c4156864611ea231acd842a8d3705989217a8a13.tar.gz
gcc-c4156864611ea231acd842a8d3705989217a8a13.tar.bz2
RISC-V: testsuite: fix old-style function definition error [NFC]
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul-ice-3.c4
1 files changed, 1 insertions, 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 c0a7e1c..476d034 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;