diff options
author | Nick Clifton <nickc@redhat.com> | 2023-01-03 12:03:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-01-03 12:03:02 +0000 |
commit | e8b4b7b258d7bd926de2d8758c2a55e28ba46c48 (patch) | |
tree | 48a5c6c59dff9e93e711fb6a9be449000e5dfbe3 /gas | |
parent | 11982f9f8bf1c96a4a0266fda6ee97971f9a39b4 (diff) | |
download | fsf-binutils-gdb-e8b4b7b258d7bd926de2d8758c2a55e28ba46c48.zip fsf-binutils-gdb-e8b4b7b258d7bd926de2d8758c2a55e28ba46c48.tar.gz fsf-binutils-gdb-e8b4b7b258d7bd926de2d8758c2a55e28ba46c48.tar.bz2 |
Fix a translation problem in the x86 assembler.
PR 29952
* config/tc-i386.c (md_assemble): Avoid constructing translatable
strings.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 26 |
2 files changed, 25 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 59ba916..b0b8be2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 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. * po/uk.po: Updated Ukrainian translation. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 66d5ea5..c70b9f4 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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"); |