Mercurial > hg > CbC > CbC_gcc
diff gcc/plugin.def @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/gcc/plugin.def Sun Aug 21 07:07:55 2011 +0900 +++ b/gcc/plugin.def Fri Oct 27 22:46:09 2017 +0900 @@ -1,5 +1,5 @@ /* This file contains the definitions for plugin events in GCC. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2017 Free Software Foundation, Inc. This file is part of GCC. @@ -17,6 +17,11 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +/* Called before parsing the body of a function. */ +DEFEVENT (PLUGIN_START_PARSE_FUNCTION) + +/* After finishing parsing a function. */ +DEFEVENT (PLUGIN_FINISH_PARSE_FUNCTION) /* To hook into pass manager. */ DEFEVENT (PLUGIN_PASS_MANAGER_SETUP) @@ -24,6 +29,9 @@ /* After finishing parsing a type. */ DEFEVENT (PLUGIN_FINISH_TYPE) +/* After finishing parsing a declaration. */ +DEFEVENT (PLUGIN_FINISH_DECL) + /* Useful for summary processing. */ DEFEVENT (PLUGIN_FINISH_UNIT) @@ -48,9 +56,6 @@ /* Register an extra GGC root table. */ DEFEVENT (PLUGIN_REGISTER_GGC_ROOTS) -/* Register an extra GGC cache table. */ -DEFEVENT (PLUGIN_REGISTER_GGC_CACHES) - /* Called during attribute registration. */ DEFEVENT (PLUGIN_ATTRIBUTES) @@ -89,6 +94,15 @@ /* Called when a pass is first instantiated. */ DEFEVENT (PLUGIN_NEW_PASS) +/* Called when a file is #include-d or given via the #line directive. + this could happen many times. The event data is the included file path, + as a const char* pointer. */ +DEFEVENT (PLUGIN_INCLUDE_FILE) + +/* When adding a new hard-coded plugin event, don't forget to edit in + file plugin.c the functions register_callback and + invoke_plugin_callbacks_full accordingly! */ + /* After the hard-coded events above, plugins can dynamically allocate events at run time. PLUGIN_EVENT_FIRST_DYNAMIC only appears as last enum element. */