[PATCH] RISC-V: as_warn() already emits a newline

Jan Beulich jbeulich@suse.com
Thu Feb 16 08:56:11 GMT 2023


Therefore there shouldn't be any at the end of the format string.

--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -4179,7 +4179,7 @@ s_riscv_option (int x ATTRIBUTE_UNUSED)
     }
   else
     {
-      as_warn (_("unrecognized .option directive: %s\n"), name);
+      as_warn (_("unrecognized .option directive: %s"), name);
     }
   *input_line_pointer = ch;
   demand_empty_rest_of_line ();


More information about the Binutils mailing list