* expr.c (operand) [case 'f']: When testing if '0f' can start a
authorHans-Peter Nilsson <hp@axis.com>
Mon, 13 Mar 2000 21:20:15 +0000 (21:20 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 13 Mar 2000 21:20:15 +0000 (21:20 +0000)
floating-point-number, make sure 'f' is in FLT_CHARS.

gas/ChangeLog
gas/expr.c

index a238d8ae81a565b1f77816b44f2b52130c54832d..c8b8a24aa582f492d731e3b17598446c67c5d065 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar 13 22:02:59 2000  Hans-Peter Nilsson  <hp@axis.se>
+
+       * expr.c (operand) [case 'f']: When testing if '0f' can start a
+       floating-point-number, make sure 'f' is in FLT_CHARS.
+
 Sat Mar 11 00:01:39 2000  Hans-Peter Nilsson  <hp@axis.se>
 
        * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
index cd94e8ebec5588e4b2c8b58b402f8417608859d9..7cca437493f7c9e5a3302843af6a1ea3c7e014d8 100644 (file)
@@ -923,7 +923,8 @@ operand (expressionP)
                 number, make it one.  Otherwise, make it a local label,
                 and try to deal with parsing the rest later.  */
              if (!input_line_pointer[1]
-                 || (is_end_of_line[0xff & input_line_pointer[1]]))
+                 || (is_end_of_line[0xff & input_line_pointer[1]])
+                 || strchr (FLT_CHARS, 'f') == NULL)
                goto is_0f_label;
              {
                char *cp = input_line_pointer + 1;