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: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>
- Date: Thu, 22 May 2014 18:18:59 +0200
- Subject: Re: [build, driver] RFC: Support compressed debug sections
- Authentication-results: sourceware.org; auth=none
- References: <yddvc7tmhx9 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <Pine dot LNX dot 4 dot 64 dot 1304261553200 dot 27966 at digraph dot polyomino dot org dot uk> <yddd2tcazm5 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <Pine dot LNX dot 4 dot 64 dot 1305032000020 dot 30366 at digraph dot polyomino dot org dot uk> <yddfvy2l9xa dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <Pine dot LNX dot 4 dot 64 dot 1305051411440 dot 16386 at digraph dot polyomino dot org dot uk> <yddtx8if35c dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <Pine dot LNX dot 4 dot 64 dot 1405221547120 dot 11868 at digraph dot polyomino dot org dot uk>
"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