diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/doc/plugins.texi | 6 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/plugin/dumb_plugin.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/plugin/selfassign.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/one_time_plugin.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/selfassign.c | 2 |
7 files changed, 21 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 95a8b7040d0..20000c9157b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,6 @@ +2009-10-05 Sriraman Tallam <tmsriram@google.com> + + * doc/plugins.texi: Change plugin_pass to register_pass_info. 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net> Rafael Espindola <espindola@google.com> diff --git a/gcc/doc/plugins.texi b/gcc/doc/plugins.texi index bb32bccbf18..f784953b5f4 100644 --- a/gcc/doc/plugins.texi +++ b/gcc/doc/plugins.texi @@ -165,7 +165,7 @@ such as CFG or an IPA pass) and optimization plugins. Basic support for inserting new passes or replacing existing passes is provided. A plugin registers a new pass with GCC by calling @code{register_callback} with the @code{PLUGIN_PASS_MANAGER_SETUP} -event and a pointer to a @code{struct plugin_pass} object defined as follows +event and a pointer to a @code{struct register_pass_info} object defined as follows @smallexample enum pass_positioning_ops @@ -175,7 +175,7 @@ enum pass_positioning_ops PASS_POS_REPLACE // Replace the reference pass. @}; -struct plugin_pass +struct register_pass_info @{ struct opt_pass *pass; /* New pass provided by the plugin. */ const char *reference_pass_name; /* Name of the reference pass for hooking @@ -192,7 +192,7 @@ int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) @{ - struct plugin_pass pass_info; + struct register_pass_info pass_info; ... diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa6181dd091..1b21ec7b2f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2009-10-05 Sriraman Tallam <tmsriram@google.com> + + * gcc.dg/plugin/selfassign.c (plugin_init): Change plugin_pass to + register_pass_info. + * gcc.dg/plugin/one_time_plugin.c (plugin_init): Change + plugin_pass to register_pass_info. + * g++.dg/plugin/selfassign.c (plugin_init): Change plugin_pass to + register_pass_info. + * g++.dg/plugin/dumb_plugin.c (plugin_init): Change plugin_pass to + register_pass_info. + 2009-10-05 Richard Guenther <rguenther@suse.de> PR lto/41281 diff --git a/gcc/testsuite/g++.dg/plugin/dumb_plugin.c b/gcc/testsuite/g++.dg/plugin/dumb_plugin.c index 18f42c09dcb..8a160771b13 100644 --- a/gcc/testsuite/g++.dg/plugin/dumb_plugin.c +++ b/gcc/testsuite/g++.dg/plugin/dumb_plugin.c @@ -82,7 +82,7 @@ int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { - struct plugin_pass pass_info; + struct register_pass_info pass_info; const char *plugin_name = plugin_info->base_name; int argc = plugin_info->argc; struct plugin_argument *argv = plugin_info->argv; diff --git a/gcc/testsuite/g++.dg/plugin/selfassign.c b/gcc/testsuite/g++.dg/plugin/selfassign.c index 2be48156d6d..6dade300ff0 100644 --- a/gcc/testsuite/g++.dg/plugin/selfassign.c +++ b/gcc/testsuite/g++.dg/plugin/selfassign.c @@ -298,7 +298,7 @@ int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { - struct plugin_pass pass_info; + struct register_pass_info pass_info; const char *plugin_name = plugin_info->base_name; int argc = plugin_info->argc; struct plugin_argument *argv = plugin_info->argv; diff --git a/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c b/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c index 0c607bdc559..ee805174aea 100644 --- a/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c @@ -50,7 +50,7 @@ struct gimple_opt_pass one_pass = int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { - struct plugin_pass p; + struct register_pass_info p; p.pass = &one_pass.pass; p.reference_pass_name = "useless"; diff --git a/gcc/testsuite/gcc.dg/plugin/selfassign.c b/gcc/testsuite/gcc.dg/plugin/selfassign.c index 13f6be9c2c1..f804222826d 100644 --- a/gcc/testsuite/gcc.dg/plugin/selfassign.c +++ b/gcc/testsuite/gcc.dg/plugin/selfassign.c @@ -299,7 +299,7 @@ int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { - struct plugin_pass pass_info; + struct register_pass_info pass_info; const char *plugin_name = plugin_info->base_name; int argc = plugin_info->argc; struct plugin_argument *argv = plugin_info->argv; |