http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52893
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-04-07 20:27:10 UTC --- Author: tkoenig Date: Sat Apr 7 20:27:02 2012 New Revision: 186215 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186215 Log: 2012-04-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/52893 Backport from trunk * frontend-passes.c: Keep track of wether we are in an implicit DO loop; do not do function elimination if we are. 2012-04-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/52893 Backport from trunk * gfortran.dg/function_optimize_11.f90: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/function_optimize_11.f90 Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/frontend-passes.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog