[gfortran] patch for pr 15413
Janne Blomqvist
jblomqvi@cc.hut.fi
Sun May 16 19:28:00 GMT 2004
On Sun, May 16, 2004 at 03:19:44PM +0100, Paul Brook wrote:
> I've applied the patch with a couple of additions:
> - The comment for write_logical no longer applies, so should be removed.
I have to admit, I was kind of confused by that comment. I think there
were two possible explanations:
1. That e.g.
print *, .TRUE., .FALSE., .TRUE.
and
print '(L2, L2, L2)', .TRUE., .FALSE., .TRUE.
should both print the same thing, e.g.
T F T
In this case, the comment still applies even after the patch. I
haven't access to the DEC compiler to test it, but g77, ifort and xlf
do it this way. And now, also gfortran does it this way. So I think
this is the best way, regardless of what DEC FORTRAN does.
2. That the format should be L2 in addition to the initial blank and
the separator, i.e. the list directed statement above should print
T F T
This was how gfortran used to do it, with the exception that the
initial blank wasn't printed, so gfortran actually printed
T F T
Well anyway, as I said, I think the new (current) way is better so I'm
happy. Considering that the comment in question seems to have caused
more confusion than enlightenment, I guess it's good that it was
removed. :)
> > > Do you have a copyright assignment for GCC? If not we will need one
> > > before we can accept any more patches from you.
I have now mailed assign@gnu.org with the needed information, so
depending on how long it takes for the papers to travel back and forth
over the pond (plane or boat?), I'll be back in action soon(ish).
--
Janne Blomqvist
More information about the Fortran
mailing list