gcc/libgfortran/io
Jerry DeLisle 67732fbced re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output)
2019-11-06  Jerry DeLisle  <jvdelisle@gcc.ngu.org>

	PR fortran/90374
	* io.c (check_format): Allow zero width for D, E, EN, and ES
	specifiers as default and when -std=F2018 is given. Retain
	existing errors when using the -fdec family of flags.

	* libgfortran/io/format.c (parse_format_list): Relax format checking for
	zero width as default and when -std=f2018.
	io/format.h (format_token): Move definition to io.h.
	io/io.h (format_token): Add definition here to allow access to
	this definition at higher levels. Rename the declaration of
	write_real_g0 to write_real_w0 and add a new format_token
	argument, allowing higher level functions to pass in the
	token for handling of g0 vs the other zero width specifiers.
	io/transfer.c (formatted_transfer_scalar_write): Add checks for
	zero width and call write_real_w0 to handle it.
	io/write.c (write_real_g0): Remove.
	(write_real_w0): Add new, same as previous write_real_g0 except
	check format token to handle the g0 case.

	* gfortran.dg/fmt_error_10.f: Modify for new constraints.
	* gfortran.dg/fmt_error_7.f: Add dg-options "-std=f95".
	* gfortran.dg/fmt_error_9.f: Modify for new constraints.
	* gfortran.dg/fmt_zero_width.f90: New test.

From-SVN: r277905
2019-11-07 03:06:20 +00:00
..
async.c libgfortran: Use proper gthr.h API 2019-01-28 06:35:41 +00:00
async.h Update copyright years. 2019-01-01 13:31:55 +01:00
close.c re PR libfortran/89020 (close(status='DELETE') does not remove file) 2019-01-27 19:42:34 +00:00
fbuf.c Update copyright years. 2019-01-01 13:31:55 +01:00
fbuf.h Update copyright years. 2019-01-01 13:31:55 +01:00
file_pos.c Update copyright years. 2019-01-01 13:31:55 +01:00
format.c re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output) 2019-11-07 03:06:20 +00:00
format.h re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output) 2019-11-07 03:06:20 +00:00
inquire.c PR 53796 Make inquire(file=, recl=) conform to F2018 2019-08-07 10:34:10 +03:00
intrinsics.c Update copyright years. 2019-01-01 13:31:55 +01:00
io.h re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output) 2019-11-07 03:06:20 +00:00
list_read.c re PR libfortran/88776 (Namelist read from stdin: loss of data) 2019-01-12 23:06:47 +00:00
lock.c Update copyright years. 2019-01-01 13:31:55 +01:00
open.c Allow opening file on multiple units 2019-05-15 21:02:36 +03:00
read.c re PR libfortran/91593 (Implicit enum conversions in libgfortran/io/transfer.c) 2019-10-02 02:35:14 +00:00
size_from_kind.c Update copyright years. 2019-01-01 13:31:55 +01:00
transfer128.c Update copyright years. 2019-01-01 13:31:55 +01:00
transfer.c re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output) 2019-11-07 03:06:20 +00:00
unit.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
unix.c re PR libfortran/91030 (Poor performance of I/O -fconvert=big-endian) 2019-07-21 15:55:49 +00:00
unix.h Update copyright years. 2019-01-01 13:31:55 +01:00
write_float.def fortran/89100: Default widths with -fdec-format-defaults 2019-05-22 14:56:01 +03:00
write.c re PR libfortran/90374 (Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output) 2019-11-07 03:06:20 +00:00