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


Gerald Pfeifer wrote:
On Mon, 23 Feb 2009, Benjamin Smedberg wrote:
Building the plugin requires having the GCC sources, not just the plugin
sources. GCC sources don't normally come with distros, so you have to go
through fairly complicated hoops to get the GCC sources which match the
binaries installed on your system.

All distros I am aware of provide the very GCC sources they use to build their flavor of GCC, generally in easily accessible a manner. (This is the most straightforward way for them to honor the requirements of the GPL.)

And I would expect future distributions to provide a package for GCC, eg gcc-4.6 and another package to develop plugin for it, eg gcc-4.6-dev.


This is what is already happenning for other plugin-aware software. For example, the zsh shell is packaged as zsh for the compiled software and zsh-dev for the package providing the include and script files needed to compile plugins for the zsh shell.

Probably the impact for GCC plugin machinery is that:
* we should aim at being able to compile GCC plugins without the GCC source tree (so obviously having installed required header files elsewhere)
* we should define where the header files (etc... including scripts, ...) required for plugin compilation should go - probably in $(libexec)/...
* we should have isolated makefile targets to install these header files, and every other stuff (shell scripts, ...) required to compile GCC plugins


Regards.

--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


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