From: jakub Date: Thu, 12 Feb 2009 08:42:57 +0000 (+0000) Subject: * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1b3cc4976152a773a0d6c236c6bd405a6c3b63d;p=thirdparty%2Fgcc.git * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144121 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3016538b33aa..dab387bf17b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-02-12 Jakub Jelinek + + * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die + for -g3. + 2009-02-12 Ben Elliston * config/rs6000/rs6000.md (allocate_stack): Use _stack form of diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 669948bc7cef..1a5aea643a7c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -16699,7 +16699,9 @@ dwarf2out_finish (const char *filename) for (node = limbo_die_list; node; node = node->next) output_comp_unit (node->die, 0); - output_comp_unit (comp_unit_die, 0); + /* Output the main compilation unit if non-empty or if .debug_macinfo + has been emitted. */ + output_comp_unit (comp_unit_die, debug_info_level >= DINFO_LEVEL_VERBOSE); /* Output the abbreviation table. */ switch_to_section (debug_abbrev_section);