aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-02-12 09:42:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-02-12 09:42:57 +0100
commit61e9896759b948c46f8b3eb26083a7a06f8ca655 (patch)
tree0536d405cfb6454e1675490823d621a80c0c380a /gcc
parenta2a237b53455a16321860ee61efe55e7a971d80f (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3016538..dab387b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-12 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
+ for -g3.
+
2009-02-12 Ben Elliston <bje@au.ibm.com>
* config/rs6000/rs6000.md (allocate_stack): Use _stack form of
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);