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: [build, driver] RFC: Support compressed debug sections


"Joseph S. Myers" <joseph@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).

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


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