summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-12 08:42:57 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-12 08:42:57 +0000
commite1b3cc4976152a773a0d6c236c6bd405a6c3b63d (patch)
tree0536d405cfb6454e1675490823d621a80c0c380a /gcc/dwarf2out.c
parent0fbcd2ebddefe7ae7cac7756d551a5c10dc43af3 (diff)
downloadgcc-e1b3cc4976152a773a0d6c236c6bd405a6c3b63d.tar.gz
* 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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 669948bc7ce..1a5aea643a7 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);