http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53787
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-06-27 17:39:23 UTC --- AFAICT the subroutine is inlined with '-O3 -fwhole-program' or '-O3 -fwhole-program -flto' for 4.6.3, 4.7.1, and trunk. Indeed the inlining does not occurs with the addition of -fno-inline, but why do you expect gfortran to disobey to what you ask it to do?