summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-08 11:08:52 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-08 11:08:52 +0000
commit43ccfa3651f8648e30c6051bdf20d143ae115dc4 (patch)
treeec6ae52f7825619fd24f9c251626dd7cd6d4b132 /gcc/collect2.c
parente51ee2f19769b27f5073ea789573227a4771e1df (diff)
downloadgcc-43ccfa3651f8648e30c6051bdf20d143ae115dc4.tar.gz
* collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152557 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 01ef4317379..03300f3c79b 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