aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-22 01:01:34 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-22 01:01:34 +0000
commite96d56a1c8ae442971a1cedc3128fd0d822a3f77 (patch)
tree045dbd1c3a581948d533629ead7c84cb14411cf7 /gas/config/tc-i386.c
parent8d46fc7c2f33d8cde8413f04269a4a42252b0db9 (diff)
downloadgdb-e96d56a1c8ae442971a1cedc3128fd0d822a3f77.zip
gdb-e96d56a1c8ae442971a1cedc3128fd0d822a3f77.tar.gz
gdb-e96d56a1c8ae442971a1cedc3128fd0d822a3f77.tar.bz2
Don't use i386_is_register in tc_x86_parse_to_dw2regnum.
2010-04-21 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (tc_x86_parse_to_dw2regnum): Don't use i386_is_register.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 11abad1..5699581 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -8872,7 +8872,7 @@ tc_x86_parse_to_dw2regnum (expressionS *exp)
register_chars['.'] = saved_register_dot;
allow_naked_reg = saved_naked_reg;
- if (i386_is_register (exp) && exp->X_add_number >= 0)
+ if (exp->X_op == O_register && exp->X_add_number >= 0)
{
if ((addressT) exp->X_add_number < i386_regtab_size)
{