This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [build, driver] RFC: Support compressed debug sections
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>
- Date: Fri, 26 Apr 2013 15:55:57 +0000
- Subject: Re: [build, driver] RFC: Support compressed debug sections
- References: <yddvc7tmhx9 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
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