This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch,fortran] PR32223 Backslash handling inconsistent
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 05 Jun 2007 22:03:37 -0700
- Subject: [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 */