This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] --help and --version integration
- From: Diego Novillo <dnovillo at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 6 Apr 2009 13:25:15 -0700
- Subject: Re: [plugins] --help and --version integration
- References: <38a0d8450904060449g19db6da4t7d8bef7191f3fde0@mail.gmail.com>
On Mon, Apr 6, 2009 at 04:49, Rafael Espindola <espindola@google.com> wrote:
> One thing I noticed that might help us: xgcc --help and --version will
> not print help or version info of subprocess. I think we can make it
> completely uniform by doing "--version -v" will call a subprocess just
> like "--help -v" does. With this all that is needed is a way for the
> plugin to pass the information to cc1.
>
> I proposed using a call to register_callback with something like
> PLUGIN_INFO plugin_event and a NULL callback. If a plugin doesn't
> provide version and help info during initialization, cc1 can just
> print "unknown version" and "no help for this plugin".
I think this sounds reasonable.
Diego.