This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran,patch] PR40195, we forget to close a module file


FX wrote:
Hi all

The patch below fixes PR 40195: when we open a .mod file to check its content, there is one codepath where we forget to close it. On Windows, this prevents the file from being unlinked later on (which aborts the compilation). The patch simply adds a call to fclose(), and also slightly adjusts the comments.

Built and tested on i386-pc-mingw32, currently regtesting on x86_64-linux. OK to commit?

OK, also please backport to 4.4 if it needs it.

Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]