https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100460
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The way libgfortran fixed this two ways. First way is to use umask (disabled for mingw though). Second way is doing #ifndef/#define 0 See: r6-2699-g18a2180daa88bc r0-63059-g41724e6a1387d9