riscv-software-src / riscv-tests

Other
906 stars 463 forks source link

Compilation issue for dhrystone benchmark #584

Open pratikkedar opened 1 month ago

pratikkedar commented 1 month ago

dhrystone benchmark results in compilation issues.

/home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c:20:1: error: return type defaults to 'int' [-Wimplicit-int] 20 | Proc_6 (Enum_Val_Par, Enum_Ref_Par) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c: In function 'Proc_6': /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c:29:9: error: implicit declaration of function 'Func_3' [-Wimplicit-function-declaration] 29 | if (! Func_3 (Enum_Val_Par)) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c: At top level: /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c:54:1: error: return type defaults to 'int' [-Wimplicit-int] 54 | Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone.c:74:1: error: return type defaults to 'int' [-Wimplicit-int] 74 | Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c: In function 'main': /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:120:7: error: implicit declaration of function 'Proc_5' [-Wimplicit-function-declaration] 120 | Proc_5(); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:121:7: error: implicit declaration of function 'Proc_4' [-Wimplicit-function-declaration] 121 | Proc_4(); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:127:21: error: implicit declaration of function 'Func_2'; did you mean 'Func_1'? [-Wimplicit-function-declaration] 127 | Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc); | ^~ | Func_1 /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:133:9: error: implicit declaration of function 'Proc_7' [-Wimplicit-function-declaration] 133 | Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:138:7: error: implicit declaration of function 'Proc_8' [-Wimplicit-function-declaration] 138 | Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:140:7: error: implicit declaration of function 'Proc_1' [-Wimplicit-function-declaration] 140 | Proc_1 (Ptr_Glob); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:147:11: error: implicit declaration of function 'Proc_6' [-Wimplicit-function-declaration] 147 | Proc_6 (Ident_1, &Enum_Loc); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:158:7: error: implicit declaration of function 'Proc_2' [-Wimplicit-function-declaration] 158 | Proc_2 (&Int_1_Loc); | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c: At top level: /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:242:1: error: return type defaults to 'int' [-Wimplicit-int] 242 | Proc_1 (Ptr_Val_Par) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c: In function 'Proc_1': /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:258:3: error: implicit declaration of function 'Proc_3'; did you mean 'Proc_1'? [-Wimplicit-function-declaration] 258 | Proc_3 (&Next_Record->Ptr_Comp); | ^~ | Proc_1 /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c: At top level: /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:276:1: error: return type defaults to 'int' [-Wimplicit-int] 276 | Proc_2 (Int_Par_Ref) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:299:1: error: return type defaults to 'int' [-Wimplicit-int] 299 | Proc_3 (Ptr_Ref_Par) | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:314:1: error: return type defaults to 'int' [-Wimplicit-int] 314 | Proc_4 () / without parameters / | ^~ /home/test/code-arena/riscv-tests/benchmarks/dhrystone/dhrystone_main.c:326:1: error: return type defaults to 'int' [-Wimplicit-int] 326 | Proc_5 () / without parameters /

pratikkedar commented 1 month ago

Pull request https://github.com/riscv-software-src/riscv-tests/pull/585 resolves above issue.

Please review and merge the request