diff options
author | Mark Wielaard <mjw@redhat.com> | 2011-03-30 18:21:25 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2011-03-30 18:21:25 +0000 |
commit | 0fa4e351537fe6bf253e13e3c3e7b122cbe9468c (patch) | |
tree | 1c0cb39ea3f0a4677edeced3c3d087b63030d18d /gcc/doc/invoke.texi | |
parent | a63940ba494c733b84fae4821a71d2f4b8bec0b8 (diff) | |
download | gcc-0fa4e351537fe6bf253e13e3c3e7b122cbe9468c.zip gcc-0fa4e351537fe6bf253e13e3c3e7b122cbe9468c.tar.gz gcc-0fa4e351537fe6bf253e13e3c3e7b122cbe9468c.tar.bz2 |
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
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 12 |
1 files changed, 11 insertions, 1 deletions
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), |