This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch,fortran] PR32223 Backslash handling inconsistent


Hi,

Actually the backslash handling is quite consistent, however we did not include the '\0' case.

The following patch does this and I will commit to trunk as obvious with a ChangeLog after I finish regression testing.

Regards,

Jerry

Index: io.c
===================================================================
*** io.c	(revision 125347)
--- io.c	(working copy)
*************** next_char (int in_string)
*** 168,173 ****
--- 168,176 ----
  	  break;
  	case '\\':
  	  c = '\\';
+           break;
+         case '0':
+           c = '\0';
  	  break;

  	default:
Index: primary.c
===================================================================
*** primary.c	(revision 125347)
--- primary.c	(working copy)
*************** next_string_char (char delimiter)
*** 758,763 ****
--- 758,766 ----
  	case '\\':
  	  c = '\\';
  	  break;
+         case '0':
+ 	  c = '\0';
+ 	  break;

  	default:
  	  /* Unknown backslash codes are simply not expanded */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]