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


On Thu, 11 Apr 2013, Rainer Orth wrote:

> +gz=
> +Common Driver JoinedOrMissing
> +-gz=<format>	Generate compressed debug sections in format <format>

Although handled entirely in specs, I think it's best to use the Enum .opt 
facility to list the valid arguments to this option, so the option 
handling machinery can properly detect invalid arguments.  (And, since an 
empty argument isn't meaningful, use Joined rather than JoinedOrMissing.)

The integer values assigned to each valid argument string are of course 
arbitrary since nothing will use them.

> +@item -gz@r{[}=@var{type}@r{]}
> +@opindex gz
> +Produce compressed debug sections in DWARF format (if that is
> +supported).  If @var{type} is not given, the default type depends on the
> +capabilities of the assembler and linker used.  @var{type} may be one of
> +@option{none} (don't compress debug sections), @option{zlib} (use zlib
> +compression in ELF gABI format), or @option{zlib-gnu} (use zlib
> +compression in tradition GNU format).

"traditional".

-- 
Joseph S. Myers
joseph@codesourcery.com


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