decl.c (finish_function): Rename pre-genericize event.
authorBrian Hackett <bhackett1024@gmail.com>
Mon, 21 Dec 2009 20:37:49 +0000 (20:37 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Mon, 21 Dec 2009 20:37:49 +0000 (20:37 +0000)
2009-12-21  Brian Hackett  <bhackett1024@gmail.com>

* decl.c (finish_function): Rename pre-genericize event.

2009-12-21  Brian Hackett  <bhackett1024@gmail.com>

* plugin.def: Rename pre-genericize event.
* plugin.c (register_callback, invoke_plugin_callbacks): Same.
* c-decl.c (finish_function): Invoke callbacks on above event.

From-SVN: r155379

gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/plugin.c
gcc/plugin.def

index 4dde7e48f032e09c869ed0094542c039e7d979e0..5176a32ea2ac3e12f919ad356703c6c93c1ecc73 100644 (file)
@@ -1,3 +1,9 @@
+2009-12-21  Brian Hackett  <bhackett1024@gmail.com>
+
+       * plugin.def: Rename pre-genericize event.
+       * plugin.c (register_callback, invoke_plugin_callbacks): Same.
+       * c-decl.c (finish_function): Invoke callbacks on above event.
+
 2009-12-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/42429
index 59179dd5858170797ed918710a9392d77e692db8..49a530c551bcd8576b6001d1bce1cfc5301fc162 100644 (file)
@@ -8052,6 +8052,7 @@ finish_function (void)
     {
       if (!decl_function_context (fndecl))
        {
+         invoke_plugin_callbacks (PLUGIN_PRE_GENERICIZE, fndecl);
          c_genericize (fndecl);
 
          /* ??? Objc emits functions after finalizing the compilation unit.
index 7b752cf94cb87a9cb5bbf32b3731dc1d3c62ee76..ab9c0df531280bed4b66be12eeb1f049a8f07c96 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-21  Brian Hackett  <bhackett1024@gmail.com>
+
+       * decl.c (finish_function): Rename pre-genericize event.
+
 2009-12-19  Dodji Seketeli  <dodji@redhat.com>
 
        PR c++/42225
index 3c9649d2a27318212dfce6225fc754d12b640528..e89113a24027cbd406adcc861adfdf149cb1f2f7 100644 (file)
@@ -12560,7 +12560,7 @@ finish_function (int flags)
   if (!processing_template_decl)
     {
       struct language_function *f = DECL_SAVED_FUNCTION_DATA (fndecl);
-      invoke_plugin_callbacks (PLUGIN_CXX_CP_PRE_GENERICIZE, fndecl);
+      invoke_plugin_callbacks (PLUGIN_PRE_GENERICIZE, fndecl);
       cp_genericize (fndecl);
       /* Clear out the bits we don't need.  */
       f->x_current_class_ptr = NULL;
index 78f99ca5d3b2652a72551ae6489b3db8c4971fff..25e5b95be8fe923097cdf7bffacdee07c3787346 100644 (file)
@@ -402,7 +402,7 @@ register_callback (const char *plugin_name,
       case PLUGIN_FINISH_TYPE:
       case PLUGIN_START_UNIT:
       case PLUGIN_FINISH_UNIT:
-      case PLUGIN_CXX_CP_PRE_GENERICIZE:
+      case PLUGIN_PRE_GENERICIZE:
       case PLUGIN_GGC_START:
       case PLUGIN_GGC_MARKING:
       case PLUGIN_GGC_END:
@@ -483,7 +483,7 @@ invoke_plugin_callbacks (int event, void *gcc_data)
       case PLUGIN_FINISH_TYPE:
       case PLUGIN_START_UNIT:
       case PLUGIN_FINISH_UNIT:
-      case PLUGIN_CXX_CP_PRE_GENERICIZE:
+      case PLUGIN_PRE_GENERICIZE:
       case PLUGIN_ATTRIBUTES:
       case PLUGIN_PRAGMAS:
       case PLUGIN_FINISH:
index b4e541e3c1748066e91e5ab2d00c01e0292e7eb1..4a40c2cf79e1303ec827093e378cc0225bb9a7b9 100644 (file)
@@ -27,8 +27,8 @@ DEFEVENT (PLUGIN_FINISH_TYPE)
 /* Useful for summary processing.  */
 DEFEVENT (PLUGIN_FINISH_UNIT)
 
-/* Allows to see low level AST in C++ FE.  */
-DEFEVENT (PLUGIN_CXX_CP_PRE_GENERICIZE)
+/* Allows to see low level AST in C and C++ frontends. */
+DEFEVENT (PLUGIN_PRE_GENERICIZE)
 
 /* Called before GCC exits.  */
 DEFEVENT (PLUGIN_FINISH)