aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>1998-08-20 18:28:07 +0000
committerVladimir Makarov <vmakarov@redhat.com>1998-08-20 18:28:07 +0000
commitff0f01126700b2f3ee3b1e57721a6168f55b79fd (patch)
tree3940ae2fded3dd469be72dfca6578547846790a8 /gas/expr.c
parentbb89d84ac7d7b5090ebdf8c9b7ca9b8b8906c6fd (diff)
downloadgdb-ff0f01126700b2f3ee3b1e57721a6168f55b79fd.zip
gdb-ff0f01126700b2f3ee3b1e57721a6168f55b79fd.tar.gz
gdb-ff0f01126700b2f3ee3b1e57721a6168f55b79fd.tar.bz2
* 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?".
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index dfa7393..3408f71 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