This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] [patch] Initial implementation of GCC plugin support
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Le-Chun Wu <lcwu at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>, Taras Glek <tglek at mozilla dot com>, Grigori Fursin <grigori dot fursin at inria dot fr>, Basile STARYNKEVITCH <basile at starynkevitch dot net>, Zbigniew Chamski <zbigniew dot chamski at gmail dot com>, Sean Callanan <spyffe at cs dot sunysb dot edu>, Cupertino Miranda <cupertinomiranda at gmail dot com>
- Date: Fri, 20 Feb 2009 22:53:54 +0000 (UTC)
- Subject: Re: [plugins] [patch] Initial implementation of GCC plugin support
- References: <82091ad70902201351y79d58552nf90b2359d8b40e0a@mail.gmail.com>
On Fri, 20 Feb 2009, Le-Chun Wu wrote:
> * c.opt: Add -fplugin= and -fplugin-arg-.
> * c-opts.c (c_common_handle_option): Handle OPT_fplugin_ and
> OPT_fplugin_arg_.
Plugin options should not be specific to C-family languages; this should
be done in language-independent files instead.
> * Makefile.in: Add libs needed for plugin support. Also add plugin.o.
You'll need to allow plugins to be disabled at configure time and make the
configure scripts control the libraries / link options used for plugin
support. (This first patch is for ELF hosts, which is fine, but you need
to make sure plugins get disabled by default for non-ELF hosts until
someone contributes support for them to avoid breaking such hosts.)
--
Joseph S. Myers
joseph@codesourcery.com