diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-20 23:07:29 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-20 23:07:29 +0000 |
commit | 18767f6502134a72689c3b7be96723a0c03a6a30 (patch) | |
tree | 3f03556a5974697ffb4bafd96217230d8739848a /gcc/cp | |
parent | 22e6bd6f6c83773aad53732b5880eb07d9100499 (diff) | |
download | gcc-18767f6502134a72689c3b7be96723a0c03a6a30.zip gcc-18767f6502134a72689c3b7be96723a0c03a6a30.tar.gz gcc-18767f6502134a72689c3b7be96723a0c03a6a30.tar.bz2 |
re PR fortran/44054 (Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color)
gcc/ChangeLog:
2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054
* diagnostic.c (default_diagnostic_finalizer): Move caret printing
to here ...
(diagnostic_report_diagnostic): ... from here.
* toplev.c (general_init): Move code to c-family.
gcc/cp/ChangeLog:
2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054
* error.c (cp_diagnostic_finalizer): Delete.
(init_error): Do not set diagnostic_finalizer here.
gcc/c-family/ChangeLog:
2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054
* c-opts.c: Include tree-diagnostics.h.
(c_diagnostic_finalizer): New.
(c_common_initialize_diagnostics): Use it.
gcc/fortran/ChangeLog:
2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054
* error.c (gfc_diagnostic_finalizer): Call default finalizer.
From-SVN: r214245
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/error.c | 11 |
2 files changed, 7 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6d61f75..27e2249 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR fortran/44054 + * error.c (cp_diagnostic_finalizer): Delete. + (init_error): Do not set diagnostic_finalizer here. + 2014-08-19 Marek Polacek <polacek@redhat.com> PR c++/62153 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 2ce6490..9f0498d 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -99,7 +99,6 @@ static void print_instantiation_partial_context (diagnostic_context *, struct tinst_level *, location_t); static void cp_diagnostic_starter (diagnostic_context *, diagnostic_info *); -static void cp_diagnostic_finalizer (diagnostic_context *, diagnostic_info *); static void cp_print_error_function (diagnostic_context *, diagnostic_info *); static bool cp_printer (pretty_printer *, text_info *, const char *, @@ -109,7 +108,7 @@ void init_error (void) { diagnostic_starter (global_dc) = cp_diagnostic_starter; - diagnostic_finalizer (global_dc) = cp_diagnostic_finalizer; + /* diagnostic_finalizer is already c_diagnostic_finalizer. */ diagnostic_format_decoder (global_dc) = cp_printer; new (cxx_pp) cxx_pretty_printer (); @@ -3041,14 +3040,6 @@ cp_diagnostic_starter (diagnostic_context *context, diagnostic)); } -static void -cp_diagnostic_finalizer (diagnostic_context *context, - diagnostic_info *diagnostic) -{ - virt_loc_aware_diagnostic_finalizer (context, diagnostic); - pp_destroy_prefix (context->printer); -} - /* Print current function onto BUFFER, in the process of reporting a diagnostic message. Called from cp_diagnostic_starter. */ static void |