Commit 1c701f96 by Brian Hackett Committed by Rafael Espindola

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

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
parent 78e36824
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> 2009-12-21 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/42429 PR rtl-optimization/42429
...@@ -8052,6 +8052,7 @@ finish_function (void) ...@@ -8052,6 +8052,7 @@ finish_function (void)
{ {
if (!decl_function_context (fndecl)) if (!decl_function_context (fndecl))
{ {
invoke_plugin_callbacks (PLUGIN_PRE_GENERICIZE, fndecl);
c_genericize (fndecl); c_genericize (fndecl);
/* ??? Objc emits functions after finalizing the compilation unit. /* ??? Objc emits functions after finalizing the compilation unit.
......
2009-12-21 Brian Hackett <bhackett1024@gmail.com>
* decl.c (finish_function): Rename pre-genericize event.
2009-12-19 Dodji Seketeli <dodji@redhat.com> 2009-12-19 Dodji Seketeli <dodji@redhat.com>
PR c++/42225 PR c++/42225
......
...@@ -12560,7 +12560,7 @@ finish_function (int flags) ...@@ -12560,7 +12560,7 @@ finish_function (int flags)
if (!processing_template_decl) if (!processing_template_decl)
{ {
struct language_function *f = DECL_SAVED_FUNCTION_DATA (fndecl); 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); cp_genericize (fndecl);
/* Clear out the bits we don't need. */ /* Clear out the bits we don't need. */
f->x_current_class_ptr = NULL; f->x_current_class_ptr = NULL;
......
...@@ -402,7 +402,7 @@ register_callback (const char *plugin_name, ...@@ -402,7 +402,7 @@ register_callback (const char *plugin_name,
case PLUGIN_FINISH_TYPE: case PLUGIN_FINISH_TYPE:
case PLUGIN_START_UNIT: case PLUGIN_START_UNIT:
case PLUGIN_FINISH_UNIT: case PLUGIN_FINISH_UNIT:
case PLUGIN_CXX_CP_PRE_GENERICIZE: case PLUGIN_PRE_GENERICIZE:
case PLUGIN_GGC_START: case PLUGIN_GGC_START:
case PLUGIN_GGC_MARKING: case PLUGIN_GGC_MARKING:
case PLUGIN_GGC_END: case PLUGIN_GGC_END:
...@@ -483,7 +483,7 @@ invoke_plugin_callbacks (int event, void *gcc_data) ...@@ -483,7 +483,7 @@ invoke_plugin_callbacks (int event, void *gcc_data)
case PLUGIN_FINISH_TYPE: case PLUGIN_FINISH_TYPE:
case PLUGIN_START_UNIT: case PLUGIN_START_UNIT:
case PLUGIN_FINISH_UNIT: case PLUGIN_FINISH_UNIT:
case PLUGIN_CXX_CP_PRE_GENERICIZE: case PLUGIN_PRE_GENERICIZE:
case PLUGIN_ATTRIBUTES: case PLUGIN_ATTRIBUTES:
case PLUGIN_PRAGMAS: case PLUGIN_PRAGMAS:
case PLUGIN_FINISH: case PLUGIN_FINISH:
......
...@@ -27,8 +27,8 @@ DEFEVENT (PLUGIN_FINISH_TYPE) ...@@ -27,8 +27,8 @@ DEFEVENT (PLUGIN_FINISH_TYPE)
/* Useful for summary processing. */ /* Useful for summary processing. */
DEFEVENT (PLUGIN_FINISH_UNIT) DEFEVENT (PLUGIN_FINISH_UNIT)
/* Allows to see low level AST in C++ FE. */ /* Allows to see low level AST in C and C++ frontends. */
DEFEVENT (PLUGIN_CXX_CP_PRE_GENERICIZE) DEFEVENT (PLUGIN_PRE_GENERICIZE)
/* Called before GCC exits. */ /* Called before GCC exits. */
DEFEVENT (PLUGIN_FINISH) DEFEVENT (PLUGIN_FINISH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment