diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-02-12 09:42:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-02-12 09:42:57 +0100 |
commit | 61e9896759b948c46f8b3eb26083a7a06f8ca655 (patch) | |
tree | 0536d405cfb6454e1675490823d621a80c0c380a /gcc/dwarf2out.c | |
parent | a2a237b53455a16321860ee61efe55e7a971d80f (diff) | |
download | gcc-61e9896759b948c46f8b3eb26083a7a06f8ca655.zip gcc-61e9896759b948c46f8b3eb26083a7a06f8ca655.tar.gz gcc-61e9896759b948c46f8b3eb26083a7a06f8ca655.tar.bz2 |
dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3.
* dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
for -g3.
From-SVN: r144121
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 669948b..1a5aea6 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); |