[Bug fortran/67460] [5/6 Regression] Spurious: f951: all warnings being treated as errors
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 14 19:28:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67460
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Mon Sep 14 19:27:50 2015
New Revision: 227760
URL: https://gcc.gnu.org/viewcvs?rev=227760&root=gcc&view=rev
Log:
The flag diagnostic_context::some_warnings_are_errors controls whether
to give the message "all warnings being treated as errors". However, when
warnings are buffered and then discarded, this flag is not reset. It turns
out we do not need this flag at all, since we already count explicitly how
many warnings were converted into errors, and this number is kept up to
date for the buffered diagnostics used by Fortran.
gcc/ChangeLog:
2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/67460
* diagnostic.c (diagnostic_initialize): Do not set
some_warnings_are_errors.
(diagnostic_finish): Use DK_WERROR count instead.
(diagnostic_report_diagnostic): Do not set
some_warnings_are_errors.
* diagnostic.h (struct diagnostic_context): Remove
some_warnings_are_errors.
gcc/testsuite/ChangeLog:
2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/67460
* gfortran.dg/pr67460.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr67460.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic.c
trunk/gcc/diagnostic.h
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list