dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
authorSterling Augustine <saugustine@google.com>
Wed, 7 Nov 2012 01:18:28 +0000 (01:18 +0000)
committerSterling Augustine <sterling@gcc.gnu.org>
Wed, 7 Nov 2012 01:18:28 +0000 (01:18 +0000)
2012-11-06  Sterling Augustine <saugustine@google.com>

* dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.

Co-Authored-By: Cary Coutant <ccoutant@google.com>
From-SVN: r193279

gcc/ChangeLog
gcc/dwarf2out.c

index 1283309..c73a7fd 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-06  Sterling Augustine <saugustine@google.com>
+
+       * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
+
 2012-11-06  Aldy Hernandez  <aldyh@redhat.com>
             Richard Henderson  <rth@redhat.com>
 
@@ -47,7 +51,7 @@
        (common_handle_option): Add case for OPT_gsplit_dwarf.
        * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
        (dw_val_struct): Add val_entry pointer.
-       * dwarf2out.c: (debug_skeleton_info_section,
+       * dwarf2out.c (debug_skeleton_info_section,
        debug_skeleton_abbrev_section, debug_addr_section,
        debug_skeleton_line_section, debug_str_offsets_section): New globals.
        (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
index 310f2dd..7dd1f24 100644 (file)
@@ -8829,6 +8829,7 @@ output_comdat_type_unit (comdat_type_node *node)
 
   unmark_dies (node->root_die);
 
+#if defined (OBJECT_FORMAT_ELF)
   if (dwarf_split_debug_info)
     {
       /* Produce the skeleton type-unit header.  */
@@ -8858,6 +8859,7 @@ output_comdat_type_unit (comdat_type_node *node)
 
       output_die (get_skeleton_type_unit ());
     }
+#endif
 }
 
 /* Return the DWARF2/3 pubname associated with a decl.  */