[Bug bootstrap/65675] make bootstrap fails when configured with --disable-hosted-libstdcxx

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 7 09:15:00 GMT 2015


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



More information about the Gcc-bugs mailing list