https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44054

--- Comment #20 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Author: manu
Date: Wed Dec  3 17:50:06 2014
New Revision: 218326

URL: https://gcc.gnu.org/viewcvs?rev=218326&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:

2014-12-03  Manuel López-Ibáñez  <m...@gcc.gnu.org>

    PR fortran/44054
    * gfortran.dg/warnings_are_errors_1.f90: Update warnings to errors.
    * gfortran.dg/warnings_are_errors_1.f: Likewise.

gcc/fortran/ChangeLog:

2014-12-03  Manuel López-Ibáñez  <m...@gcc.gnu.org>

    PR fortran/44054
    * gfortran.h (gfc_warning): Now returns bool. Add overload that
    accepts opt.
    (gfc_warning_1): Declare.
    * error.c
    (pp_warning_buffer,warningcount_buffered,werrorcount_buffered):    New.
    (gfc_buffer_error): Set pp_warning_buffer.flush_p.
    (gfc_clear_pp_buffer): New.
    (gfc_warning_1): Renamed from gfc_warning.
    (gfc_warning): Add three new overloads. One that takes just a
    format string and ellipsis, another that takes also a warning
    option, and another that takes also va_list instead of ellipsis.
    (gfc_clear_warning): Clear pp_warning_buffer.
    (gfc_warning_check): Flush pp_warning_buffer and update warning
    and werror counters.
    (gfc_diagnostics_init): Init pp_warning_buffer.

    * Update all gfc_warning calls that do not multiple
    locations to use %qs and OPT_W*, otherwise use gfc_warning_1.

gcc/ChangeLog:

2014-12-03  Manuel López-Ibáñez  <m...@gcc.gnu.org>

    PR fortran/44054
    * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
    (pp_flush): Flush only if flush_p.
    (pp_really_flush): New.
    * pretty-print.h (struct output_buffer): Add flush_p.
    (pp_really_flush): Declare.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/arith.c
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/dependency.c
    trunk/gcc/fortran/error.c
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/frontend-passes.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/interface.c
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/io.c
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/scanner.c
    trunk/gcc/fortran/simplify.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-common.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/pretty-print.c
    trunk/gcc/pretty-print.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/warnings_are_errors_1.f
    trunk/gcc/testsuite/gfortran.dg/warnings_are_errors_1.f90

Reply via email to