diff options
author | Olatunji Ruwase <tjruwase@google.com> | 2009-06-29 21:17:40 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2009-06-29 21:17:40 +0000 |
commit | 78bf7bd0fc9a82aff98874e0ff3e12a329f920ab (patch) | |
tree | 63398d650a9579870dc5c29493d49d49e66f87cb /gcc/plugin.c | |
parent | 20460eb94863954cf7ebdc7bf2193038ac0b781a (diff) | |
download | gcc-78bf7bd0fc9a82aff98874e0ff3e12a329f920ab.tar.gz |
plugins.texi: Document PLUGIN_START_UNIT.
2009-06-29 Olatunji Ruwase <tjruwase@google.com>
* doc/plugins.texi: Document PLUGIN_START_UNIT.
* toplev.c (compile_file): Call PLUGIN_START_UNIT.
* gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
* plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
(register_callback): Handle PLUGIN_START_UNIT.
(invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
From-SVN: r149064
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r-- | gcc/plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c index 396850a3a97..f6578505b88 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -57,6 +57,7 @@ const char *plugin_event_name[] = "PLUGIN_GGC_MARKING", "PLUGIN_GGC_END", "PLUGIN_REGISTER_GGC_ROOTS", + "PLUGIN_START_UNIT", "PLUGIN_EVENT_LAST" }; @@ -499,6 +500,7 @@ register_callback (const char *plugin_name, ggc_register_root_tab ((const struct ggc_root_tab*) user_data); break; case PLUGIN_FINISH_TYPE: + case PLUGIN_START_UNIT: case PLUGIN_FINISH_UNIT: case PLUGIN_CXX_CP_PRE_GENERICIZE: case PLUGIN_GGC_START: @@ -544,6 +546,7 @@ invoke_plugin_callbacks (enum plugin_event event, void *gcc_data) switch (event) { case PLUGIN_FINISH_TYPE: + case PLUGIN_START_UNIT: case PLUGIN_FINISH_UNIT: case PLUGIN_CXX_CP_PRE_GENERICIZE: case PLUGIN_ATTRIBUTES: |