* collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 8 Oct 2009 11:08:52 +0000 (11:08 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 8 Oct 2009 11:08:52 +0000 (11:08 +0000)
From-SVN: r152557

gcc/ChangeLog
gcc/collect2.c

index a26d6ddbc8b47b6082fa084673d6ae48987b4e90..12bebb0b1e4c66f55ef2685d5b13d24b6a3b55fd 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
+
 2009-10-08  Jan Hubicka  <jh@suse.cz>
 
        PR bootstrap/41620
index 01ef4317379ba877fe1da8f348b5e867ca024b43..03300f3c79bc6e665fcd08a027f562f631d8930e 100644 (file)
@@ -853,6 +853,8 @@ prefix_from_string (const char *p, struct path_prefix *pprefix)
   free (nstore);
 }
 
+#ifdef OBJECT_FORMAT_NONE
+
 /* Add an entry for the object file NAME to object file list LIST.
    New entries are added at the end of the list. The original pointer
    value of NAME is preserved, i.e., no string copy is performed.  */
@@ -871,6 +873,7 @@ add_lto_object (struct lto_object_list *list, const char *name)
 
   list->last = n;
 }
+#endif /* OBJECT_FORMAT_NONE */
 
 
 /* Perform a link-time recompilation and relink if any of the object