re PR fortran/91424 (Extend warnings about DO loops)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 12 Aug 2019 20:21:37 +0000 (20:21 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 12 Aug 2019 20:21:37 +0000 (20:21 +0000)
commit393fdeb1e42d9ed78546f350b474183aac463da5
tree2896814b1c2ce28c76fee7e3b119024a966c4a0e
parent0124d2c5bb0ac41a6f3288b5f11861c127f13409
re PR fortran/91424 (Extend warnings about DO loops)

2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/91424
* frontend-passes.c (do_subscript): Do not warn for an
expression a second time.  Do not warn about a zero-trip loop.
(doloop_warn): Also look at contained namespaces.

2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/91424
* gfortran.dg/do_subscript_3.f90: New test.
* gfortran.dg/do_subscript_4.f90: New test.
* gfortran.dg/pr70754.f90: Use indices that to not overflow.

2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/91422
* testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
dimension.

From-SVN: r274320
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/do_subscript_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/do_subscript_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr70754.f90
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-fortran/routine-7.f90