diff options
author | Jan Beulich <jbeulich@novell.com> | 2012-07-25 11:33:23 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2012-07-25 11:33:23 +0000 |
commit | 8280f326858028ecb33ceffc33a8ddbbc250f02d (patch) | |
tree | 4001c42bef19deb8ae44bc2ba50a6502a83b4864 /gas | |
parent | ad44ee3a6741d13b1bb635aa59171ad741ca1841 (diff) | |
download | gdb-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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386-intel.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f4bbc8d..445e36d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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> 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; } |