toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish.
authorBasile Starynkevitch <basile@starynkevitch.net>
Mon, 11 Nov 2013 14:54:14 +0000 (14:54 +0000)
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>
Mon, 11 Nov 2013 14:54:14 +0000 (14:54 +0000)
2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>

         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
           diagnostic_finish.

From-SVN: r204674

gcc/ChangeLog
gcc/toplev.c

index 3d8350e9d9b132b6166057b1b138c702cc4fd19c..b5631b97c8eafcdc4acca69fb35e9fa09d9f1e2b 100644 (file)
@@ -1,3 +1,9 @@
+
+2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
+
+         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
+           diagnostic_finish.
+
 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/arm/arm.c (arm_new_rtx_costs): Return after handling
index ad6849996e1c15ca7f7d1578c2793e328cbe0acf..66477b651dc763ebd1ce8d0369130e7824ae3518 100644 (file)
@@ -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)