[patch][plugins] Check the gcc version
Rafael Espindola
espindola@google.com
Thu Apr 16 14:48:00 GMT 2009
With my previous patches already in trunk, it is probably better to
add this patch there. Attached is a port to current trunk. The only
big difference is that it is missing the testsuite bits. Is it OK?
2009-04-14 Rafael Avila de Espindola <espindola@google.com>
* Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
REVISION_c.
(OBJS-common): Add plugin-version.o.
(plugin-version.o): New.
* gcc-plugin.h (plugin_gcc_version): New.
(plugin_default_version_check): New.
(plugin_init_func, plugin_init): Add version argument.
* plugin-version.c: New.
* plugin.c (str_plugin_gcc_version_name): New.
(try_init_one_plugin): Read plugin_gcc_version from the plugin and
pass it to the init function.
(plugin_default_version_check): New.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version.patch
Type: text/x-patch
Size: 6034 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090416/317cbe8a/attachment.bin>
More information about the Gcc-patches
mailing list