Don't use i386_is_register in tc_x86_parse_to_dw2regnum.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Apr 2010 01:01:34 +0000 (01:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Apr 2010 01:01:34 +0000 (01:01 +0000)
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.

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

index 0418e6f2595512292235bd1bde1575e0a96aa158..2e7b73c49b52db1547fde947fed010418d2ef95b 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (i386_is_register): Remove is_intel_syntax.
index 11abad1ea2f38514b16d91cafb4d767ddc7ce45c..56995814aa42bafe1431d68cbb67c29d4fa7ac73 100644 (file)
@@ -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)
        {