Fix a translation problem in the x86 assembler.

PR 29952
	* config/tc-i386.c (md_assemble): Avoid constructing translatable
	strings.
This commit is contained in:
Nick Clifton
2023-01-03 12:03:02 +00:00
parent 11982f9f8b
commit e8b4b7b258
2 changed files with 25 additions and 7 deletions
+6
View File
@@ -1,3 +1,9 @@
2023-01-03 Nick Clifton <nickc@redhat.com>
PR 29952
* config/tc-i386.c (md_assemble): Avoid constructing translatable
strings.
2023-01-03 Nick Clifton <nickc@redhat.com>
* po/fr.po: Updated French translation.
+19 -7
View File
@@ -5067,14 +5067,26 @@ md_assemble (char *line)
return;
case unsupported_64bit:
if (ISLOWER (mnem_suffix))
as_bad (_("`%s%c' is %s supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name,
mnem_suffix,
flag_code == CODE_64BIT ? _("not") : _("only"));
{
if (flag_code == CODE_64BIT)
as_bad (_("`%s%c' is not supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name,
mnem_suffix);
else
as_bad (_("`%s%c' is only supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name,
mnem_suffix);
}
else
as_bad (_("`%s' is %s supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name,
flag_code == CODE_64BIT ? _("not") : _("only"));
{
if (flag_code == CODE_64BIT)
as_bad (_("`%s' is not supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name);
else
as_bad (_("`%s' is only supported in 64-bit mode"),
pass1_mnem ? pass1_mnem : current_templates->start->name);
}
return;
case invalid_sib_address:
err_msg = _("invalid SIB address");