This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: plugin event for C frontend trees


On Mon, Dec 21, 2009 at 10:02 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> There are still PLUGIN_CXX_CP_PRE_GENERICIZE left:
>
> doc/plugins.texi:  PLUGIN_CXX_CP_PRE_GENERICIZE, /* Allows to see low
> level AST in C++ FE.  */
> testsuite/g++.dg/plugin/attribute_plugin.c:  register_callback
> (plugin_name, PLUGIN_CXX_CP_PRE_GENERICIZE,
> testsuite/g++.dg/plugin/dumb_plugin.c:  register_callback
> (plugin_name, PLUGIN_CXX_CP_PRE_GENERICIZE,
>
>
> H.J.
>

Oops, patch below for these.  Mea culpa, this did show up in the
regression as two unresolved tests, which are fixed by this patch (I
was expecting a testcase failing to build to produce a louder error
message).

Brian

Index: gcc/doc/plugins.texi
===================================================================
--- gcc/doc/plugins.texi	(revision 155379)
+++ gcc/doc/plugins.texi	(working copy)
@@ -145,7 +145,7 @@ enum plugin_event
   PLUGIN_PASS_MANAGER_SETUP,    /* To hook into pass manager.  */
   PLUGIN_FINISH_TYPE,           /* After finishing parsing a type.  */
   PLUGIN_FINISH_UNIT,           /* Useful for summary processing.  */
-  PLUGIN_CXX_CP_PRE_GENERICIZE, /* Allows to see low level AST in C++ FE.  */
+  PLUGIN_PRE_GENERICIZE,        /* Allows to see low level AST in C
and C++ frontends.  */
   PLUGIN_FINISH,                /* Called before GCC exits.  */
   PLUGIN_INFO,                  /* Information about the plugin. */
   PLUGIN_GGC_START,		/* Called at start of GCC Garbage Collection. */
Index: gcc/testsuite/g++.dg/plugin/attribute_plugin.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/attribute_plugin.c	(revision 155379)
+++ gcc/testsuite/g++.dg/plugin/attribute_plugin.c	(working copy)
@@ -60,7 +60,7 @@ plugin_init (struct plugin_name_args *pl
              struct plugin_gcc_version *version)
 {
   const char *plugin_name = plugin_info->base_name;
-  register_callback (plugin_name, PLUGIN_CXX_CP_PRE_GENERICIZE,
+  register_callback (plugin_name, PLUGIN_PRE_GENERICIZE,
                      handle_pre_generic, NULL);

   register_callback (plugin_name, PLUGIN_ATTRIBUTES,
register_attributes, NULL);
Index: gcc/testsuite/g++.dg/plugin/dumb_plugin.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/dumb_plugin.c	(revision 155379)
+++ gcc/testsuite/g++.dg/plugin/dumb_plugin.c	(working copy)
@@ -130,7 +130,7 @@ plugin_init (struct plugin_name_args *pl

   register_callback (plugin_name, PLUGIN_FINISH_TYPE, handle_struct, NULL);

-  register_callback (plugin_name, PLUGIN_CXX_CP_PRE_GENERICIZE,
+  register_callback (plugin_name, PLUGIN_PRE_GENERICIZE,
                      handle_pre_generic, NULL);

   register_callback (plugin_name, PLUGIN_FINISH_UNIT,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]