* config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 12 Dec 2001 07:32:47 +0000 (07:32 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 12 Dec 2001 07:32:47 +0000 (07:32 +0000)
OPERAND_ATSIGN as O_absent.

gas/ChangeLog
gas/config/tc-d10v.c

index fc5204c0c6384359f11228a7b6ea7b0a58bbca13..8b3100c82f9ecc0b0a2219ab8da8d81d8a7477dd 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-12  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
+       OPERAND_ATSIGN as O_absent.
+
 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
            Richard Henderson  <rth@redhat.com>
 
index 0dbf98a5a3300a947088a6a810ac1edfcc6b4311..31d7fca64acab707529c172c1f5f8e2e8e23689c 100644 (file)
@@ -459,8 +459,10 @@ get_operands (exp)
              exp[numops].X_add_number = OPERAND_ATSIGN;
              if (*p == '+')
                {
-                 exp[++numops].X_add_number = OPERAND_PLUS;
-                 ++p;
+                 numops++;
+                 exp[numops].X_op = O_absent;
+                 exp[numops].X_add_number = OPERAND_PLUS;
+                 p++;
                }
              post = postfix (p);
            }