]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3.
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Feb 2009 08:42:57 +0000 (09:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Feb 2009 08:42:57 +0000 (09:42 +0100)
* dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
for -g3.

From-SVN: r144121

gcc/ChangeLog
gcc/dwarf2out.c

index 3016538b33aa43d5913c57e3ea6c306b3aba8871..dab387bf17b64da7c9a8d9ee76fc70139373c294 100644 (file)
@@ -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
index 669948bc7cefc032e9177907b88629ee377ecd51..1a5aea643a7ce4ddb08c03ec179ce87e9456ce4d 100644 (file)
@@ -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);