diff options
author | Jan Beulich <jbeulich@novell.com> | 2012-07-31 07:45:48 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2012-07-31 07:45:48 +0000 |
commit | 4a2608e354d22289f40944bb29d85db3f3c5ca04 (patch) | |
tree | 64fd279b646d005b133b7532093fd2c2f75ffa49 /gas | |
parent | 5a819eb989d050f32a06af6c40e9b5eef4becabb (diff) | |
download | gdb-4a2608e354d22289f40944bb29d85db3f3c5ca04.zip gdb-4a2608e354d22289f40944bb29d85db3f3c5ca04.tar.gz gdb-4a2608e354d22289f40944bb29d85db3f3c5ca04.tar.bz2 |
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-31 Jan Beulich <jbeulich@suse.com>
* config/tc-i386.c (match_template): Adjust error message
for 'bad_imm4' case.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d474b3c..be74ff1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2012-07-31 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (match_template): Adjust error message + for 'bad_imm4' case. + +2012-07-31 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (check_byte_reg): Check for I/O port register earlier, and just once. Drop diagnostic that got issued only for some registers. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 70f21db..5303f63d 100644 --- 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"); |