[RFC/PATCH] gcc.c: access does not work in new msvcr for nul file

Alexander Monakov amonakov@ispras.ru
Thu Jan 3 12:34:00 GMT 2019


On Thu, 3 Jan 2019, Johannes Pfau wrote:
> 
> Debugging shows that the access function used to check
> if the input files exist has different behavior in newer msvcr libraries:
> It does return proper results for the 'nul' file in the old msvcrt.dll
> but in newer libraries it returns EINVAL for the nul file.

I would recommend to consult with MinGW-W64 maintainers first: it may be
appropriate to handle this in mingw's wrapper for the access function.
In any case, they should be informed about this weird regression.

Cheers.
Alexander



More information about the Gcc-patches mailing list