From: Rainer Orth Date: Thu, 8 Oct 2009 11:08:52 +0000 (+0000) Subject: * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE. X-Git-Tag: releases/gcc-4.5.0~3039 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d72ff618d3477947f78c058e1d9e8249ddb9015b;p=thirdparty%2Fgcc.git * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE. From-SVN: r152557 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a26d6ddbc8b4..12bebb0b1e4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-10-08 Rainer Orth + + * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE. + 2009-10-08 Jan Hubicka PR bootstrap/41620 diff --git a/gcc/collect2.c b/gcc/collect2.c index 01ef4317379b..03300f3c79bc 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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