plugins.texi: Document PLUGIN_START_UNIT.
commit78bf7bd0fc9a82aff98874e0ff3e12a329f920ab
authorOlatunji Ruwase <tjruwase@google.com>
Mon, 29 Jun 2009 21:17:40 +0000 (29 21:17 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Mon, 29 Jun 2009 21:17:40 +0000 (29 21:17 +0000)
tree63398d650a9579870dc5c29493d49d49e66f87cb
parent20460eb94863954cf7ebdc7bf2193038ac0b781a
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
gcc/ChangeLog
gcc/doc/plugins.texi
gcc/gcc-plugin.h
gcc/plugin.c
gcc/testsuite/gcc.dg/plugin/plugin.exp
gcc/testsuite/gcc.dg/plugin/start_unit-test-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugin/start_unit_plugin.c [new file with mode: 0644]
gcc/toplev.c