Using the dedicated manifest constant is more descriptive.
authorJan Beulich <jbeulich@novell.com>
Wed, 25 Jul 2012 11:33:23 +0000 (11:33 +0000)
committerJan Beulich <jbeulich@novell.com>
Wed, 25 Jul 2012 11:33:23 +0000 (11:33 +0000)
2012-07-24  Jan Beulich <jbeulich@suse.com>

* config/tc-i386-intel.c (i386_intel_simplify_register):
Replace literal 4 by corresponding ESP_REG_NUM.

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

index f4bbc8d0fac5d0404999159779c33d6b0237af71..445e36d3dafb52ba99e655e2646b8fdb8e21fd3d 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-24  Jan Beulich <jbeulich@suse.com>
+
+       * config/tc-i386-intel.c (i386_intel_simplify_register):
+       Replace literal 4 by corresponding ESP_REG_NUM.
+
 2012-07-24  Sandra Loosemore  <sandra@codesourcery.com>
            Jie Zhang  <jzhang918@gmail.com>
 
index 1e563b2d81c59a18282c95ae79ac9b0dbf7261e4..919f27ca300783b33189c57fdd1929f770ad3c9b 100644 (file)
@@ -285,7 +285,7 @@ i386_intel_simplify_register (expressionS *e)
   else
     {
       /* esp is invalid as index */
-      intel_state.index = i386_regtab + REGNAM_EAX + 4;
+      intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
     }
   return 2;
 }
@@ -440,7 +440,7 @@ static int i386_intel_simplify (expressionS *e)
                break;
              default:
                /* esp is invalid as index */
-               intel_state.index = i386_regtab + REGNAM_EAX + 4;
+               intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
                break;
              }