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 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


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