]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 16:42:04 +0000 (16:42 +0000)
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 16:42:04 +0000 (16:42 +0000)
        * plugin.def: Add comment about register_callback and
        invoke_plugin_callbacks_full.

        * plugin.c (register_callback, invoke_plugin_callbacks_full):
        Handle PLUGIN_INCLUDE_FILE event.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205125 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/plugin.c
gcc/plugin.def

index 32a75226727542aa3bff5aaf780008e1fc81156b..9e0d643fea9b68a78e36263f14571a16d0585fe3 100644 (file)
@@ -1,3 +1,11 @@
+2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
+
+        * plugin.def: Add comment about register_callback and
+        invoke_plugin_callbacks_full.
+
+        * plugin.c (register_callback, invoke_plugin_callbacks_full):
+        Handle PLUGIN_INCLUDE_FILE event.
+
 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
index d7dcb5f4d3606a7d08eba2bbdff4f96d45220ada..61d7fde0175d7d7cbf07840a9bb0d27ee90b68c3 100644 (file)
@@ -452,6 +452,7 @@ register_callback (const char *plugin_name,
       case PLUGIN_EARLY_GIMPLE_PASSES_START:
       case PLUGIN_EARLY_GIMPLE_PASSES_END:
       case PLUGIN_NEW_PASS:
+      case PLUGIN_INCLUDE_FILE:
         {
           struct callback_info *new_callback;
           if (!callback)
@@ -529,6 +530,7 @@ invoke_plugin_callbacks_full (int event, void *gcc_data)
       case PLUGIN_EARLY_GIMPLE_PASSES_START:
       case PLUGIN_EARLY_GIMPLE_PASSES_END:
       case PLUGIN_NEW_PASS:
+      case PLUGIN_INCLUDE_FILE:
         {
           /* Iterate over every callback registered with this event and
              call it.  */
index 25a645854a76f20c1b81b873be7c20189c15ca56..154f01c0f80209e14fa4bfd9a32d46a5a7c97b0f 100644 (file)
@@ -97,6 +97,9 @@ DEFEVENT (PLUGIN_NEW_PASS)
    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.