2013-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
commitbfdfb8352d0cc0ced57e185f8da9b54cb0b29c56
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Aug 2013 05:50:03 +0000 (12 05:50 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Aug 2013 05:50:03 +0000 (12 05:50 +0000)
treec0b67820530848b80905158737ebf6f035db92ad
parente3c43f7494f6eb4758968ef0c24f860e5a220e15
2013-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/56666
* gfortran.h (gfc_option_t):  Add warn_zerotrip.
* invoke.texi (-Wzerotrip):  Document option.
* lang.opt (Wzerotrip):  Add.
* options.c (gfc_init_options):  Initialize warn_zerotrip.
(set_Wall): Add handling of warn_zerotrip.
(gfc_handle_option):  Handle OPT_Wzerotrip.
* resolve.c (gfc_resolve_iterator): Honor
gfc_option.warn_zerotrip; update error message to show
how to suppress the warning.

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

PR fortran/56666
* gfortran.dg/do_check_10.f90:  New test.
* gfortran.dg/array_constructor_11.f90:  Add -Wzerotrip to dg-options.
* gfortran.dg/array_constructor_18.f90:  Likewise.
* gfortran.dg/array_constructor_22.f90:  Likewise.
* gfortran.dg/coarray_15.f90:  Likewise.
* gfortran.dg/do_1.f90:  Add -Wall to dg-options.
* gfortran.dg/do_3.F90:  Add -Wzerotrip to dg-options.
* gfortran.dg/do_check_5.f90:  Add -Wall to gd-options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201658 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_11.f90
gcc/testsuite/gfortran.dg/array_constructor_18.f90
gcc/testsuite/gfortran.dg/array_constructor_22.f90
gcc/testsuite/gfortran.dg/coarray_15.f90
gcc/testsuite/gfortran.dg/do_1.f90
gcc/testsuite/gfortran.dg/do_3.F90
gcc/testsuite/gfortran.dg/do_check_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/do_check_5.f90