Skip to content

Commit

Permalink
Update to 11.3.Rel1
Browse files Browse the repository at this point in the history
  • Loading branch information
dereference23 committed Aug 20, 2022
1 parent 385317a commit 03bb4ab
Show file tree
Hide file tree
Showing 2,736 changed files with 47,563 additions and 37,420 deletions.
13 changes: 13 additions & 0 deletions 11.3.rel1-x86_64-aarch64-none-linux-gnu-manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
gmp_configure=--disable-maintainer-mode --disable-shared --prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools
mpfr_configure=--disable-maintainer-mode --disable-shared --prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools
mpc_configure=--disable-maintainer-mode --disable-shared --prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools
isl_configure=--disable-maintainer-mode --disable-shared --prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-gmp-prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools
binutils_configure=--enable-64-bit-bfd --enable-targets=arm-none-eabi,aarch64_be-none-linux-gnu,aarch64_be-none-elf,aarch64-none-linux-gnu,aarch64-none-linux-gnu_ilp32,aarch64-none-elf --target=aarch64-none-linux-gnu --with-bugurl="https://bugs.linaro.org/" --enable-gold --enable-initfini-array --enable-plugins --disable-doc --disable-gdb --disable-gdbtk --disable-nls --disable-tui --disable-werror --without-gdb --without-python --without-x --prefix= --with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-sysroot=/aarch64-none-linux-gnu/libc
gcc1_configure=--target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --without-headers --with-newlib --with-bugurl="https://bugs.linaro.org/" --without-cloog --without-isl --disable-shared --disable-threads --disable-libatomic --disable-libsanitizer --disable-libssp --disable-libgomp --disable-libmudflap --disable-libquadmath --enable-checking=yes --enable-languages=c --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpc=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419
gcc2_configure=--target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl="https://bugs.linaro.org/" --enable-shared --disable-libatomic --without-cloog --without-isl --disable-libssp --disable-libgomp --disable-libmudflap --disable-libquadmath --enable-checking=yes --enable-languages=c --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpc=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419
glibc_configure=--enable-shared --with-tls --disable-profile --disable-omitfp --disable-bounded --disable-sanity-checks --prefix=/usr --with-headers=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc/usr/include --includedir=/usr/include --with-pkgversion=Arm GNU Toolchain 11.3.Rel1 --build=x86_64-unknown-linux-gnu --host=aarch64-none-linux-gnu --disable-werror --enable-obsolete-rpc --disable-profile --without-gd --without-cvs --without-selinux
gcc3_configure=--target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl="https://bugs.linaro.org/" --enable-gnu-indirect-function --enable-shared --disable-libssp --disable-libmudflap --enable-checking=release --enable-languages=c,c++,fortran --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpc=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-isl=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419
gcc4_configure=--target=aarch64-none-linux-gnu --prefix= --with-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl="https://bugs.linaro.org/" --enable-shared --disable-libssp --disable-libmudflap --enable-checking=yes --enable-languages=c,c++,fortran --with-gmp=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-mpc=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-isl=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419
libexpat_configure=--prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --without-docbook --without-xmlwf
gdb_configure=--enable-64-bit-bfd --enable-targets=arm-none-eabi,aarch64_be-none-linux-gnu,aarch64_be-none-elf,aarch64-none-linux-gnu,aarch64-none-linux-gnu_ilp32,aarch64-none-elf --target=aarch64-none-linux-gnu --with-bugurl="https://bugs.linaro.org/" --enable-initfini-array --enable-plugins --enable-tui --disable-binutils --disable-sim --disable-as --disable-ld --disable-doc --disable-gdbtk --disable-nls --disable-werror --without-x --prefix= --with-build-sysroot=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-sysroot=/aarch64-none-linux-gnu/libc --with-mpfr --with-libmpfr-prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-libmpfr-type=static --with-libgmp-prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-libgmp-type=static --with-expat --with-libexpat-prefix=/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-linux-gnu/host-tools --with-libexpat-type=static --with-python=yes
gdbserver_configure= --target=aarch64-none-linux-gnu --host=aarch64-none-linux-gnu --program-prefix= --prefix=/usr
Binary file modified aarch64-none-linux-gnu/bin/ar
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/as
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/ld
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/ld.bfd
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/ld.gold
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/nm
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/objcopy
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/objdump
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/ranlib
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/readelf
Binary file not shown.
Binary file modified aarch64-none-linux-gnu/bin/strip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define _GLIBCXX_RELEASE 11

// The datestamp of the C++ library in compressed ISO date format.
#define __GLIBCXX__ 20220111
#define __GLIBCXX__ 20220712

// Macros for various attributes.
// _GLIBCXX_PURE
Expand Down Expand Up @@ -1092,6 +1092,9 @@ namespace std
/* Define if readlink is available in <unistd.h>. */
#define _GLIBCXX_HAVE_READLINK 1

