diff options
author | Basile Starynkevitch <bstarynk@gcc.gnu.org> | 2009-05-31 14:59:41 +0000 |
---|---|---|
committer | Basile Starynkevitch <bstarynk@gcc.gnu.org> | 2009-05-31 14:59:41 +0000 |
commit | 97fc23aeaf0d5466cae32f25497ced91a4e13f1a (patch) | |
tree | fb0f865ebfd45c85456aa58ff10afe9ff29d7cce | |
parent | 405e8b492d09dc293d7e9b0e6292e506c5f31344 (diff) | |
download | gcc-97fc23aeaf0d5466cae32f25497ced91a4e13f1a.zip gcc-97fc23aeaf0d5466cae32f25497ced91a4e13f1a.tar.gz gcc-97fc23aeaf0d5466cae32f25497ced91a4e13f1a.tar.bz2 |
ggcplug.c: moved comment.
2009-05-31 Basile Starynkevitch <basile@starynkevitch.net>
* gcc/testsuite/gcc.dg/plugin/ggcplug.c: moved comment.
(plugin_init): fixed typo, declared i, returned 0 at end.
[also moved an entry from gcc/ChangeLog to gcc/testsuite/ChangeLog]
From-SVN: r148015
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 17 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/ggcplug.c | 17 |
3 files changed, 25 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69d0ea2..40dca07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -660,10 +660,6 @@ (Interacting with the GCC Garbage Collector): Added new section. (Giving information about a plugin): Added new section for PLUGIN_INFO. - * testsuite/gcc.dg/plugin/plugin.exp: Added ggcplug.c test plugin - with ggcplug-test-1.c for testing PLUGIN_GGC_MARKING etc... - * testsuite/gcc.dg/plugin/ggcplug-test-1.c: Added new file. - * testsuite/gcc.dg/plugin/ggcplug.c: Added new file. * ggc.h (ggc_register_root_tab): Added declaration. * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING) (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c7fc2b..10af18e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ + +2009-05-31 Basile Starynkevitch <basile@starynkevitch.net> + + * gcc.dg/plugin/ggcplug.c: moved comment. + (plugin_init): fixed typo, declared i, returned 0 at end. + 2009-05-31 Ira Rosen <irar@il.ibm.com> PR testsuite/40244 @@ -132,9 +138,9 @@ patterns to reflect frontend changes. * gfortran.dg/vector_subscript_4.f90: Likewise. -2009-05-27 Olivier Hainque <hainque@adacore.com> +2009-05-27 Olivier Hainque <hainque@adacore.com> Eric Botcazou <botcazou@adacore.com> - + * gcc.c-torture/execute/align-nest.c: New testcase. * gnat.dg/misaligned_nest.adb: New testcase. @@ -160,6 +166,13 @@ * gfortran.dg/c_f_pointer_shape_tests_4.f03: New file. * gfortran.dg/c_f_pointer_shape_tests_4_driver.c: New file. +2009-05-26 Basile Starynkevitch <basile@starynkevitch.net> + + * testsuite/gcc.dg/plugin/plugin.exp: Added ggcplug.c test plugin + with ggcplug-test-1.c for testing PLUGIN_GGC_MARKING etc... + * testsuite/gcc.dg/plugin/ggcplug-test-1.c: Added new file. + * testsuite/gcc.dg/plugin/ggcplug.c: Added new file. + 2009-05-26 Tobias Burnus <burnus@net-b.de> PR fortran/40246 diff --git a/gcc/testsuite/gcc.dg/plugin/ggcplug.c b/gcc/testsuite/gcc.dg/plugin/ggcplug.c index 136404a..f90e77b 100644 --- a/gcc/testsuite/gcc.dg/plugin/ggcplug.c +++ b/gcc/testsuite/gcc.dg/plugin/ggcplug.c @@ -14,11 +14,6 @@ #include "gcc-plugin.h" -/* The initialization routine exposed to and called by GCC. The spec of this - function is defined in gcc/gcc-plugin.h. - - Note that this function needs to be named exactly "plugin_init". */ - /* our callback is the same for all PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END events; it just increments the @@ -35,12 +30,18 @@ static const struct ggc_root_tab our_xtratab[] = { LAST_GGC_ROOT_TAB }; + +/* The initialization routine exposed to and called by GCC. The spec of this + function is defined in gcc/gcc-plugin.h. + + Note that this function needs to be named exactly "plugin_init". */ int -plugin_init ((struct plugin_name_args *plugin_info, +plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version) { const char *plugin_name = plugin_info->base_name; int argc = plugin_info->argc; + int i = 0; struct plugin_argument *argv = plugin_info->argv; if (!plugin_default_version_check (version, version)) return 1; @@ -97,7 +98,9 @@ plugin_init ((struct plugin_name_args *plugin_info, (void *) our_xtratab); } } -} + /* plugin initialization succeeded */ + return 0; + } static void increment_callback (void *gcc_data, void *user_data) |