[gfortran] patch PR 20788
François-Xavier Coudert
Francois-Xavier.Coudert@lcp.u-psud.fr
Mon May 2 07:51:00 GMT 2005
Dynamically loading libgfortran.so breaks C I/O routines when stdout is
redirected to a file (same thing for stdin and stderr). This annoys people
dynamically loading Fortran subroutines for use in a C project (example: R,
see PR fortran/20788 for details).
Attached patch fixes this by disabling use of mmap on stdin, stdout and
stderr. Profiling shows no performance degradation (all time spent in I/O on
preconnected units is formatting).
Regtested on i386-linux. OK for mainline and 4.0?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr20788.ChangeLog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050502/c28af4e2/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr20788.diff
Type: text/x-patch
Size: 1632 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050502/c28af4e2/attachment.bin>
More information about the Fortran
mailing list