https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858
--- Comment #7 from Brecht Sanders <brechtsanders at users dot sourceforge.net> --- Any update on this? This issue makes GCC12 really slow on Windows because PCH support doesn't work. If mman-win32 support could be made to work it might solve this issue. The problem is that this requires linking with -lmman (and this flag needs to be near the end of the list of linked libraries)