This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/65675] make bootstrap fails when configured with --disable-hosted-libstdcxx
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Apr 2015 09:15:50 +0000
- Subject: [Bug bootstrap/65675] make bootstrap fails when configured with --disable-hosted-libstdcxx
- Auto-submitted: auto-generated
- References: <bug-65675-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65675
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It doesn't allow bootstrapping without a hosted runtime, but we probably want
this patch in libstdc++ anyway:
--- a/libstdc++-v3/include/bits/stl_algo.h
+++ b/libstdc++-v3/include/bits/stl_algo.h
@@ -4420,6 +4420,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
std::__iterator_category(__result));
}
+#if _GLIBCXX_HOSTED
/**
* @brief Randomly shuffle the elements of a sequence.
* @ingroup mutating_algorithms
@@ -4450,6 +4451,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
std::iter_swap(__i, __j);
}
}
+#endif
/**
* @brief Shuffle the elements of a sequence using a random number