aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386-intel.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-06-01 16:31:00 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-06-01 16:31:00 +0000
commitd160e0350800d373c906f5fecd0bf0f61c61519c (patch)
tree2f16738179764e49dbb9ed42456755ca3937a956 /gas/config/tc-i386-intel.c
parent51a5d0aaac0184ff3da2852d3804b20eb6ca3ff4 (diff)
downloadgdb-d160e0350800d373c906f5fecd0bf0f61c61519c.zip
gdb-d160e0350800d373c906f5fecd0bf0f61c61519c.tar.gz
gdb-d160e0350800d373c906f5fecd0bf0f61c61519c.tar.bz2
gas/
2009-06-01 H.J. Lu <hongjiu.lu@intel.com> PR gas/10198 * config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'. gas/testsuite/ 2009-06-01 H.J. Lu <hongjiu.lu@intel.com> PR gas/10198 * gas/i386/jump.s: Add test for "jmp $+2". * gas/i386/jump16.s: Likewise. * gas/i386/jump.d: Updated. * gas/i386/jump16.d: Likewise.
Diffstat (limited to 'gas/config/tc-i386-intel.c')
-rw-r--r--gas/config/tc-i386-intel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index e76e527..64d83e3 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -475,6 +475,11 @@ i386_intel_operand (char *operand_string, int got_a_float)
saved_input_line_pointer = input_line_pointer;
input_line_pointer = buf = xstrdup (operand_string);
+ /* A '$' followed by an identifier char is an identifier. Otherwise,
+ it's operator '.' followed by an expression. */
+ if (*buf == '$' && !is_identifier_char (buf[1]))
+ *buf = '.';
+
intel_syntax = -1;
memset (&exp, 0, sizeof(exp));
exp_seg = expression (&exp);