https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91512
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Sunil Pandey from comment #4) > Actually it is spec cpu 2017 521.wrf benchmark getting this problem while > compiling. Compilation taking forever, you can see while compiling file > module_first_rk_step_part1.fppized.f90 as a representative. Note this file contains a single function which (besides USEing quite a number of modules...) has only function calls involving a lot of parameters effectively forwarding parameters from the function. Thus SUBROUTINE foo (psim, ..., ims, ime, jms, jme) REAL ,DIMENSION(ims:ime,jms:jme), INTENT(INOUT) :: psim call sub1 (PSIM=psim, ...) call sub2 (PSIM=psim, ...) END SUBROUTINE with a _lot_ of arrays being passed through. A simple testcase like SUBROUTINE sub1 (psim, ims, ime, jms, jme) REAL ,DIMENSION(ims:ime,jms:jme), INTENT(INOUT) :: psim END SUBROUTINE SUBROUTINE foo (psim, ims, ime, jms, jme) REAL ,DIMENSION(ims:ime,jms:jme), INTENT(INOUT) :: psim call sub1 (psim, ims, ime, jms, jme) END SUBROUTINE doesn't show any extra loops generated though, so I'm not sure what to look after.