[patch,libgfortran] PR31051 gfortran bug with x and t format descriptors.

Jerry DeLisle jvdelisle@verizon.net
Sat Mar 10 09:28:00 GMT 2007


:addpatch fortran:

Hi,

This one is not too bad.  The attached patch adjusts position when in writing 
mode to account for pending spaces (1x). Regression tested and NIST tested on 
X86-64-Gnu/Linux.

OK for trunk?

This is strictly speaking a regression against g77.  However, I don't feel too 
strong about it because there is no need really to do a T format preceded by 
spaces because the T format overrides anything the space does.  If anyone else 
feels differently, let me know, since this could go to 4.2 under the rules.

I will work up the test case from the PR. (attached)  I also attached a g77 
version for those curious.

Regards,

Jerry

2007-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/31051
	* io/transfer.c (formatted_transfer_scalar): Adjust position for pending
	spaces when in writing mode.  Clean up some formatting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr31051.diff
Type: text/x-patch
Size: 1668 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070310/cc31bcc0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr31051.f90
Type: text/x-fortran
Size: 203 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070310/cc31bcc0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixedver.f
Type: text/x-fortran
Size: 210 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070310/cc31bcc0/attachment-0002.bin>


More information about the Gcc-patches mailing list