[gfortran] patch for unlink on open files

FX Coudert fxcoudert@gmail.com
Sun Aug 7 13:17:00 GMT 2005


Some systems (such as mingw32) can't unlink a file that is still open. 
libgfortran used to unlink files (especially temporary files) before 
closing them. Attached patch adds a configure test to determine if the 
target can do that (with reasonnable default based on ${target} value 
for cross-compilers), and code to unlink files after closing them if needed.

Built and tested on i686-mingw32, regtested on x86_64-linux. OK for 
mainline and 4.0?


FX

:ADDPATCH libgfortran:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unlink.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050807/cd6b72b9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unlink.ChangeLog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050807/cd6b72b9/attachment-0001.ksh>


More information about the Fortran mailing list