aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBasile Starynkevitch <basile@starynkevitch.net>2013-11-11 14:54:14 +0000
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>2013-11-11 14:54:14 +0000
commit7008512d47e0b608da552569a5e2bb2eb1789bae (patch)
tree462de17835a1647fc28ad9fc97f5462068ab4fea /gcc
parentde75e25fb0cb24880a63ce591c8bd37866dbf749 (diff)
downloadgcc-7008512d47e0b608da552569a5e2bb2eb1789bae.zip
gcc-7008512d47e0b608da552569a5e2bb2eb1789bae.tar.gz
gcc-7008512d47e0b608da552569a5e2bb2eb1789bae.tar.bz2
toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish.
2013-11-11 Basile Starynkevitch <basile@starynkevitch.net> * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish. From-SVN: r204674
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/toplev.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3d8350e..b5631b9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/toplev.c b/gcc/toplev.c
index ad68499..66477b6 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)