diff options
author | Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> | 2015-06-03 13:27:11 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-06-03 07:27:11 -0600 |
commit | ea5b45b61fe6917f59c0cb509fa0af5de08287bf (patch) | |
tree | 329fd87cc105897690e082dad29a77825d113933 /gcc/plugin.c | |
parent | e004aa11b1d261b597aa3e062204af61762ba6a9 (diff) | |
download | gcc-ea5b45b61fe6917f59c0cb509fa0af5de08287bf.zip gcc-ea5b45b61fe6917f59c0cb509fa0af5de08287bf.tar.gz gcc-ea5b45b61fe6917f59c0cb509fa0af5de08287bf.tar.bz2 |
plugins.texi (enum plugin_event): New event.
* 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.
From-SVN: r224078
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r-- | gcc/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c index 6a7654f..ed4a2c5 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -441,6 +441,8 @@ register_callback (const char *plugin_name, return; } /* Fall through. */ + case PLUGIN_START_PARSE_FUNCTION: + case PLUGIN_FINISH_PARSE_FUNCTION: case PLUGIN_FINISH_TYPE: case PLUGIN_FINISH_DECL: case PLUGIN_START_UNIT: @@ -519,6 +521,8 @@ invoke_plugin_callbacks_full (int event, void *gcc_data) gcc_assert (event >= PLUGIN_EVENT_FIRST_DYNAMIC); gcc_assert (event < event_last); /* Fall through. */ + case PLUGIN_START_PARSE_FUNCTION: + case PLUGIN_FINISH_PARSE_FUNCTION: case PLUGIN_FINISH_TYPE: case PLUGIN_FINISH_DECL: case PLUGIN_START_UNIT: |