Final libgfortran mingw32 bootstrap fixes

Aaron W. LaFramboise aaronavay62@aaronwl.com
Thu Oct 14 11:26:00 GMT 2004


This is the last of the changes that need to be made to allow
libgfortran to successfully bootstrap on Windows.  There are still some
other important things that need to be fixed, though, according to the
regression test results.

This patch fixes two things.  First, the S_IRGRP, S_IWGRP, S_IROTH, and
S_IWOTH macros are not defined on MinGW, so this patch defines them if
they are not defined already.

Secondly, MinGW doesn't have mkstemp(), but it does have mktemp(), which
is used together with open() to synthesize the correct functionality.
There might be a security issue here, but I'm fairly confident this is
the right way to do this, as its consistant with a usual mkstemp()
implementation.  I also fixed two typos: the comment had a typo and was
inaccurate, and the temp file name misspelled "fortran."

Tested by bootstrapping on i686-pc-mingw32.

Aaron W. LaFramboise

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-mainline-200401014-libgf-unix.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041014/be616878/attachment.ksh>


More information about the Gcc-patches mailing list