summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-11 14:54:14 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-11 14:54:14 +0000
commit28cd2e890dca7851c9ddd3a3de59c0e877f55385 (patch)
tree462de17835a1647fc28ad9fc97f5462068ab4fea /gcc/toplev.c
parentb052c024e9e9f83da486bf3b51d368bc6aa8d2ca (diff)
downloadgcc-28cd2e890dca7851c9ddd3a3de59c0e877f55385.tar.gz
2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
* toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c6
1 files changed, 4 insertions, 2 deletions
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)