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: PATCH RFC: Add -fmerge-debug-strings option


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


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