https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99145
--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> --- I am sorry I should have taken more time analyzing this issue. Actually it is not and infinite loop, I clocked the compilation first with the -S option, then with the -c option. The compiler takes 4'52" of real time, 2'47" user time, and 43" of sys time. Same timings for -S and -c. The workstation was dedicated, with 16GB RAM. The output .s file is 1012 bytes, .o file 1776 bytes. I do not understand how gfortran takes such a long time only to produce a small object file. Sorry again for having cried wolf.