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: [plugins] [patch] Initial implementation of GCC plugin support


On Sat, 21 Feb 2009, Basile STARYNKEVITCH wrote:

> One could also imagine that GCC plugins could define a
>   const char gcc_version_expected_by_plugin[]="4.4.0";
> and some additional code just after the dlopen to warn against plugin
> incompatibility. This could be implemented later (but I definitely believe it
> is very useful).

It should be the full version string (including the date, for GCC trunk), 
and the target triplet, and maybe the GCC configure options as well, and a 
fatal_error (or an error that causes no code from the plugin to be 
executed) not a warning.  I consider this a prerequisite for merging 
plugin support to trunk, but not for initial development on a branch.

(Plugins would not define the variable directly; GCC would provide some 
build support for them to use that would define it automatically, as well 
as dealing with e.g. finding GCC's headers.)

-- 
Joseph S. Myers
joseph@codesourcery.com


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