[libgfortran, patch] PR25545 internal file and dollar edit descriptor

Jerry DeLisle jvdelisle@verizon.net
Sun Nov 5 06:27:00 GMT 2006


The attached patch fixes this bug by calling next_record when is_internal_unit.

The actual fix is in finalize_transfer.  I took this opportunity to do some more 
cleanup of the other functions as well as finalize_transfer to make the code 
more readable.  (At least that is my hope)

Regression tested on i686-linux.  NIST tested.  New test case as well.

OK for trunk.

2006-11-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/25545
	* io/transfer.c (write_block): Cleanup code paths between
	stream and non-stream I/O.
	(write_buf):  Cleanup.
	(read_block): Cleanup.
	(finalize_transfer): Call next_record for '$' edit descriptor handling
	of internal unit. Cleanup code for readability.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25545.diff
Type: text/x-patch
Size: 9769 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061105/df6e087a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dollar_edit_descriptor-2.f
Type: text/x-fortran
Size: 217 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061105/df6e087a/attachment-0001.bin>


More information about the Fortran mailing list