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

2019-01-13 Thread Johannes Pfau
Am 03.01.19 um 13:34 schrieb Alexander Monakov: 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

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

2019-01-03 Thread Alexander Monakov
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 th

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

2019-01-03 Thread Johannes Pfau
Hello list, I'm currently adding D support to the MinGW targets. As the libphobos upstream only targets newer msvcr runtime libraries, I tried building GCC against libmsvcr120. When doing that, the build fails when building s-selftest-c++: /home/jpfau/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v6