From 7008512d47e0b608da552569a5e2bb2eb1789bae Mon Sep 17 00:00:00 2001 From: Basile Starynkevitch Date: Mon, 11 Nov 2013 14:54:14 +0000 Subject: [PATCH] toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish. 2013-11-11 Basile Starynkevitch * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish. From-SVN: r204674 --- gcc/ChangeLog | 6 ++++++ gcc/toplev.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3d8350e9d9b..b5631b97c8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ + +2013-11-11 Basile Starynkevitch + + * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before + diagnostic_finish. + 2013-11-11 Kyrylo Tkachov * config/arm/arm.c (arm_new_rtx_costs): Return after handling diff --git a/gcc/toplev.c b/gcc/toplev.c index ad6849996e1..66477b651dc 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1968,11 +1968,13 @@ toplev_main (int argc, char **argv) if (warningcount || errorcount || werrorcount) print_ignored_options (); - diagnostic_finish (global_dc); - /* Invoke registered plugin callbacks if any. */ + /* Invoke registered plugin callbacks if any. Some plugins could + emit some diagnostics here. */ invoke_plugin_callbacks (PLUGIN_FINISH, NULL); + diagnostic_finish (global_dc); + finalize_plugins (); location_adhoc_data_fini (line_table); if (seen_error () || werrorcount) -- 2.30.2