aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBrian Hackett <bhackett1024@gmail.com>2009-12-21 20:37:49 +0000
committerRafael Espindola <espindola@gcc.gnu.org>2009-12-21 20:37:49 +0000
commit1c701f96a5b1b4c647e5c128b8f4ad2184796a65 (patch)
tree0860091bd9a985e741872ce5c45ed4bcc5b21593 /gcc
parent78e36824107c5852df78560d7611c84d28fe9712 (diff)
downloadgcc-1c701f96a5b1b4c647e5c128b8f4ad2184796a65.zip
gcc-1c701f96a5b1b4c647e5c128b8f4ad2184796a65.tar.gz
gcc-1c701f96a5b1b4c647e5c128b8f4ad2184796a65.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c1
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/plugin.c4
-rw-r--r--gcc/plugin.def4
6 files changed, 16 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4dde7e4..5176a32 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 59179dd..49a530c 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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.
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7b752cf..ab9c0df 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 3c9649d..e89113a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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;
diff --git a/gcc/plugin.c b/gcc/plugin.c
index 78f99ca..25e5b95 100644
--- a/gcc/plugin.c
+++ b/gcc/plugin.c
@@ -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:
diff --git a/gcc/plugin.def b/gcc/plugin.def
index b4e541e..4a40c2c 100644
--- a/gcc/plugin.def
+++ b/gcc/plugin.def
@@ -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)