/* Define to 1 if you have the `secure_getenv' function. */
/* #undef _GLIBCXX_HAVE_SECURE_GETENV */

/* Define to 1 if you have the `setenv' function. */
/* #undef _GLIBCXX_HAVE_SETENV */

Expand Down Expand Up @@ -1494,7 +1497,7 @@ namespace std

/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
#define _GLIBCXX_LT_OBJDIR ".libs/"

/* Name of package */
/* #undef _GLIBCXX_PACKAGE */
Expand Down Expand Up @@ -1533,7 +1536,7 @@ namespace std
/* #undef SIZEOF_VOID_P */

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
#define _GLIBCXX_STDC_HEADERS 1

/* Version number of package */
/* #undef _GLIBCXX_VERSION */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// TODO add const volatile overload

void
notify_one() const noexcept
notify_one() noexcept
{ _M_base.notify_one(); }

void
notify_all() const noexcept
notify_all() noexcept
{ _M_base.notify_all(); }
#endif // __cpp_lib_atomic_wait
};
Expand Down Expand Up @@ -320,6 +320,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s,
memory_order __f) noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__f));

return __atomic_compare_exchange(std::__addressof(_M_i),
std::__addressof(__e),
std::__addressof(__i),
Expand All @@ -330,6 +332,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s,
memory_order __f) volatile noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__f));

return __atomic_compare_exchange(std::__addressof(_M_i),
std::__addressof(__e),
std::__addressof(__i),
Expand All @@ -352,6 +356,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s,
memory_order __f) noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__f));

return __atomic_compare_exchange(std::__addressof(_M_i),
std::__addressof(__e),
std::__addressof(__i),
Expand All @@ -362,6 +368,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s,
memory_order __f) volatile noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__f));

