* doc/plugins.texi (enum plugin_event): New event.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2015 13:27:11 +0000 (13:27 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jun 2015 13:27:11 +0000 (13:27 +0000)
commitf8363c5d5c527aabf678c51fd04176f977170471
tree329fd87cc105897690e082dad29a77825d113933
parent904bd8658eb1f0e2467d977015b808154e69c1c5
    * doc/plugins.texi (enum plugin_event): New event.
        * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
        and PLUGIN_FINISH_FUNCTION.
        * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
        (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.

cp/

        * decl.c (start_function): Call plugin before parsing.
        (finish_function): Call plugin after parsing.

c/

        * c-decl.c (start_function): Call plugin before parsing.
        (finish_function): Call plugin after parsing.

testsuite/

        * g++.dg/plugin/plugin.exp: Add def-plugin-test.C.
        * g++.dg/plugin/def_plugin.c: New file.
        * g++.dg/plugin/def-plugin-test.C: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224078 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/doc/plugins.texi
gcc/plugin.c
gcc/plugin.def
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/def-plugin-test.C [new file with mode: 0644]
gcc/testsuite/g++.dg/plugin/def_plugin.c [new file with mode: 0644]
gcc/testsuite/g++.dg/plugin/plugin.exp