patch libfortran/37753

Thomas Koenig tkoenig@netcologne.de
Wed Oct 8 20:13:00 GMT 2008


Hello world,

this fixes PR 37753, a 4.4 regression where we erroneously would write
out strings in reverse when specifying CONVERT="SWAP" (or equivalent).

Regression-tested on x86_64-pc-linux-gnu.  OK?

	Thomas

2008-10-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/37753
	* io/transfer.c (unformatted_read):  CONVERT_NATIVE
	is the usual case.  Check for kind==1 for non-byte-reversing
	operation.
	(unformatted_write):  Likewise.

2008-10-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/37753
	* gfortran.dg/convert_2.f90:  New test case.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert_2.diff
Type: text/x-patch
Size: 920 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081008/a83074fd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert_2.f90
Type: text/x-fortran
Size: 670 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081008/a83074fd/attachment-0001.bin>


More information about the Fortran mailing list