re PR fortran/34659 (corner case continuation line)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 7 Jan 2008 02:53:04 +0000 (02:53 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 7 Jan 2008 02:53:04 +0000 (02:53 +0000)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34659
* scanner.c (load_line): Do not count ' ' as printable when checking for
continuations.

From-SVN: r131371

gcc/fortran/ChangeLog
gcc/fortran/scanner.c

index 6659ab50f70e322f7ebd34abc6c194d2292296b2..8b5694216b2fe1c3518cfbe4a53110ae7ca60327 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/34659
+       * scanner.c (load_line): Do not count ' ' as printable when checking for
+       continuations.
+
 2008-01-06  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/34545
index 8e4a75cd6470cb01b9064985a0cbe476ef07d536..da4c37b155e799300315df4e791f13492ca0a6a4 100644 (file)
@@ -1176,7 +1176,7 @@ load_line (FILE *input, char **pbuf, int *pbuflen)
            seen_ampersand = 1;
        }
 
-      if ((c != '&' && c != '!') || (c == '!' && !seen_ampersand))
+      if ((c != '&' && c != '!' && c != ' ') || (c == '!' && !seen_ampersand))
        seen_printable = 1;
 
       /* Is this a fixed-form comment?  */