RISC-V: Suppress warning
commit615e25c82de97acc17ab438f88d6788cf7ffe1d6
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Sat, 20 Jan 2024 00:27:39 +0000 (20 08:27 +0800)
committerPan Li <pan2.li@intel.com>
Sat, 20 Jan 2024 00:36:47 +0000 (20 08:36 +0800)
treed6ac7580f9359c5bbd8c088f089e21dd1ed115c5
parentc2544854ca4f5d009c88ca765e506db956d2ddba
RISC-V: Suppress warning

../../gcc/config/riscv/riscv.cc: In function 'void riscv_init_cumulative_args(CUMULATIVE_ARGS*, tree, rtx, tree, int)':
../../gcc/config/riscv/riscv.cc:4879:34: error: unused parameter 'fndecl' [-Werror=unused-parameter]
4879 |                             tree fndecl,
      |                             ~~~~~^~~~~~
../../gcc/config/riscv/riscv.cc: In function 'bool riscv_vector_mode_supported_any_target_p(machine_mode)':
../../gcc/config/riscv/riscv.cc:10537:56: error: unused parameter 'mode' [-Werror=unused-parameter]
10537 | riscv_vector_mode_supported_any_target_p (machine_mode mode)
      |                                           ~~~~~~~~~~~~~^~~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:2559: riscv.o] Error 1

Suppress these warnings.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_init_cumulative_args): Suppress warning.
(riscv_vector_mode_supported_any_target_p): Ditto.
gcc/config/riscv/riscv.cc