diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2024-02-05 12:52:23 +0100 |
---|---|---|
committer | Christoph Müllner <christoph.muellner@vrull.eu> | 2024-02-06 00:21:25 +0100 |
commit | 184978cd74f962712e813030d58edc109ad9a92d (patch) | |
tree | ab9bb31dc1f7db086c4e0e64a78bc6b19d03f362 /gcc/config/riscv | |
parent | d49780c08aade447953bfe4e877d386f5757f165 (diff) | |
download | gcc-184978cd74f962712e813030d58edc109ad9a92d.zip gcc-184978cd74f962712e813030d58edc109ad9a92d.tar.gz gcc-184978cd74f962712e813030d58edc109ad9a92d.tar.bz2 |
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>
Diffstat (limited to 'gcc/config/riscv')
-rw-r--r-- | gcc/config/riscv/thead.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/riscv/thead.cc b/gcc/config/riscv/thead.cc index e4b8c37..951b608 100644 --- a/gcc/config/riscv/thead.cc +++ b/gcc/config/riscv/thead.cc @@ -1141,7 +1141,8 @@ th_print_operand_address (FILE *file, machine_mode mode, rtx x) return true; case ADDRESS_REG_WB: - fprintf (file, "(%s),"HOST_WIDE_INT_PRINT_DEC",%u", reg_names[REGNO (addr.reg)], + fprintf (file, "(%s)," HOST_WIDE_INT_PRINT_DEC ",%u", + reg_names[REGNO (addr.reg)], INTVAL (addr.offset) >> addr.shift, addr.shift); return true; |