aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2024-04-08 21:47:51 +0200
committerTobias Burnus <tburnus@baylibre.com>2024-04-08 21:47:51 +0200
commit477c8a82f38e353a8c6313b38197c70b12deea80 (patch)
tree9f175d232922569c4b6148dc56a93e0ec0a1fee6 /libgfortran/io
parentf4f7c52472fa59993024e70848559d8bac2167ba (diff)
downloadgcc-477c8a82f38e353a8c6313b38197c70b12deea80.zip
gcc-477c8a82f38e353a8c6313b38197c70b12deea80.tar.gz
gcc-477c8a82f38e353a8c6313b38197c70b12deea80.tar.bz2
Fortran: Accept again tab as alternative to space as separator [PR114304]
This fixes a side-effect of/regression caused by r14-9822-g93adf88cc6744a, which was for the same PR. PR libfortran/114304 libgfortran/ChangeLog: * io/list_read.c (eat_separator): Accept tab as alternative to space. gcc/testsuite/ChangeLog: * gfortran.dg/pr114304-2.f90: New test.
Diffstat (limited to 'libgfortran/io')
-rw-r--r--libgfortran/io/list_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c
index b56f2a4..5bbbef2 100644
--- a/libgfortran/io/list_read.c
+++ b/libgfortran/io/list_read.c
@@ -463,7 +463,7 @@ eat_separator (st_parameter_dt *dtp)
dtp->u.p.comma_flag = 0;
c = next_char (dtp);
- if (c == ' ')
+ if (c == ' ' || c == '\t')
{
eat_spaces (dtp);
c = next_char (dtp);