aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2010-06-22 07:43:41 +0000
committerJan Beulich <jbeulich@novell.com>2010-06-22 07:43:41 +0000
commitb7adb16d69397ae6c112d60d2b22f40ec22493b7 (patch)
tree3935ff5357d66bc600e299c6a2170e344e6e2b4e /gas/config
parent41b2c92d4c9fdd2904527d63d401ab48f024351a (diff)
downloadgdb-b7adb16d69397ae6c112d60d2b22f40ec22493b7.zip
gdb-b7adb16d69397ae6c112d60d2b22f40ec22493b7.tar.gz
gdb-b7adb16d69397ae6c112d60d2b22f40ec22493b7.tar.bz2
gas/
2010-06-22 Jan Beulich <jbeulich@novell.com> PR gas/11732 * config/tc-i386-intel.c (i386_intel_parse_name): Handle pseudo symbols named "$". (i386_intel_operand): Remove bogus handling of pseudo symbols named "$". * expr.c (current_location): Remove 'static' and local declaration. * expr.h (current_location): Declare. gas/testsuite/ 2010-06-22 Jan Beulich <jbeulich@novell.com> PR gas/11732 * gas/i386/jump.d: Adjust. * gas/i386/jump.s: Add check for branch to 2+$.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386-intel.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 1636344..186acc0 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -191,6 +191,12 @@ static int i386_intel_parse_name (const char *name, expressionS *e)
{
unsigned int j;
+ if (! strcmp (name, "$"))
+ {
+ current_location (e);
+ return 1;
+ }
+
for (j = 0; i386_types[j].name; ++j)
if (strcasecmp(i386_types[j].name, name) == 0)
{
@@ -505,11 +511,6 @@ 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);