re PR fortran/41459 (Error not printed with -Werror and -fmax-errors=1)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 24 Sep 2009 21:53:36 +0000 (21:53 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 24 Sep 2009 21:53:36 +0000 (21:53 +0000)
commitbbffcb7eab761f5223678e7153be5d51560c33eb
treea18fbbc34372ef34d15127a85a1e198e639d0e5a
parente3d5405d071e33540d70c62c6e24a2dfa7cc7d9d
re PR fortran/41459 (Error not printed with -Werror and -fmax-errors=1)

2009-09-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/41459
* gfortran.dg/empty_label.f: New test.
* gfortran.dg/empty_label.f90: Ditto.
* gfortran.dg/warnings_are_errors_1.f: Fix to emit a single warning.

2009-09-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/41459
* error.c(gfc_warning_now): Move warnings_are_errors test to
after actual emitting of the warning.
* parse.c (next_free): Improve error locus printing.
(next_fixed): Change gfc_warn to gfc_warning_now, and improve
locus reporting.

From-SVN: r152147
gcc/fortran/ChangeLog
gcc/fortran/error.c
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/empty_label.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/empty_label.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/warnings_are_errors_1.f