http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31067
--- Comment #45 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-28 20:56:57 UTC --- Author: jakub Date: Thu Jul 28 20:56:50 2011 New Revision: 176897 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176897 Log: PR fortran/31067 * frontend-passes.c (optimize_minmaxloc): New function. (optimize_expr): Call it. * gfortran.dg/maxloc_2.f90: New test. * gfortran.dg/maxloc_3.f90: New test. * gfortran.dg/minloc_1.f90: New test. * gfortran.dg/minloc_2.f90: New test. * gfortran.dg/minloc_3.f90: New test. * gfortran.dg/minmaxloc_7.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/maxloc_2.f90 trunk/gcc/testsuite/gfortran.dg/maxloc_3.f90 trunk/gcc/testsuite/gfortran.dg/minloc_1.f90 trunk/gcc/testsuite/gfortran.dg/minloc_2.f90 trunk/gcc/testsuite/gfortran.dg/minloc_3.f90 trunk/gcc/testsuite/gfortran.dg/minmaxloc_7.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/frontend-passes.c trunk/gcc/testsuite/ChangeLog