diff options
author | Olatunji Ruwase <tjruwase@google.com> | 2009-07-20 19:28:05 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-07-20 19:28:05 +0000 |
commit | 9c8e65c30f22cfa6556f9431c35ec326a8088854 (patch) | |
tree | 7541d5c6e267f3aaeb0dfc0038a90a3083dfe75f /gcc/toplev.c | |
parent | 3e014341f8eb395bdb2b9d727dab4a095bc09e66 (diff) | |
download | gcc-9c8e65c30f22cfa6556f9431c35ec326a8088854.zip gcc-9c8e65c30f22cfa6556f9431c35ec326a8088854.tar.gz gcc-9c8e65c30f22cfa6556f9431c35ec326a8088854.tar.bz2 |
toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
./: * toplev.c: Invoke FINISH_UNIT callbacks before call to
finalize().
testsuite/:
* gcc.dg/plugin/finish_unit_plugin.c: New test.
* gcc.dg/plugin/finish_unit-test-1.c: New test.
* gcc.dg/plugin/plugin.exp: Added finish_unit_plugin.c test.
From-SVN: r149833
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 6fa3f1a..81d55f3 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1091,6 +1091,9 @@ compile_file (void) } #endif + /* Invoke registered plugin callbacks. */ + invoke_plugin_callbacks (PLUGIN_FINISH_UNIT, NULL); + /* This must be at the end. Some target ports emit end of file directives into the assembly file here, and hence we can not output anything to the assembly file after this point. */ @@ -2348,9 +2351,6 @@ do_compile (void) compile_file (); finalize (); - - /* Invoke registered plugin callbacks. */ - invoke_plugin_callbacks (PLUGIN_FINISH_UNIT, NULL); } /* Stop timing and print the times. */ |