return __atomic_compare_exchange(std::__addressof(_M_i),
std::__addressof(__e),
std::__addressof(__i),
Expand Down Expand Up @@ -391,11 +399,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// TODO add const volatile overload

void
notify_one() const noexcept
notify_one() noexcept
{ std::__atomic_notify_address(&_M_i, false); }

void
notify_all() const noexcept
notify_all() noexcept
{ std::__atomic_notify_address(&_M_i, true); }
#endif // __cpp_lib_atomic_wait

Expand Down Expand Up @@ -645,11 +653,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// TODO add const volatile overload

void
notify_one() const noexcept
notify_one() noexcept
{ _M_b.notify_one(); }

void
notify_all() const noexcept
notify_all() noexcept
{ _M_b.notify_all(); }
#endif // __cpp_lib_atomic_wait
__pointer_type
Expand Down Expand Up @@ -1228,9 +1236,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
atomic_flag_clear(volatile atomic_flag* __a) noexcept
{ atomic_flag_clear_explicit(__a, memory_order_seq_cst); }


// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 3220. P0558 broke conforming C++14 uses of atomic shared_ptr
template<typename _Tp>
using __atomic_val_t = typename atomic<_Tp>::value_type;
using __atomic_val_t = __type_identity_t<_Tp>;
template<typename _Tp>
using __atomic_diff_t = typename atomic<_Tp>::difference_type;

Expand Down Expand Up @@ -1421,12 +1430,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION

template<typename _Tp>
inline void
atomic_notify_one(const atomic<_Tp>* __a) noexcept
atomic_notify_one(atomic<_Tp>* __a) noexcept
{ __a->notify_one(); }

template<typename _Tp>
inline void
atomic_notify_all(const atomic<_Tp>* __a) noexcept
atomic_notify_all(atomic<_Tp>* __a) noexcept
{ __a->notify_all(); }
#endif // __cpp_lib_atomic_wait

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
[[nodiscard]]
constexpr _To
bit_cast(const _From& __from) noexcept
#ifdef __cpp_concepts
requires (sizeof(_To) == sizeof(_From))
&& __is_trivially_copyable(_To) && __is_trivially_copyable(_From)
#endif
{
return __builtin_bit_cast(_To, __from);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,13 +632,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
static _GLIBCXX20_CONSTEXPR void
construct(allocator_type&, _Up* __p, _Args&&... __args)
noexcept(std::is_nothrow_constructible<_Up, _Args...>::value)
{
#if __cplusplus <= 201703L
::new((void *)__p) _Up(std::forward<_Args>(__args)...);
#else
std::construct_at(__p, std::forward<_Args>(__args)...);
#endif
}
{ std::_Construct(__p, std::forward<_Args>(__args)...); }

/**
* @brief Destroy an object of type `_Up`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using propagate_on_container_move_assignment = true_type;

using is_always_equal
_GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::is_always_equal")
_GLIBCXX20_DEPRECATED_SUGGEST("std::allocator_traits::is_always_equal")
= true_type;

#if __cplusplus >= 202002L
Expand Down Expand Up @@ -146,7 +146,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using propagate_on_container_move_assignment = true_type;

using is_always_equal
_GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::is_always_equal")
_GLIBCXX20_DEPRECATED_SUGGEST("std::allocator_traits::is_always_equal")
= true_type;
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <bits/atomic_lockfree_defines.h>
#include <bits/move.h>

#if __cplusplus > 201703L
#if __cplusplus > 201703L && _GLIBCXX_HOSTED
#include <bits/atomic_wait.h>
#endif

Expand Down Expand Up @@ -121,6 +121,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
| __memory_order_modifier(__m & __memory_order_modifier_mask));
}

constexpr bool
__is_valid_cmpexch_failure_order(memory_order __m) noexcept
{
return (__m & __memory_order_mask) != memory_order_release
&& (__m & __memory_order_mask) != memory_order_acq_rel;
}

_GLIBCXX_ALWAYS_INLINE void
atomic_thread_fence(memory_order __m) noexcept
{ __atomic_thread_fence(int(__m)); }
Expand Down Expand Up @@ -245,13 +252,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// TODO add const volatile overload

_GLIBCXX_ALWAYS_INLINE void
notify_one() const noexcept
notify_one() noexcept
{ std::__atomic_notify_address(&_M_i, false); }

// TODO add const volatile overload

_GLIBCXX_ALWAYS_INLINE void
notify_all() const noexcept
notify_all() noexcept
{ std::__atomic_notify_address(&_M_i, true); }

// TODO add const volatile overload
Expand Down Expand Up @@ -511,13 +518,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_weak(__int_type& __i1, __int_type __i2,
memory_order __m1, memory_order __m2) noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;
__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1,
int(__m1), int(__m2));
Expand All @@ -528,13 +529,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
memory_order __m1,
memory_order __m2) volatile noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;
__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1,
int(__m1), int(__m2));
Expand All @@ -560,13 +555,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
compare_exchange_strong(__int_type& __i1, __int_type __i2,
memory_order __m1, memory_order __m2) noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;
__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0,
int(__m1), int(__m2));
Expand All @@ -577,14 +566,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
memory_order __m1,
memory_order __m2) volatile noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;

__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0,
int(__m1), int(__m2));
Expand Down Expand Up @@ -618,13 +600,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// TODO add const volatile overload

_GLIBCXX_ALWAYS_INLINE void
notify_one() const noexcept
notify_one() noexcept
{ std::__atomic_notify_address(&_M_i, false); }

// TODO add const volatile overload

_GLIBCXX_ALWAYS_INLINE void
notify_all() const noexcept
notify_all() noexcept
{ std::__atomic_notify_address(&_M_i, true); }

// TODO add const volatile overload
Expand Down Expand Up @@ -869,13 +851,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
memory_order __m1,
memory_order __m2) noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;
__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0,
int(__m1), int(__m2));
Expand All @@ -886,14 +862,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
memory_order __m1,
memory_order __m2) volatile noexcept
{
memory_order __b2 __attribute__ ((__unused__))
= __m2 & __memory_order_mask;
memory_order __b1 __attribute__ ((__unused__))
= __m1 & __memory_order_mask;

__glibcxx_assert(__b2 != memory_order_release);
__glibcxx_assert(__b2 != memory_order_acq_rel);
__glibcxx_assert(__b2 <= __b1);
__glibcxx_assert(__is_valid_cmpexch_failure_order(__m2));

return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0,
int(__m1), int(__m2));
Expand Down Expand Up @@ -996,6 +965,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Val<_Tp> __desired, memory_order __success,
memory_order __failure) noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__failure));

return __atomic_compare_exchange(__ptr, std::__addressof(__expected),
std::__addressof(__desired), true,
int(__success), int(__failure));
Expand All @@ -1007,6 +978,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Val<_Tp> __desired, memory_order __success,
memory_order __failure) noexcept
{
__glibcxx_assert(__is_valid_cmpexch_failure_order(__failure));

return __atomic_compare_exchange(__ptr, std::__addressof(__expected),
std::__addressof(__desired), false,
int(__success), int(__failure));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// (e.g. __ulock_wait())which is better than pthread_cond_clockwait
#endif // ! PLATFORM_TIMED_WAIT

#ifdef _GLIBCXX_HAS_GTHREADS
// Returns true if wait ended before timeout.
// _Clock must be either steady_clock or system_clock.
template<typename _Clock, typename _Dur>
Expand Down Expand Up @@ -194,6 +195,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return false;
}
}
#endif // _GLIBCXX_HAS_GTHREADS

struct __timed_waiter_pool : __waiter_pool_base
{
Expand Down Expand Up @@ -241,6 +243,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (_M_deadline <= __now)
return false;

// FIXME: this_thread::sleep_for not available #ifdef _GLIBCXX_NO_SLEEP

auto __elapsed = __now - _M_t0;
if (__elapsed > 128ms)
{
Expand Down
Loading

0 comments on commit 03bb4ab

Please sign in to comment.