gcc/libgfortran/io
Dominique d'Humieres aa7e7eff5e PR 93567, G edit descriptor uses E instead of F editing in rounding mode UP.
The switch between FMT_E and FMT_F is based on the absolute value.
Set r=0 for rounding toward zero and r = 1 otherwise.
If (exp_d - m) == 1 there is no rounding needed.

libgfortran/ChangeLog:

	PR fortran/93567
	* io/write_float.def (determine_en_precision): Fix switch between
	FMT_E and FMT_F.

gcc/testsuite/ChangeLog:

	PR fortran/93567
	* gfortran.dg/round_3.f08: Add test cases.
2020-07-24 20:47:47 +02:00
..
async.c
async.h
close.c
fbuf.c
fbuf.h
file_pos.c
format.c
format.h
inquire.c
intrinsics.c
io.h
list_read.c
lock.c
open.c
read.c
size_from_kind.c
transfer128.c
transfer.c PR fortran/95195 - Fortran testcase should clean up afterwards 2020-06-08 21:01:06 +02:00
unit.c PR fortran/95104 - Segfault on a legal WAIT statement 2020-05-28 21:53:17 +02:00
unix.c
unix.h
write_float.def PR 93567, G edit descriptor uses E instead of F editing in rounding mode UP. 2020-07-24 20:47:47 +02:00
write.c Disable -Wstringop-overflow warning after checking code path of caller. 2020-06-13 10:04:33 +02:00