Skip to content

Commit 184978c

Browse files
committed
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 <[email protected]>
1 parent d49780c commit 184978c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/config/riscv/thead.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,8 @@ th_print_operand_address (FILE *file, machine_mode mode, rtx x)
11411141
return true;
11421142

11431143
case ADDRESS_REG_WB:
1144-
fprintf (file, "(%s),"HOST_WIDE_INT_PRINT_DEC",%u", reg_names[REGNO (addr.reg)],
1144+
fprintf (file, "(%s)," HOST_WIDE_INT_PRINT_DEC ",%u",
1145+
reg_names[REGNO (addr.reg)],
11451146
INTVAL (addr.offset) >> addr.shift, addr.shift);
11461147
return true;
11471148

0 commit comments

Comments
 (0)