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] --help and --version integration


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.


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