Patch to expr.c: check if 'f' is in FLT_CHARS when handling LOCAL_LABELS_FB

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Mon Mar 13 13:11:00 GMT 2000


Sanity check which has effect for the CRIS target, which does
not support floating-point values using 0f... syntax.

Ok to commit?

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.

Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.13
diff -c -p -r1.13 expr.c
*** expr.c	2000/02/24 01:56:31	1.13
--- expr.c	2000/03/13 21:01:39
*************** operand (expressionP)
*** 923,929 ****
  		 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]]))
  		goto is_0f_label;
  	      {
  		char *cp = input_line_pointer + 1;
--- 923,930 ----
  		 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]])
! 		  || strchr (FLT_CHARS, 'f') == NULL)
  		goto is_0f_label;
  	      {
  		char *cp = input_line_pointer + 1;

brgds, H-P


More information about the Binutils mailing list