This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch][plugins] Check the gcc version
>ÂReally I think the way plugins are done are
> incorrect, we should produce a libbackend.so which then the plugins
> are linked to. ÂThis will allow plugin support for both Darwin and
> Windows easier and help with the versioning issue too.
The big versioning issue that we have is that the gcc API itself can
change all the time. Changes in tree.h are likely to break all
plugins. What we do with plugin-version.h is make it possible for
plugins to remember what gcc they were compiled for. Using a shared
library will not work since the library can change after the plugin
was build.
It would be nice to have a shared libgimple with all of the gimple
API, but that is a different and much bigger issue.
> Thanks,
> Andrew Pinski
>
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047