https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55585
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- % time gfortran-fsf-5 -c -g -O1 -fbounds-check pr55585.f90 74.868u 1.625s 1:16.58 99.8% 0+0k 0+0io 26pf+0w % time gfortran-fsf-6 -c -g -O1 -fbounds-check pr55585.f90 4.470u 0.159s 0:04.64 99.5% 0+0k 0+0io 5pf+0w % time gfortran-fsf-7 -c -g -O1 -fbounds-check pr55585.f90 4.344u 0.167s 0:04.53 99.3% 0+0k 0+0io 4pf+0w % time gfortran -c -g -O1 -fbounds-check pr55585.f90 gfortran-fsf-6 is gcc version 6.5.0. So the "significant slowdowns at -O1 -fbounds-check" seems to have been fixed since at least 6.5. Closing.