gcc/libgfortran
Jakub Jelinek 82ac4cd213 libfortran: Fix up boz_15.f90 on powerpc64le with -mabi=ieeelongdouble [PR106079]
The boz_15.f90 test FAILs on powerpc64le-linux when -mabi=ieeelongdouble
is used (either default through --with-long-double-format=ieee or
when used explicitly).
The problem is that the read/write transfer routines are called with
BT_REAL (or BT_COMPLEX) type and kind 17 which is magic we use to say
it is the IEEE quad real(kind=16) rather than the IBM double double
real(kind=16).  For the floating point input/output we then handle kind
17 specially, but for B/O/Z we just treat the bytes of the floating point
value as binary blob and using 17 in that case results in unexpected
behavior, for write it means we don't estimate right how many chars we'll
need and print ******************** etc. rather than what we should, and
even with explicit size we'd print one further byte than intended.
For read it would even mean overwriting some unrelated byte after the
floating point object.

Fixed by using 16 instead of 17 in the read_radix and write_{b,o,z} calls.

2022-08-01  Jakub Jelinek  <jakub@redhat.com>

	PR libfortran/106079
	* io/transfer.c (formatted_transfer_scalar_read,
	formatted_transfer_scalar_write): For type BT_REAL with kind 17
	change kind to 16 before calling read_radix or write_{b,o,z}.
2022-08-01 08:26:03 +02:00
..
caf
config
generated
ieee
intrinsics
io libfortran: Fix up boz_15.f90 on powerpc64le with -mabi=ieeelongdouble [PR106079] 2022-08-01 08:26:03 +02:00
m4
runtime
acinclude.m4 libgfortran: Switch some more __float128 uses to _Float128 2022-06-29 17:06:02 +02:00
aclocal.m4
c99_protos.h
ChangeLog Daily bump. 2022-06-30 00:16:46 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021
config.h.in libgfortran: Fix up LIBGFOR_CHECK_FLOAT128 [PR106137] 2022-06-29 17:04:50 +02:00
configure libgfortran: Switch some more __float128 uses to _Float128 2022-06-29 17:06:02 +02:00
configure.ac
configure.host
gfortran.map
ISO_Fortran_binding.h
kinds-override.h
libgfortran.h libgfortran: Switch some more __float128 uses to _Float128 2022-06-29 17:06:02 +02:00
libgfortran.spec.in
libtool-version
Makefile.am
Makefile.in
mk-kinds-h.sh libgfortran: Switch some more __float128 uses to _Float128 2022-06-29 17:06:02 +02:00
mk-sik-inc.sh
mk-srk-inc.sh