c-opts.c (c_common_handle_option): <case OPT_Werror> set global_dc->warning_as_error_...
commit7783b402031d4ca66e2a29fa90855ea7fab965b0
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Mon, 30 Aug 2004 04:48:34 +0000 (30 04:48 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Mon, 30 Aug 2004 04:48:34 +0000 (30 04:48 +0000)
tree103c28a53c7590a4369c890c344849d943d7820c
parent04204c2fbf4cb7db7e6b1ce8691ef99f7610f0ee
c-opts.c (c_common_handle_option): <case OPT_Werror> set global_dc->warning_as_error_requested.

        * c-opts.c (c_common_handle_option): <case OPT_Werror> set
        global_dc->warning_as_error_requested.
        * diagnostic.c (diagnostic_initialize): Tidy.
        * diagnostic.h (diagnostic_context::x_data): Remove
        (diagnostic_context::issue_warnings_are_errors_message): Rename
        from warnings_are_errors_message.
        (diagnostic_context::warning_as_error_requested): New.

From-SVN: r86750
gcc/ChangeLog
gcc/c-opts.c
gcc/diagnostic.c
gcc/diagnostic.h