]> git.ipfire.org Git - thirdparty/gcc.git/commit
riscv: Fix compiler warning in thead.cc
authorChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 5 Feb 2024 11:52:23 +0000 (12:52 +0100)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 5 Feb 2024 23:21:25 +0000 (00:21 +0100)
commit184978cd74f962712e813030d58edc109ad9a92d
treeab9bb31dc1f7db086c4e0e64a78bc6b19d03f362
parentd49780c08aade447953bfe4e877d386f5757f165
riscv: Fix compiler warning in thead.cc

A recent commit introduced a compiler warning in thead.cc:
error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
 1144 |       fprintf (file, "(%s),"HOST_WIDE_INT_PRINT_DEC",%u", reg_names[REGNO (addr.reg)],
      |                      ^

This commit addresses this issue and breaks the line such that it won't
exceed 80 characters.

gcc/ChangeLog:

* config/riscv/thead.cc (th_print_operand_address): Fix compiler
warning.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/config/riscv/thead.cc