[plugins] --help and --version integration
Diego Novillo
dnovillo@google.com
Mon Apr 6 20:25:00 GMT 2009
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.
More information about the Gcc-patches
mailing list