This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]