]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix a translation problem in the x86 assembler.
authorNick Clifton <nickc@redhat.com>
Tue, 3 Jan 2023 12:03:02 +0000 (12:03 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 3 Jan 2023 12:03:02 +0000 (12:03 +0000)
PR 29952
* config/tc-i386.c (md_assemble): Avoid constructing translatable
strings.

gas/ChangeLog
gas/config/tc-i386.c

index 59ba916b4c7bd4fe5f963f56aa74165d42def155..b0b8be2e621e96556b4638c65e1f03e22778ab8f 100644 (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.
index 66d5ea5a99da47a61bf18623f6bd09b10c5f124d..c70b9f47aa86af98634005c1686e03d0c6f1e33e 100644 (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");