gcc/libgfortran/io
Jerry DeLisle b55a35bcc8 libfortran: Fix handling of formatted separators.
Backport from mainline.

	PR libfortran/114304
	PR libfortran/105473

libgfortran/ChangeLog:

	* io/list_read.c (eat_separator): Add logic to handle spaces
	preceding a comma or semicolon such that that a 'null' read
	occurs without error at the end of comma or semicolon
	terminated input lines. Add check and error message for ';'.
	Accept tab as alternative to space.
	(list_formatted_read_scalar): Treat comma as a decimal point
	when specified by the decimal mode on the first item.

gcc/testsuite/ChangeLog:

	* gfortran.dg/pr105473.f90: Modify for revised checks.
	* gfortran.dg/pr114304-2.f90: New test.
	* gfortran.dg/pr114304.f90: New test.
2024-04-21 21:05:20 -07:00
..
async.c Update copyright years. 2023-01-16 11:52:17 +01:00
async.h Update copyright years. 2023-01-16 11:52:17 +01:00
close.c Update copyright years. 2023-01-16 11:52:17 +01:00
fbuf.c Update copyright years. 2023-01-16 11:52:17 +01:00
fbuf.h Update copyright years. 2023-01-16 11:52:17 +01:00
file_pos.c Update copyright years. 2023-01-16 11:52:17 +01:00
format.c libgfortran: EN0.0E0 and ES0.0E0 format editing. 2024-02-12 16:41:34 -08:00
format.h libgfortran: EN0.0E0 and ES0.0E0 format editing. 2024-02-12 16:41:34 -08:00
inquire.c Update copyright years. 2023-01-16 11:52:17 +01:00
intrinsics.c Update copyright years. 2023-01-16 11:52:17 +01:00
io.h Update copyright years. 2023-01-16 11:52:17 +01:00
list_read.c libfortran: Fix handling of formatted separators. 2024-04-21 21:05:20 -07:00
lock.c Update copyright years. 2023-01-16 11:52:17 +01:00
open.c Update copyright years. 2023-01-16 11:52:17 +01:00
read.c libgfortran: [PR105473] Fix checks for decimal='comma'. 2024-03-07 16:29:09 -08:00
size_from_kind.c Update copyright years. 2023-01-16 11:52:17 +01:00
transfer.c libgfortran: Adjust bytes_left and pos for access="STREAM". 2024-02-12 16:46:07 -08:00
transfer128.c Update copyright years. 2023-01-16 11:52:17 +01:00
unit.c Update copyright years. 2023-01-16 11:52:17 +01:00
unix.c Update copyright years. 2023-01-16 11:52:17 +01:00
unix.h Update copyright years. 2023-01-16 11:52:17 +01:00
write.c libgfortran: EN0.0E0 and ES0.0E0 format editing. 2024-02-12 16:41:34 -08:00
write_float.def libgfortran: EN0.0E0 and ES0.0E0 format editing. 2024-02-12 16:41:34 -08:00