* expr.c (operand): Check more correctly that there is no advance
authorVladimir Makarov <vmakarov@redhat.com>
Thu, 20 Aug 1998 18:28:07 +0000 (18:28 +0000)
committerVladimir Makarov <vmakarov@redhat.com>
Thu, 20 Aug 1998 18:28:07 +0000 (18:28 +0000)
in operand after atof_generic in order to decide "is it label 0f
or floating point number?".

gas/ChangeLog
gas/expr.c

index ee63e9fb4b8a8b8bb105f92c15d6b18223a9f0ae..57ca750dd7b0fd4532507bddd970b172ba7bb0b0 100644 (file)
@@ -1,3 +1,9 @@
+1998-08-20  Vladimir N. Makarov  <vmakarov@cygnus.com>
+
+       * expr.c (operand): Check more correctly that there is no advance
+       in operand after atof_generic in order to decide "is it label 0f
+       or floating point number?".
+
 1998-08-20  Vladimir N. Makarov  <vmakarov@cygnus.com>
 
        * expr.c (operand): Check correctly that there is no advance in
index dfa7393e2dd363f68b36a56e88c2f5990fc31be7..3408f71d9f69b10f15f56a831dd266a893f9ff34 100644 (file)
@@ -924,7 +924,7 @@ operand (expressionP)
                  {
                  case 0:
                  case ERROR_EXPONENT_OVERFLOW:
-                   if (cp[-1] == 'f' || cp[-1] == 'b')
+                   if (cp == input_line_pointer + 1)
                      /* looks like a difference expression */
                      goto is_0f_label;
                    else