]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix misspelled term args in error_at message
authorPan Li <pan2.li@intel.com>
Sat, 10 Feb 2024 10:59:55 +0000 (18:59 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 12 Feb 2024 12:22:18 +0000 (20:22 +0800)
commit016fbd2d89972e0c44d9cd8375d2332108e447c4
treee2dda69a0bea3a40fd757922e16fd80a2ded8fba
parent525cfe1e9554858366e7811aa9e437357c0f272e
RISC-V: Fix misspelled term args in error_at message

When build with "-Werror=format-diag", there will be one misspelled
term args as below. This patch would like fix it by taking the term
arguments instead.

../../gcc/config/riscv/riscv-vector-builtins.cc: In function 'tree_node*
riscv_vector::resolve_overloaded_builtin(location_t, unsigned int, tree,
vec<tree_node*, va_gc>*)':
../../gcc/config/riscv/riscv-vector-builtins.cc:4633:65: error:
misspelled term 'args' in format; use 'arguments' instead
[-Werror=format-diag]
 4633 |     error_at (loc, "no matching function call to %qE with empty
      args", fndecl);

gcc/ChangeLog:

* config/riscv/riscv-vector-builtins.cc (resolve_overloaded_builtin):
Replace args to arguments for misspelled term.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/pr113766-1.c: Adjust the test cases.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/riscv-vector-builtins.cc
gcc/testsuite/gcc.target/riscv/rvv/base/pr113766-1.c