From: Vladimir Makarov Date: Thu, 20 Aug 1998 18:28:07 +0000 (+0000) Subject: * expr.c (operand): Check more correctly that there is no advance X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff0f01126700b2f3ee3b1e57721a6168f55b79fd;p=binutils-gdb.git * 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?". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index ee63e9fb4b8..57ca750dd7b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +1998-08-20 Vladimir N. Makarov + + * 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 * expr.c (operand): Check correctly that there is no advance in diff --git a/gas/expr.c b/gas/expr.c index dfa7393e2dd..3408f71d9f6 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -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