gfortran (v4.0) redirected output `feature'?
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Jun 21 19:43:00 GMT 2005
On Tue, Jun 21, 2005 at 03:30:58PM -0400, Juan Gallego wrote:
> On 2005-06-21 11:30-0700, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>
> | On Tue, Jun 21, 2005 at 02:06:15PM -0400, Juan Gallego wrote:
> | >
> | >
> | > as expected. but if stdout is redirected to a file, c_routine's output
> | > disappears:
> | >
> | > > ./xfcnam > t
> | > STOP 0
> | > > cat t
> |
> | PR libfortran/20179
> |
> | This has been fixed at least in cvs mainline. The patch may have
> | been applied to the 4.0 branch, but I'm not in a position to
> | investigate any further.
>
> many many thanks. adding the fflush calls to the c_routines does indeed fix
> the problem. i'll try the patch and rebuild gfortran see if that's enough.
>
There is a release candidate for gcc 4.0.1. I don't
have the URL handy, but the patch has been applied to
the 4.0 branch and should be in 4.0.1. Hunt around
gcc.gnu.org for a gcc-4.0.1.
--
Steve
More information about the Fortran
mailing list