summaryrefslogtreecommitdiff
path: root/gcc/plugin.def
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-19 16:26:52 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-19 16:26:52 +0000
commit0391a567ca45fa55a6284ef05eeaca0b67593df3 (patch)
tree8ef75029296d8398d750c46c5848160b18bbabfd /gcc/plugin.def
parentc41f78ca4d41d7cd5d281d36ca169724d6a257ca (diff)
downloadgcc-0391a567ca45fa55a6284ef05eeaca0b67593df3.tar.gz
[gcc/c-family]
2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> * c-opts.c: Include plugin.h. (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. [gcc/] 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in cb_file_change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/plugin.def')
-rw-r--r--gcc/plugin.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/plugin.def b/gcc/plugin.def
index c4ca61be14a..25a645854a7 100644
--- a/gcc/plugin.def
+++ b/gcc/plugin.def
@@ -92,6 +92,12 @@ DEFEVENT (PLUGIN_EARLY_GIMPLE_PASSES_END)
/* Called when a pass is first instantiated. */
DEFEVENT (PLUGIN_NEW_PASS)
+/* Called when a file is #include-d or given thru #line directive.
+ Could happen many times. The event data is the included file path,
+ as a const char* pointer. */
+DEFEVENT (PLUGIN_INCLUDE_FILE)
+
+
/* After the hard-coded events above, plugins can dynamically allocate events
at run time.
PLUGIN_EVENT_FIRST_DYNAMIC only appears as last enum element. */