On Thu, 22 May 2014, Rainer Orth wrote:

> "Joseph S. Myers" <jos...@codesourcery.com> writes:
> 
> > On Thu, 22 May 2014, Rainer Orth wrote:
> >
> >>    * common.opt (compressed_debug_sections): New enum.
> >>    (gz, gz=): New options.
> >
> >>    * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
> >
> > Given that the options are completely handled via specs, why can't they 
> > just be Driver options (without Common) and so not mentioned in 
> > common_handle_option?
> 
> If I do this, -gz still gets passed to e.g. cc1, which errors out like
> this:
> 
> cc1: error: unrecognised debug output level "z"
> 
> It seems my way of handling this is clearer than doing this in opts.c
> (set_debug_level).

Thanks for the explanation.  The driver changes are OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to