[PATCH] x86: adjust diagnostic for bad 4-bit immediates
H.J. Lu
hjl.tools@gmail.com
Mon Jul 30 17:05:00 GMT 2012
On Tue, Jul 24, 2012 at 8:30 AM, Jan Beulich <JBeulich@suse.com> wrote:
> The current error message for bad imm4 operands wasn't really helpful,
> and was pointing at the wrong operand in Intel mode. Since non-constant
> operands are being taken care of by other means anyway, adjust it to
> simply state that the constant doesn't fit.
>
> 2012-07-24 Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386-intel.c (match_template): Adjust error message
> for 'bad_imm4' case.
>
> --- a/gas/config/tc-i386.c
> +++ b/gas/config/tc-i386.c
> @@ -4347,7 +4347,7 @@ check_reverse:
> err_msg = _("invalid instruction suffix");
> break;
> case bad_imm4:
> - err_msg = _("Imm4 isn't the first operand");
> + err_msg = _("Constant doesn't fit in 4 bits");
> break;
> case old_gcc_only:
> err_msg = _("only supported with old gcc");
>
Error message starts with the lower case. OK with
that change.
--
H.J.
More information about the Binutils
mailing list