aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386-intel.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2012-07-25 11:33:23 +0000
committerJan Beulich <jbeulich@novell.com>2012-07-25 11:33:23 +0000
commit8280f326858028ecb33ceffc33a8ddbbc250f02d (patch)
tree4001c42bef19deb8ae44bc2ba50a6502a83b4864 /gas/config/tc-i386-intel.c
parentad44ee3a6741d13b1bb635aa59171ad741ca1841 (diff)
downloadgdb-8280f326858028ecb33ceffc33a8ddbbc250f02d.zip
gdb-8280f326858028ecb33ceffc33a8ddbbc250f02d.tar.gz
gdb-8280f326858028ecb33ceffc33a8ddbbc250f02d.tar.bz2
Using the dedicated manifest constant is more descriptive.
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.
Diffstat (limited to 'gas/config/tc-i386-intel.c')
-rw-r--r--gas/config/tc-i386-intel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 1e563b2..919f27c 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -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;
}