https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127914

--- Comment #1 from Steve Kargl <kargl at gcc dot gnu.org> ---
The following diff appears to allow bootstrap to continue
with FreeBSD's toolchain, 

diff --git a/include/libiberty.h b/include/libiberty.h
index e905f2cf190..ec5716535d0 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -222,7 +222,7 @@ extern int mkstemps(char *, int);

 /* Make memrchr available on systems that do not have it.  */
 #if !defined (__GNU_LIBRARY__ ) && !defined (__linux__) && \
-    !defined (HAVE_MEMRCHR)
+    !defined (HAVE_MEMRCHR) && !defined (__FreeBSD__)
 extern void *memrchr(const void *, int, size_t);
 #endif

Reply via email to