This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: Add -fmerge-debug-strings option
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, amodra at bigpond dot net dot au
- Date: Fri, 23 Nov 2007 18:00:28 -0800
- Subject: Re: PATCH RFC: Add -fmerge-debug-strings option
- References: <m3bq9tlo2a.fsf@localhost.localdomain>
Ian Lance Taylor wrote:
> 2007-11-16 Ian Lance Taylor <iant@google.com>
>
> * common.opt (fmerge-debug-strings): New option.
> * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
> flag_merge_debug_strings rather than flag_merge_constants.
> * doc/invoke.texi (Option Summary): Mention
> -fmerge-debug-strings.
> (Debugging Options): Document -fmerge-debug-strings.
I agree with you and I think this patch should be checked in.
> +@item -fmerge-debug-strings
> +@opindex fmerge-debug-strings
> +Direct the linker to merge together strings which are identical in
> +different object files. This is not supported by all assemblers or
> +linker. This decreases the size of the debug information in the
"linkers"
> +output file at the cost of increasing link processing time. This is
> +on by default.
Do we have a convention about whether we document -ffoo or -fno-foo in
the manual? (I could imagine documenting -fno-foo for options on by
default, since -fno-foo is probably what users would want to know how to
use.)
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713