* object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
authorCary Coutant <ccoutant@google.com>
Thu, 1 Mar 2012 07:27:38 +0000 (07:27 +0000)
committerCary Coutant <ccoutant@google.com>
Thu, 1 Mar 2012 07:27:38 +0000 (07:27 +0000)
gold/ChangeLog
gold/object.cc

index 08a69c0d53a991f16f5715ea4bcc06c08aabeea0..df015ac3e89993f5b398700ff238570d6f02b867 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-29  Cary Coutant  <ccoutant@google.com>
+
+       * object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
+
 2012-02-29  Cary Coutant  <ccoutant@google.com>
 
        * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
index f30354e87305e108f8def9fb9855140d23e13c6d..2b4fe0227917fd77403466a9e76a657c920e2f57 100644 (file)
@@ -550,6 +550,8 @@ Sized_relobj_file<size, big_endian>::find_eh_frame(
   return false;
 }
 
+#ifdef ENABLE_THREADS
+
 // Return TRUE if this is a section whose contents will be needed in the
 // Add_symbols task.
 
@@ -564,6 +566,8 @@ need_decompressed_section(const char* name)
   return false;
 }
 
+#endif
+
 // Build a table for any compressed debug sections, mapping each section index
 // to the uncompressed size and (if needed) the decompressed contents.