diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-04-21 18:09:48 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-04-21 18:09:48 +0000 |
commit | a272d17f337aa90fdf3d5462988191b965e06679 (patch) | |
tree | e17c4698b9e7e6b83ca9f4afd6fc3de967743d85 /gas/read.c | |
parent | e5662ad25dfea85a72660b2799912732010b794b (diff) | |
download | binutils-redhat-a272d17f337aa90fdf3d5462988191b965e06679.tar.gz |
Properly handle ".equ symbol, reg + NUM" in x86 Intel syntax.
gas/
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11509
* config/tc-i386-intel.c (i386_intel_simplify_register): New.
(i386_intel_simplify): Use i386_is_register and
i386_intel_simplify_register. Set X_md for O_register and
check X_md for O_constant.
(i386_intel_operand): Use i386_is_register.
* config/tc-i386.c (i386_is_register): New.
(x86_cons): Initialize the X_md field. Use i386_is_register.
(parse_register): Use i386_is_register.
(tc_x86_parse_to_dw2regnum): Likewise.
gas/testsuite/
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11509
* gas/i386/equ.s: Add tests for ".equ symbol, reg + NUM".
* gas/i386/equ.d: Updated.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c index 4afb190173..ae0dbb86e7 100644 --- a/gas/read.c +++ b/gas/read.c @@ -471,6 +471,7 @@ get_absolute_expression (void) { expressionS exp; + exp.X_md = 0; return get_absolute_expr (&exp); } |