From 0fa4e351537fe6bf253e13e3c3e7b122cbe9468c Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 30 Mar 2011 18:21:25 +0000 Subject: Introduce -fno-debug-types-section flag. * common.opt (fdebug-types-section): New flag. * doc/invoke.texi: Document new -fno-debug-types-section flag. * dwarf2out.c (use_debug_types): New define. (struct die_struct): Mark die_id with GTY desc use_debug_types. (print_die): Guard output of type unit signatures using use_debug_types. (build_abbrev_table): Replace assert of dwarf_version >= 4 with assert on use_debug_types. (size_of_die): Likewise. (unmark_dies): Likewise. (value_format): Decide AT_ref_external form on use_debug_types. (output_die): Replace dwarf_version version check guard with use_debug_types where appropriate. (modified_type_die): Likewise. (gen_reference_type_die): Likewise. (dwarf2out_start_source_file): Likewise. (dwarf2out_end_source_file): Likewise. (prune_unused_types_walk_attribs): Likewise. (dwarf2out_finish): Likewise. From-SVN: r171742 --- gcc/doc/invoke.texi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc/doc/invoke.texi') diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 85bf2b4..928e322 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -312,7 +312,8 @@ Objective-C and Objective-C++ Dialects}. -fdump-final-insns=@var{file} @gol -fcompare-debug@r{[}=@var{opts}@r{]} -fcompare-debug-second @gol -feliminate-dwarf2-dups -feliminate-unused-debug-types @gol --feliminate-unused-debug-symbols -femit-class-debug-always @gol +-feliminate-unused-debug-symbols -femit-class-debug-always +-fdebug-types-section @gol -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report -fprofile-arcs @gol -frandom-seed=@var{string} -fsched-verbose=@var{n} @gol -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose @gol @@ -4585,6 +4586,15 @@ normally emits debugging information for classes because using this option will increase the size of debugging information by as much as a factor of two. +@item -fno-debug-types-section +@opindex fno-types-section +@opindex ftypes-section +By default when using Dwarf v4 or higher type DIEs will be put into +their own .debug_types section instead of making them part of the +.debug_info section. It is more efficient to put them in a separate +comdat sections since the linker will then be able to remove duplicates. +But not all dwarf consumers support .debug_types sections yet. + @item -gstabs+ @opindex gstabs+ Produce debugging information in stabs format (if that is supported), -- cgit v1.1