]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix format specifier.
authorRobin Dapp <rdapp@oss.qualcomm.com>
Thu, 26 Mar 2026 15:19:43 +0000 (16:19 +0100)
committerRobin Dapp <robin.dapp@oss.qualcomm.com>
Mon, 18 May 2026 10:01:39 +0000 (12:01 +0200)
commite63aa84edca4ef613c3e4f4dfe6afe3028d9d2b7
treef7fb4b20e24a98f3607453369d5734ddd279e9c8
parent10aa8833b04b52bb1ba3084bc59de604d7c38229
RISC-V: Fix format specifier.

Right now we get

../../gcc/config/riscv/riscv.cc: In function ‘bool riscv_check_target_clone_version(string_slice, location_t*)’:
../../gcc/config/riscv/riscv.cc:15078:17: warning: unknown conversion type character ‘B’ in format [-Wformat=]
15078 |                 "invalid version %qB for %<target_clones%> attribute",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/config/riscv/riscv.cc:15078:17: warning: too many arguments for format [-Wformat-extra-args]

with a GCC 15 host compiler.

This patch replaces %qB with $<%.*s%>.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_check_target_clone_version): Fix
format specifier.
gcc/config/riscv/riscv.cc