Thought I'd try as I have various versions of Paul's GCC installed. Named the hello world program hello.f90 as suggested at
https://riptutorial.com/fortran/example/3044/hello--world (suffix might be important) and used this command line,
gfortran -o hello.exe hello.f90
Works with GCC 4.4.6, 5.3.0 required gcc530.dll to run and all newer fail like,
[H:\tmp\r]gfortran -o hello.exe hello.f90
../.././libbacktrace/mmap.c:190 (K:/USR/local620/lib/gfortran.a(mmap.o)): Undefined symbol _munmap referenced from text segment
../.././libbacktrace/mmap.c:145 (K:/USR/local620/lib/gfortran.a(mmap.o)): Undefined symbol _mmap referenced from text segment
No GCC 8.3.0 installed but 6.2.0, 7.1.0 and 9.1.0 all failed with same mmap error. 5.5.0 is missing gfortran.
Attempting to build with -lcx, which would fix things with gcc and g++ didn't help and quickly reading the documentation doesn't show how to link to libcx.
So gcc530 is the newest version that simply works here, at least with gcc530.dll on the LIBPATH.
For my environment, I unzip to @unixroot\usr so k:\usr\local530 etc and use the attached cmd file, installed in @unixroot\usr\bin. To change which GCC it sets up, change the name and edit line 73 the part that says 'gcc530'. Thanks to KOMH for the cmd file, I have multiple ones,
[K:\usr\bin]dir gcc*env.cmd
The volume label in drive K is Unixroot.
The Volume Serial Number is 2CFE:A5C0.
Directory of K:\usr\bin
3-23-19 7:59p 13,349 13,555 a--- gcc446env.cmd
4-01-18 11:01p 13,349 124 a--- gcc510env.cmd
6-10-18 11:10p 13,349 13,555 a--- gcc530env.cmd
6-11-18 7:22a 13,349 13,555 a--- gcc550env.cmd
11-26-18 5:03p 13,349 13,555 a--- gcc620env.cmd
11-26-18 5:03p 13,381 13,555 a--- gcc710env.cmd
5-05-19 10:41a 13,381 13,555 a--- gcc910env.cmd
7 file(s) 93,507 bytes used
Edit: Actually attach cmd file