Using XhmikosR's Builds http://xhmikosr.1f0.de/tools/msys/MSYS_MinGW-w64_GCC_710_x86-x64_Full.7z
First, you need temporary disable AntiVirus/Windows Defender, it can cause slow to compile
Command top build GCC 9.2 (Ryzen Optimization)
cd ~/gcc-9.2.0
./contrib/download_prerequisites
mkdir build
cd build
../configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw/bin/gcc-9.2 --program-suffix=-9.2
Compile GCC 9.2, since I have AMD Ryzen 3700X 8-Core Processor (16 Thread Total), I use:
make -j 16