Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package llvm16 for openSUSE:Factory checked 
in at 2023-04-08 17:38:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm16 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm16.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm16"

Sat Apr  8 17:38:58 2023 rev:2 rq:1077796 version:16.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm16/llvm16.changes    2023-03-28 
17:48:50.294822270 +0200
+++ /work/SRC/openSUSE:Factory/.llvm16.new.19717/llvm16.changes 2023-04-08 
17:39:12.158093765 +0200
@@ -1,0 +2,8 @@
+Thu Apr  6 20:48:07 UTC 2023 - Aaron Puchert <[email protected]>
+
+- Update to version 16.0.1.
+  * This release contains bug-fixes for the LLVM 16.0.0 release.
+    This release is API and ABI compatible with 16.0.0.
+- Rebase llvm-do-not-install-static-libraries.patch.
+
+-------------------------------------------------------------------

Old:
----
  clang-16.0.0.src.tar.xz
  clang-16.0.0.src.tar.xz.sig
  clang-docs-16.0.0.src.tar.xz
  clang-tools-extra-16.0.0.src.tar.xz
  clang-tools-extra-16.0.0.src.tar.xz.sig
  cmake-16.0.0.src.tar.xz
  cmake-16.0.0.src.tar.xz.sig
  compiler-rt-16.0.0.src.tar.xz
  compiler-rt-16.0.0.src.tar.xz.sig
  libcxx-16.0.0.src.tar.xz
  libcxx-16.0.0.src.tar.xz.sig
  libcxxabi-16.0.0.src.tar.xz
  libcxxabi-16.0.0.src.tar.xz.sig
  lld-16.0.0.src.tar.xz
  lld-16.0.0.src.tar.xz.sig
  lldb-16.0.0.src.tar.xz
  lldb-16.0.0.src.tar.xz.sig
  llvm-16.0.0.src.tar.xz
  llvm-16.0.0.src.tar.xz.sig
  llvm-docs-16.0.0.src.tar.xz
  openmp-16.0.0.src.tar.xz
  openmp-16.0.0.src.tar.xz.sig
  polly-16.0.0.src.tar.xz
  polly-16.0.0.src.tar.xz.sig
  third-party-16.0.0.src.tar.xz
  third-party-16.0.0.src.tar.xz.sig

New:
----
  clang-16.0.1.src.tar.xz
  clang-16.0.1.src.tar.xz.sig
  clang-docs-16.0.1.src.tar.xz
  clang-tools-extra-16.0.1.src.tar.xz
  clang-tools-extra-16.0.1.src.tar.xz.sig
  cmake-16.0.1.src.tar.xz
  cmake-16.0.1.src.tar.xz.sig
  compiler-rt-16.0.1.src.tar.xz
  compiler-rt-16.0.1.src.tar.xz.sig
  libcxx-16.0.1.src.tar.xz
  libcxx-16.0.1.src.tar.xz.sig
  libcxxabi-16.0.1.src.tar.xz
  libcxxabi-16.0.1.src.tar.xz.sig
  lld-16.0.1.src.tar.xz
  lld-16.0.1.src.tar.xz.sig
  lldb-16.0.1.src.tar.xz
  lldb-16.0.1.src.tar.xz.sig
  llvm-16.0.1.src.tar.xz
  llvm-16.0.1.src.tar.xz.sig
  llvm-docs-16.0.1.src.tar.xz
  openmp-16.0.1.src.tar.xz
  openmp-16.0.1.src.tar.xz.sig
  polly-16.0.1.src.tar.xz
  polly-16.0.1.src.tar.xz.sig
  third-party-16.0.1.src.tar.xz
  third-party-16.0.1.src.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm16.spec ++++++
--- /var/tmp/diff_new_pack.IBcGO7/_old  2023-04-08 17:39:15.238111447 +0200
+++ /var/tmp/diff_new_pack.IBcGO7/_new  2023-04-08 17:39:15.242111470 +0200
@@ -16,14 +16,14 @@
 #
 
 
-%define _relver 16.0.0
+%define _relver 16.0.1
 %define _version %_relver%{?_rc:rc%_rc}
 %define _tagver %_relver%{?_rc:-rc%_rc}
 %define _minor  16.0
 %define _sonum  16
 %define _itsme16 1
 # Integer version used by update-alternatives
-%define _uaver  1600
+%define _uaver  1601
 %define _soclang 13
 %define _socxx  1
 

++++++ clang-16.0.0.src.tar.xz -> clang-16.0.1.src.tar.xz ++++++
/work/SRC/openSUSE:Factory/llvm16/clang-16.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm16.new.19717/clang-16.0.1.src.tar.xz differ: 
char 27, line 1

++++++ clang-docs-16.0.0.src.tar.xz -> clang-docs-16.0.1.src.tar.xz ++++++
++++ 2614 lines of diff (skipped)

++++++ clang-tools-extra-16.0.0.src.tar.xz -> 
clang-tools-extra-16.0.1.src.tar.xz ++++++

++++++ cmake-16.0.0.src.tar.xz -> cmake-16.0.1.src.tar.xz ++++++

++++++ compiler-rt-16.0.0.src.tar.xz -> compiler-rt-16.0.1.src.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/compiler-rt-16.0.0.src/lib/sanitizer_common/sanitizer_linux_libcdep.cpp 
new/compiler-rt-16.0.1.src/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
--- old/compiler-rt-16.0.0.src/lib/sanitizer_common/sanitizer_linux_libcdep.cpp 
2023-03-17 13:26:07.000000000 +0100
+++ new/compiler-rt-16.0.1.src/lib/sanitizer_common/sanitizer_linux_libcdep.cpp 
2023-04-05 05:36:38.000000000 +0200
@@ -583,6 +583,7 @@
       *addr = (uptr)tcb->tcb_dtv[1];
     }
   }
+#else
 #error "Unknown OS"
 #endif
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/compiler-rt-16.0.0.src/lib/sanitizer_common/sanitizer_symbolizer_win.cpp 
new/compiler-rt-16.0.1.src/lib/sanitizer_common/sanitizer_symbolizer_win.cpp
--- 
old/compiler-rt-16.0.0.src/lib/sanitizer_common/sanitizer_symbolizer_win.cpp    
    2023-03-17 13:26:07.000000000 +0100
+++ 
new/compiler-rt-16.0.1.src/lib/sanitizer_common/sanitizer_symbolizer_win.cpp    
    2023-04-05 05:36:38.000000000 +0200
@@ -231,8 +231,6 @@
     // Check that tool command lines are simple and that complete escaping is
     // unnecessary.
     CHECK(!internal_strchr(arg, '"') && "quotes in args unsupported");
-    CHECK(!internal_strstr(arg, "\\\\") &&
-          "double backslashes in args unsupported");
     CHECK(arglen > 0 && arg[arglen - 1] != '\\' &&
           "args ending in backslash and empty args unsupported");
     command_line.append("\"%s\" ", arg);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/compiler-rt-16.0.0.src/test/asan/TestCases/Windows/report_after_syminitialize.cpp
 
new/compiler-rt-16.0.1.src/test/asan/TestCases/Windows/report_after_syminitialize.cpp
--- 
old/compiler-rt-16.0.0.src/test/asan/TestCases/Windows/report_after_syminitialize.cpp
       2023-03-17 13:26:07.000000000 +0100
+++ 
new/compiler-rt-16.0.1.src/test/asan/TestCases/Windows/report_after_syminitialize.cpp
       2023-04-05 05:36:38.000000000 +0200
@@ -1,5 +1,5 @@
 // RUN: %clangxx_asan -O0 %s -o %t
-// RUN: %env_asan_opts=external_symbolizer_path=asdf not %run %t 2>&1 | 
FileCheck %s
+// RUN: %env_asan_opts=external_symbolizer_path=non-existent\\\\asdf not %run 
%t 2>&1 | FileCheck %s
 
 #include <windows.h>
 #include <dbghelp.h>

++++++ libcxx-16.0.0.src.tar.xz -> libcxx-16.0.1.src.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/docs/ReleaseNotes.rst 
new/libcxx-16.0.1.src/docs/ReleaseNotes.rst
--- old/libcxx-16.0.0.src/docs/ReleaseNotes.rst 2023-03-17 13:26:07.000000000 
+0100
+++ new/libcxx-16.0.1.src/docs/ReleaseNotes.rst 2023-04-05 05:36:38.000000000 
+0200
@@ -90,7 +90,6 @@
   now provided when implementations in the global namespace are provided by
   the C library.
 - Implemented ``<memory_resource>`` header from C++17
-- `D122780 <https://reviews.llvm.org/D122780>`_ Improved the performance of 
std::sort
 - The ``ranges`` versions of ``copy``, ``move``, ``copy_backward`` and 
``move_backward`` are now also optimized for
   ``std::deque<>::iterator``, which can lead to up to 20x performance 
improvements on certain algorithms.
 - The ``std`` and ``ranges`` versions of ``copy``, ``move``, ``copy_backward`` 
and ``move_backward`` are now also
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/include/__algorithm/sort.h 
new/libcxx-16.0.1.src/include/__algorithm/sort.h
--- old/libcxx-16.0.0.src/include/__algorithm/sort.h    2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/__algorithm/sort.h    2023-04-05 
05:36:38.000000000 +0200
@@ -11,15 +11,10 @@
 
 #include <__algorithm/comp.h>
 #include <__algorithm/comp_ref_type.h>
-#include <__algorithm/iter_swap.h>
 #include <__algorithm/iterator_operations.h>
 #include <__algorithm/min_element.h>
 #include <__algorithm/partial_sort.h>
 #include <__algorithm/unwrap_iter.h>
-#include <__assert>
-#include <__bit/blsr.h>
-#include <__bit/countl.h>
-#include <__bit/countr.h>
 #include <__config>
 #include <__debug>
 #include <__debug_utils/randomize_range.h>
@@ -28,10 +23,11 @@
 #include <__iterator/iterator_traits.h>
 #include <__memory/destruct_n.h>
 #include <__memory/unique_ptr.h>
-#include <__type_traits/conditional.h>
 #include <__type_traits/is_arithmetic.h>
+#include <__type_traits/is_trivially_copy_assignable.h>
+#include <__type_traits/is_trivially_copy_constructible.h>
 #include <__utility/move.h>
-#include <__utility/pair.h>
+#include <bit>
 #include <climits>
 #include <cstdint>
 
@@ -132,7 +128,8 @@
 _LIBCPP_HIDE_FROM_ABI
 unsigned __sort4(_ForwardIterator __x1, _ForwardIterator __x2, 
_ForwardIterator __x3, _ForwardIterator __x4,
                  _Compare __c) {
-  using _Ops   = _IterOps<_AlgPolicy>;
+  using _Ops = _IterOps<_AlgPolicy>;
+
   unsigned __r = std::__sort3<_AlgPolicy, _Compare>(__x1, __x2, __x3, __c);
   if (__c(*__x4, *__x3)) {
     _Ops::iter_swap(__x3, __x4);
@@ -187,7 +184,7 @@
     _Compare __c) {
   using _WrappedComp = typename _WrapAlgPolicy<_AlgPolicy, _Compare>::type;
   _WrappedComp __wrapped_comp(__c);
-  return std::__sort5<_WrappedComp, _ForwardIterator>(
+  return std::__sort5<_WrappedComp>(
       std::move(__x1), std::move(__x2), std::move(__x3), std::move(__x4), 
std::move(__x5), __wrapped_comp);
 }
 
@@ -212,13 +209,6 @@
     integral_constant<bool, __is_cpp17_contiguous_iterator<_Iter>::value && 
sizeof(_Tp) <= sizeof(void*) &&
                                 is_arithmetic<_Tp>::value && 
__is_simple_comparator<_Compare>::value>;
 
-namespace __detail {
-
-// Size in bits for the bitset in use.
-enum { __block_size = sizeof(uint64_t) * 8 };
-
-} // namespace __detail
-
 // Ensures that __c(*__x, *__y) is true by swapping *__x and *__y if necessary.
 template <class _Compare, class _RandomAccessIterator>
 inline _LIBCPP_HIDE_FROM_ABI void __cond_swap(_RandomAccessIterator __x, 
_RandomAccessIterator __y, _Compare __c) {
@@ -278,15 +268,10 @@
   std::__sort4<_AlgPolicy, _Compare>(__x1, __x2, __x3, __x4, __c);
 }
 
-template <class _AlgPolicy, class _Compare, class _RandomAccessIterator>
+template <class, class _Compare, class _RandomAccessIterator>
 inline _LIBCPP_HIDE_FROM_ABI __enable_if_t<__use_branchless_sort<_Compare, 
_RandomAccessIterator>::value, void>
-__sort5_maybe_branchless(
-    _RandomAccessIterator __x1,
-    _RandomAccessIterator __x2,
-    _RandomAccessIterator __x3,
-    _RandomAccessIterator __x4,
-    _RandomAccessIterator __x5,
-    _Compare __c) {
+__sort5_maybe_branchless(_RandomAccessIterator __x1, _RandomAccessIterator 
__x2, _RandomAccessIterator __x3,
+                         _RandomAccessIterator __x4, _RandomAccessIterator 
__x5, _Compare __c) {
   std::__cond_swap<_Compare>(__x1, __x2, __c);
   std::__cond_swap<_Compare>(__x4, __x5, __c);
   std::__partially_sorted_swap<_Compare>(__x3, __x4, __x5, __c);
@@ -315,48 +300,34 @@
   }
 }
 
-// Sort the iterator range [__first, __last) using the comparator __comp using
-// the insertion sort algorithm.
 template <class _AlgPolicy, class _Compare, class _BidirectionalIterator>
 _LIBCPP_HIDE_FROM_ABI
 void __insertion_sort(_BidirectionalIterator __first, _BidirectionalIterator 
__last, _Compare __comp) {
   using _Ops = _IterOps<_AlgPolicy>;
 
   typedef typename iterator_traits<_BidirectionalIterator>::value_type 
value_type;
-  if (__first == __last)
-    return;
-  _BidirectionalIterator __i = __first;
-  for (++__i; __i != __last; ++__i) {
-    _BidirectionalIterator __j = __i;
-    --__j;
-    if (__comp(*__i, *__j)) {
-      value_type __t(_Ops::__iter_move(__i));
-      _BidirectionalIterator __k = __j;
-      __j                        = __i;
-      do {
+  if (__first != __last) {
+    _BidirectionalIterator __i = __first;
+    for (++__i; __i != __last; ++__i) {
+      _BidirectionalIterator __j = __i;
+      value_type __t(_Ops::__iter_move(__j));
+      for (_BidirectionalIterator __k = __i; __k != __first && __comp(__t, 
*--__k); --__j)
         *__j = _Ops::__iter_move(__k);
-        __j  = __k;
-      } while (__j != __first && __comp(__t, *--__k));
       *__j = std::move(__t);
     }
   }
 }
 
-// Sort the iterator range [__first, __last) using the comparator __comp using
-// the insertion sort algorithm.  Insertion sort has two loops, outer and 
inner.
-// The implementation below has not bounds check (unguarded) for the inner 
loop.
-// Assumes that there is an element in the position (__first - 1) and that each
-// element in the input range is greater or equal to the element at __first - 
1.
 template <class _AlgPolicy, class _Compare, class _RandomAccessIterator>
-_LIBCPP_HIDE_FROM_ABI void
-__insertion_sort_unguarded(_RandomAccessIterator __first, 
_RandomAccessIterator __last, _Compare __comp) {
+_LIBCPP_HIDE_FROM_ABI
+void __insertion_sort_3(_RandomAccessIterator __first, _RandomAccessIterator 
__last, _Compare __comp) {
   using _Ops = _IterOps<_AlgPolicy>;
+
   typedef typename iterator_traits<_RandomAccessIterator>::difference_type 
difference_type;
   typedef typename iterator_traits<_RandomAccessIterator>::value_type 
value_type;
-  if (__first == __last)
-    return;
-  for (_RandomAccessIterator __i = __first + difference_type(1); __i != 
__last; ++__i) {
-    _RandomAccessIterator __j = __i - difference_type(1);
+  _RandomAccessIterator __j = __first + difference_type(2);
+  std::__sort3_maybe_branchless<_AlgPolicy, _Compare>(__first, __first + 
difference_type(1), __j, __comp);
+  for (_RandomAccessIterator __i = __j + difference_type(1); __i != __last; 
++__i) {
     if (__comp(*__i, *__j)) {
       value_type __t(_Ops::__iter_move(__i));
       _RandomAccessIterator __k = __j;
@@ -364,9 +335,10 @@
       do {
         *__j = _Ops::__iter_move(__k);
         __j = __k;
-      } while (__comp(__t, *--__k)); // No need for bounds check due to the 
assumption stated above.
+      } while (__j != __first && __comp(__t, *--__k));
       *__j = std::move(__t);
     }
+    __j = __i;
   }
 }
 
@@ -387,7 +359,7 @@
     return true;
   case 2:
     if (__comp(*--__last, *__first))
-      _Ops::iter_swap(__first, __last);
+      _IterOps<_AlgPolicy>::iter_swap(__first, __last);
     return true;
   case 3:
     std::__sort3_maybe_branchless<_AlgPolicy, _Compare>(__first, __first + 
difference_type(1), --__last, __comp);
@@ -456,336 +428,17 @@
   }
 }
 
-template <class _AlgPolicy, class _RandomAccessIterator>
-inline _LIBCPP_HIDE_FROM_ABI void __swap_bitmap_pos(
-    _RandomAccessIterator __first, _RandomAccessIterator __last, uint64_t& 
__left_bitset, uint64_t& __right_bitset) {
-  using _Ops = _IterOps<_AlgPolicy>;
-  typedef typename 
std::iterator_traits<_RandomAccessIterator>::difference_type difference_type;
-  // Swap one pair on each iteration as long as both bitsets have at least one
-  // element for swapping.
-  while (__left_bitset != 0 && __right_bitset != 0) {
-    difference_type tz_left  = __libcpp_ctz(__left_bitset);
-    __left_bitset            = __libcpp_blsr(__left_bitset);
-    difference_type tz_right = __libcpp_ctz(__right_bitset);
-    __right_bitset           = __libcpp_blsr(__right_bitset);
-    _Ops::iter_swap(__first + tz_left, __last - tz_right);
-  }
-}
-
-template <class _Compare,
-          class _RandomAccessIterator,
-          class _ValueType = typename 
iterator_traits<_RandomAccessIterator>::value_type>
-inline _LIBCPP_HIDE_FROM_ABI void
-__populate_left_bitset(_RandomAccessIterator __first, _Compare __comp, 
_ValueType& __pivot, uint64_t& __left_bitset) {
-  // Possible vectorization. With a proper "-march" flag, the following loop
-  // will be compiled into a set of SIMD instructions.
-  _RandomAccessIterator __iter = __first;
-  for (int __j = 0; __j < __detail::__block_size;) {
-    bool __comp_result = !__comp(*__iter, __pivot);
-    __left_bitset |= (static_cast<uint64_t>(__comp_result) << __j);
-    __j++;
-    ++__iter;
-  }
-}
-
-template <class _Compare,
-          class _RandomAccessIterator,
-          class _ValueType = typename 
iterator_traits<_RandomAccessIterator>::value_type>
-inline _LIBCPP_HIDE_FROM_ABI void
-__populate_right_bitset(_RandomAccessIterator __lm1, _Compare __comp, 
_ValueType& __pivot, uint64_t& __right_bitset) {
-  // Possible vectorization. With a proper "-march" flag, the following loop
-  // will be compiled into a set of SIMD instructions.
-  _RandomAccessIterator __iter = __lm1;
-  for (int __j = 0; __j < __detail::__block_size;) {
-    bool __comp_result = __comp(*__iter, __pivot);
-    __right_bitset |= (static_cast<uint64_t>(__comp_result) << __j);
-    __j++;
-    --__iter;
-  }
-}
-
-template <class _AlgPolicy,
-          class _Compare,
-          class _RandomAccessIterator,
-          class _ValueType = typename 
iterator_traits<_RandomAccessIterator>::value_type>
-inline _LIBCPP_HIDE_FROM_ABI void __bitset_partition_partial_blocks(
-    _RandomAccessIterator& __first,
-    _RandomAccessIterator& __lm1,
-    _Compare __comp,
-    _ValueType& __pivot,
-    uint64_t& __left_bitset,
-    uint64_t& __right_bitset) {
-  typedef typename 
std::iterator_traits<_RandomAccessIterator>::difference_type difference_type;
-  difference_type __remaining_len = __lm1 - __first + 1;
-  difference_type __l_size;
-  difference_type __r_size;
-  if (__left_bitset == 0 && __right_bitset == 0) {
-    __l_size = __remaining_len / 2;
-    __r_size = __remaining_len - __l_size;
-  } else if (__left_bitset == 0) {
-    // We know at least one side is a full block.
-    __l_size = __remaining_len - __detail::__block_size;
-    __r_size = __detail::__block_size;
-  } else { // if (__right_bitset == 0)
-    __l_size = __detail::__block_size;
-    __r_size = __remaining_len - __detail::__block_size;
-  }
-  // Record the comparison outcomes for the elements currently on the left 
side.
-  if (__left_bitset == 0) {
-    _RandomAccessIterator __iter = __first;
-    for (int j = 0; j < __l_size; j++) {
-      bool __comp_result = !__comp(*__iter, __pivot);
-      __left_bitset |= (static_cast<uint64_t>(__comp_result) << j);
-      ++__iter;
-    }
-  }
-  // Record the comparison outcomes for the elements currently on the right
-  // side.
-  if (__right_bitset == 0) {
-    _RandomAccessIterator __iter = __lm1;
-    for (int j = 0; j < __r_size; j++) {
-      bool __comp_result = __comp(*__iter, __pivot);
-      __right_bitset |= (static_cast<uint64_t>(__comp_result) << j);
-      --__iter;
-    }
-  }
-  std::__swap_bitmap_pos<_AlgPolicy, _RandomAccessIterator>(__first, __lm1, 
__left_bitset, __right_bitset);
-  __first += (__left_bitset == 0) ? __l_size : 0;
-  __lm1 -= (__right_bitset == 0) ? __r_size : 0;
-}
-
-template <class _AlgPolicy, class _RandomAccessIterator>
-inline _LIBCPP_HIDE_FROM_ABI void __swap_bitmap_pos_within(
-    _RandomAccessIterator& __first, _RandomAccessIterator& __lm1, uint64_t& 
__left_bitset, uint64_t& __right_bitset) {
-  using _Ops = _IterOps<_AlgPolicy>;
-  typedef typename 
std::iterator_traits<_RandomAccessIterator>::difference_type difference_type;
-  if (__left_bitset) {
-    // Swap within the left side.  Need to find set positions in the reverse
-    // order.
-    while (__left_bitset != 0) {
-      difference_type __tz_left = __detail::__block_size - 1 - 
__libcpp_clz(__left_bitset);
-      __left_bitset &= (static_cast<uint64_t>(1) << __tz_left) - 1;
-      _RandomAccessIterator it = __first + __tz_left;
-      if (it != __lm1) {
-        _Ops::iter_swap(it, __lm1);
-      }
-      --__lm1;
-    }
-    __first = __lm1 + difference_type(1);
-  } else if (__right_bitset) {
-    // Swap within the right side.  Need to find set positions in the reverse
-    // order.
-    while (__right_bitset != 0) {
-      difference_type __tz_right = __detail::__block_size - 1 - 
__libcpp_clz(__right_bitset);
-      __right_bitset &= (static_cast<uint64_t>(1) << __tz_right) - 1;
-      _RandomAccessIterator it = __lm1 - __tz_right;
-      if (it != __first) {
-        _Ops::iter_swap(it, __first);
-      }
-      ++__first;
-    }
-  }
-}
-
-// Partition [__first, __last) using the comparator __comp.  *__first has the
-// chosen pivot.  Elements that are equivalent are kept to the left of the
-// pivot.  Returns the iterator for the pivot and a bool value which is true if
-// the provided range is already sorted, false otherwise.  We assume that the
-// length of the range is at least three elements.
-//
-// __bitset_partition uses bitsets for storing outcomes of the comparisons
-// between the pivot and other elements.
-template <class _AlgPolicy, class _RandomAccessIterator, class _Compare>
-_LIBCPP_HIDE_FROM_ABI std::pair<_RandomAccessIterator, bool>
-__bitset_partition(_RandomAccessIterator __first, _RandomAccessIterator 
__last, _Compare __comp) {
-  using _Ops = _IterOps<_AlgPolicy>;
-  typedef typename std::iterator_traits<_RandomAccessIterator>::value_type 
value_type;
-  typedef typename 
std::iterator_traits<_RandomAccessIterator>::difference_type difference_type;
-  _LIBCPP_ASSERT(__last - __first >= difference_type(3), "");
-
-  _RandomAccessIterator __begin = __first;
-  value_type __pivot(_Ops::__iter_move(__first));
-  // Find the first element greater than the pivot.
-  if (__comp(__pivot, *(__last - difference_type(1)))) {
-    // Not guarded since we know the last element is greater than the pivot.
-    while (!__comp(__pivot, *++__first)) {
-    }
-  } else {
-    while (++__first < __last && !__comp(__pivot, *__first)) {
-    }
-  }
-  // Find the last element less than or equal to the pivot.
-  if (__first < __last) {
-    // It will be always guarded because __introsort will do the 
median-of-three
-    // before calling this.
-    while (__comp(__pivot, *--__last)) {
-    }
-  }
-  // If the first element greater than the pivot is at or after the
-  // last element less than or equal to the pivot, then we have covered the
-  // entire range without swapping elements.  This implies the range is already
-  // partitioned.
-  bool __already_partitioned = __first >= __last;
-  if (!__already_partitioned) {
-    _Ops::iter_swap(__first, __last);
-    ++__first;
-  }
-
-  // In [__first, __last) __last is not inclusive. From now on, it uses last
-  // minus one to be inclusive on both sides.
-  _RandomAccessIterator __lm1 = __last - difference_type(1);
-  uint64_t __left_bitset      = 0;
-  uint64_t __right_bitset     = 0;
-
-  // Reminder: length = __lm1 - __first + 1.
-  while (__lm1 - __first >= 2 * __detail::__block_size - 1) {
-    // Record the comparison outcomes for the elements currently on the left
-    // side.
-    if (__left_bitset == 0)
-      std::__populate_left_bitset<_Compare>(__first, __comp, __pivot, 
__left_bitset);
-    // Record the comparison outcomes for the elements currently on the right
-    // side.
-    if (__right_bitset == 0)
-      std::__populate_right_bitset<_Compare>(__lm1, __comp, __pivot, 
__right_bitset);
-    // Swap the elements recorded to be the candidates for swapping in the
-    // bitsets.
-    std::__swap_bitmap_pos<_AlgPolicy, _RandomAccessIterator>(__first, __lm1, 
__left_bitset, __right_bitset);
-    // Only advance the iterator if all the elements that need to be moved to
-    // other side were moved.
-    __first += (__left_bitset == 0) ? difference_type(__detail::__block_size) 
: difference_type(0);
-    __lm1 -= (__right_bitset == 0) ? difference_type(__detail::__block_size) : 
difference_type(0);
-  }
-  // Now, we have a less-than a block worth of elements on at least one of the
-  // sides.
-  std::__bitset_partition_partial_blocks<_AlgPolicy, _Compare>(
-      __first, __lm1, __comp, __pivot, __left_bitset, __right_bitset);
-  // At least one the bitsets would be empty.  For the non-empty one, we need 
to
-  // properly partition the elements that appear within that bitset.
-  std::__swap_bitmap_pos_within<_AlgPolicy>(__first, __lm1, __left_bitset, 
__right_bitset);
-
-  // Move the pivot to its correct position.
-  _RandomAccessIterator __pivot_pos = __first - difference_type(1);
-  if (__begin != __pivot_pos) {
-    *__begin = _Ops::__iter_move(__pivot_pos);
-  }
-  *__pivot_pos = std::move(__pivot);
-  return std::make_pair(__pivot_pos, __already_partitioned);
-}
-
-// Partition [__first, __last) using the comparator __comp.  *__first has the
-// chosen pivot.  Elements that are equivalent are kept to the right of the
-// pivot.  Returns the iterator for the pivot and a bool value which is true if
-// the provided range is already sorted, false otherwise.  We assume that the
-// length of the range is at least three elements.
-template <class _AlgPolicy, class _RandomAccessIterator, class _Compare>
-_LIBCPP_HIDE_FROM_ABI std::pair<_RandomAccessIterator, bool>
-__partition_with_equals_on_right(_RandomAccessIterator __first, 
_RandomAccessIterator __last, _Compare __comp) {
-  using _Ops = _IterOps<_AlgPolicy>;
-  typedef typename iterator_traits<_RandomAccessIterator>::difference_type 
difference_type;
-  typedef typename std::iterator_traits<_RandomAccessIterator>::value_type 
value_type;
-  _LIBCPP_ASSERT(__last - __first >= difference_type(3), "");
-  _RandomAccessIterator __begin = __first;
-  value_type __pivot(_Ops::__iter_move(__first));
-  // Find the first element greater or equal to the pivot.  It will be always
-  // guarded because __introsort will do the median-of-three before calling
-  // this.
-  while (__comp(*++__first, __pivot))
-    ;
-
-  // Find the last element less than the pivot.
-  if (__begin == __first - difference_type(1)) {
-    while (__first < __last && !__comp(*--__last, __pivot))
-      ;
-  } else {
-    // Guarded.
-    while (!__comp(*--__last, __pivot))
-      ;
-  }
-
-  // If the first element greater than or equal to the pivot is at or after the
-  // last element less than the pivot, then we have covered the entire range
-  // without swapping elements.  This implies the range is already partitioned.
-  bool __already_partitioned = __first >= __last;
-  // Go through the remaining elements.  Swap pairs of elements (one to the
-  // right of the pivot and the other to left of the pivot) that are not on the
-  // correct side of the pivot.
-  while (__first < __last) {
-    _Ops::iter_swap(__first, __last);
-    while (__comp(*++__first, __pivot))
-      ;
-    while (!__comp(*--__last, __pivot))
-      ;
-  }
-  // Move the pivot to its correct position.
-  _RandomAccessIterator __pivot_pos = __first - difference_type(1);
-  if (__begin != __pivot_pos) {
-    *__begin = _Ops::__iter_move(__pivot_pos);
-  }
-  *__pivot_pos = std::move(__pivot);
-  return std::make_pair(__pivot_pos, __already_partitioned);
-}
-
-// Similar to the above function.  Elements equivalent to the pivot are put to
-// the left of the pivot.  Returns the iterator to the pivot element.
-template <class _AlgPolicy, class _RandomAccessIterator, class _Compare>
-_LIBCPP_HIDE_FROM_ABI _RandomAccessIterator
-__partition_with_equals_on_left(_RandomAccessIterator __first, 
_RandomAccessIterator __last, _Compare __comp) {
+template <class _AlgPolicy, class _Compare, class _RandomAccessIterator>
+void __introsort(_RandomAccessIterator __first, _RandomAccessIterator __last, 
_Compare __comp,
+                 typename 
iterator_traits<_RandomAccessIterator>::difference_type __depth) {
   using _Ops = _IterOps<_AlgPolicy>;
-  typedef typename iterator_traits<_RandomAccessIterator>::difference_type 
difference_type;
-  typedef typename std::iterator_traits<_RandomAccessIterator>::value_type 
value_type;
-  _RandomAccessIterator __begin = __first;
-  value_type __pivot(_Ops::__iter_move(__first));
-  if (__comp(__pivot, *(__last - difference_type(1)))) {
-    // Guarded.
-    while (!__comp(__pivot, *++__first)) {
-    }
-  } else {
-    while (++__first < __last && !__comp(__pivot, *__first)) {
-    }
-  }
 
-  if (__first < __last) {
-    // It will be always guarded because __introsort will do the
-    // median-of-three before calling this.
-    while (__comp(__pivot, *--__last)) {
-    }
-  }
-  while (__first < __last) {
-    _Ops::iter_swap(__first, __last);
-    while (!__comp(__pivot, *++__first))
-      ;
-    while (__comp(__pivot, *--__last))
-      ;
-  }
-  _RandomAccessIterator __pivot_pos = __first - difference_type(1);
-  if (__begin != __pivot_pos) {
-    *__begin = _Ops::__iter_move(__pivot_pos);
-  }
-  *__pivot_pos = std::move(__pivot);
-  return __first;
-}
-
-// The main sorting function.  Implements introsort combined with other ideas:
-//  - option of using block quick sort for partitioning,
-//  - guarded and unguarded insertion sort for small lengths,
-//  - Tuckey's ninther technique for computing the pivot,
-//  - check on whether partition was not required.
-// The implementation is partly based on Orson Peters' pattern-defeating
-// quicksort, published at: <https://github.com/orlp/pdqsort>.
-template <class _AlgPolicy, class _Compare, class _RandomAccessIterator, bool 
_UseBitSetPartition>
-void __introsort(_RandomAccessIterator __first,
-                 _RandomAccessIterator __last,
-                 _Compare __comp,
-                 typename 
iterator_traits<_RandomAccessIterator>::difference_type __depth,
-                 bool __leftmost = true) {
-  using _Ops = _IterOps<_AlgPolicy>;
   typedef typename iterator_traits<_RandomAccessIterator>::difference_type 
difference_type;
-  using _Comp_ref = __comp_ref_type<_Compare>;
-  // Upper bound for using insertion sort for sorting.
-  _LIBCPP_CONSTEXPR difference_type __limit = 24;
-  // Lower bound for using Tuckey's ninther technique for median computation.
-  _LIBCPP_CONSTEXPR difference_type __ninther_threshold = 128;
+  typedef typename iterator_traits<_RandomAccessIterator>::value_type 
value_type;
+  const difference_type __limit =
+      is_trivially_copy_constructible<value_type>::value && 
is_trivially_copy_assignable<value_type>::value ? 30 : 6;
   while (true) {
+  __restart:
     difference_type __len = __last - __first;
     switch (__len) {
     case 0:
@@ -793,7 +446,7 @@
       return;
     case 2:
       if (__comp(*--__last, *__first))
-        _Ops::iter_swap(__first, __last);
+        _IterOps<_AlgPolicy>::iter_swap(__first, __last);
       return;
     case 3:
       std::__sort3_maybe_branchless<_AlgPolicy, _Compare>(__first, __first + 
difference_type(1), --__last, __comp);
@@ -808,60 +461,127 @@
           --__last, __comp);
       return;
     }
-    // Use insertion sort if the length of the range is below the specified 
limit.
-    if (__len < __limit) {
-      if (__leftmost) {
-        std::__insertion_sort<_AlgPolicy, _Compare>(__first, __last, __comp);
-      } else {
-        std::__insertion_sort_unguarded<_AlgPolicy, _Compare>(__first, __last, 
__comp);
-      }
+    if (__len <= __limit) {
+      std::__insertion_sort_3<_AlgPolicy, _Compare>(__first, __last, __comp);
       return;
     }
+    // __len > 5
     if (__depth == 0) {
       // Fallback to heap sort as Introsort suggests.
       std::__partial_sort<_AlgPolicy, _Compare>(__first, __last, __last, 
__comp);
       return;
     }
     --__depth;
+    _RandomAccessIterator __m = __first;
+    _RandomAccessIterator __lm1 = __last;
+    --__lm1;
+    unsigned __n_swaps;
     {
-      difference_type __half_len = __len / 2;
-      // Use Tuckey's ninther technique or median of 3 for pivot selection
-      // depending on the length of the range being sorted.
-      if (__len > __ninther_threshold) {
-        std::__sort3<_AlgPolicy, _Compare>(__first, __first + __half_len, 
__last - difference_type(1), __comp);
-        std::__sort3<_AlgPolicy, _Compare>(
-            __first + difference_type(1), __first + (__half_len - 1), __last - 
difference_type(2), __comp);
-        std::__sort3<_AlgPolicy, _Compare>(
-            __first + difference_type(2), __first + (__half_len + 1), __last - 
difference_type(3), __comp);
-        std::__sort3<_AlgPolicy, _Compare>(
-            __first + (__half_len - 1), __first + __half_len, __first + 
(__half_len + 1), __comp);
-        _Ops::iter_swap(__first, __first + __half_len);
+      difference_type __delta;
+      if (__len >= 1000) {
+        __delta = __len / 2;
+        __m += __delta;
+        __delta /= 2;
+        __n_swaps = std::__sort5_wrap_policy<_AlgPolicy, _Compare>(
+            __first, __first + __delta, __m, __m + __delta, __lm1, __comp);
       } else {
-        std::__sort3<_AlgPolicy, _Compare>(__first + __half_len, __first, 
__last - difference_type(1), __comp);
+        __delta = __len / 2;
+        __m += __delta;
+        __n_swaps = std::__sort3<_AlgPolicy, _Compare>(__first, __m, __lm1, 
__comp);
+      }
+    }
+    // *__m is median
+    // partition [__first, __m) < *__m and *__m <= [__m, __last)
+    // (this inhibits tossing elements equivalent to __m around unnecessarily)
+    _RandomAccessIterator __i = __first;
+    _RandomAccessIterator __j = __lm1;
+    // j points beyond range to be tested, *__m is known to be <= *__lm1
+    // The search going up is known to be guarded but the search coming down 
isn't.
+    // Prime the downward search with a guard.
+    if (!__comp(*__i, *__m)) // if *__first == *__m
+    {
+      // *__first == *__m, *__first doesn't go in first part
+      // manually guard downward moving __j against __i
+      while (true) {
+        if (__i == --__j) {
+          // *__first == *__m, *__m <= all other elements
+          // Parition instead into [__first, __i) == *__first and *__first < 
[__i, __last)
+          ++__i; // __first + 1
+          __j = __last;
+          if (!__comp(*__first, *--__j)) // we need a guard if *__first == 
*(__last-1)
+          {
+            while (true) {
+              if (__i == __j)
+                return; // [__first, __last) all equivalent elements
+              if (__comp(*__first, *__i)) {
+                _Ops::iter_swap(__i, __j);
+                ++__n_swaps;
+                ++__i;
+                break;
+              }
+              ++__i;
+            }
+          }
+          // [__first, __i) == *__first and *__first < [__j, __last) and __j 
== __last - 1
+          if (__i == __j)
+            return;
+          while (true) {
+            while (!__comp(*__first, *__i))
+              ++__i;
+            while (__comp(*__first, *--__j))
+              ;
+            if (__i >= __j)
+              break;
+            _Ops::iter_swap(__i, __j);
+            ++__n_swaps;
+            ++__i;
+          }
+          // [__first, __i) == *__first and *__first < [__i, __last)
+          // The first part is sorted, sort the second part
+          // std::__sort<_Compare>(__i, __last, __comp);
+          __first = __i;
+          goto __restart;
+        }
+        if (__comp(*__j, *__m)) {
+          _Ops::iter_swap(__i, __j);
+          ++__n_swaps;
+          break; // found guard for downward moving __j, now use unguarded 
partition
+        }
+      }
+    }
+    // It is known that *__i < *__m
+    ++__i;
+    // j points beyond range to be tested, *__m is known to be <= *__lm1
+    // if not yet partitioned...
+    if (__i < __j) {
+      // known that *(__i - 1) < *__m
+      // known that __i <= __m
+      while (true) {
+        // __m still guards upward moving __i
+        while (__comp(*__i, *__m))
+          ++__i;
+        // It is now known that a guard exists for downward moving __j
+        while (!__comp(*--__j, *__m))
+          ;
+        if (__i > __j)
+          break;
+        _Ops::iter_swap(__i, __j);
+        ++__n_swaps;
+        // It is known that __m != __j
+        // If __m just moved, follow it
+        if (__m == __i)
+          __m = __j;
+        ++__i;
       }
     }
-    // The elements to the left of the current iterator range are already
-    // sorted.  If the current iterator range to be sorted is not the
-    // leftmost part of the entire iterator range and the pivot is same as
-    // the highest element in the range to the left, then we know that all
-    // the elements in the range [first, pivot] would be equal to the pivot,
-    // assuming the equal elements are put on the left side when
-    // partitioned.  This also means that we do not need to sort the left
-    // side of the partition.
-    if (!__leftmost && !__comp(*(__first - difference_type(1)), *__first)) {
-      __first = std::__partition_with_equals_on_left<_AlgPolicy, 
_RandomAccessIterator, _Comp_ref>(
-          __first, __last, _Comp_ref(__comp));
-      continue;
-    }
-    // Use bitset partition only if asked for.
-    auto __ret =
-        _UseBitSetPartition
-            ? std::__bitset_partition<_AlgPolicy, _RandomAccessIterator, 
_Compare>(__first, __last, __comp)
-            : std::__partition_with_equals_on_right<_AlgPolicy, 
_RandomAccessIterator, _Compare>(__first, __last, __comp);
-    _RandomAccessIterator __i = __ret.first;
+    // [__first, __i) < *__m and *__m <= [__i, __last)
+    if (__i != __m && __comp(*__m, *__i)) {
+      _Ops::iter_swap(__i, __m);
+      ++__n_swaps;
+    }
     // [__first, __i) < *__i and *__i <= [__i+1, __last)
     // If we were given a perfect partition, see if insertion sort is quick...
-    if (__ret.second) {
+    if (__n_swaps == 0) {
       using _WrappedComp = typename _WrapAlgPolicy<_AlgPolicy, _Compare>::type;
       _WrappedComp __wrapped_comp(__comp);
       bool __fs = std::__insertion_sort_incomplete<_WrappedComp>(__first, __i, 
__wrapped_comp);
@@ -877,11 +597,14 @@
         }
       }
     }
-    // Sort the left partiton recursively and the right partition with tail 
recursion elimination.
-    std::__introsort<_AlgPolicy, _Compare, _RandomAccessIterator, 
_UseBitSetPartition>(
-        __first, __i, __comp, __depth, __leftmost);
-    __leftmost = false;
-    __first    = ++__i;
+    // sort smaller range with recursive call and larger with tail recursion 
elimination
+    if (__i - __first < __last - __i) {
+      std::__introsort<_AlgPolicy, _Compare>(__first, __i, __comp, __depth);
+      __first = ++__i;
+    } else {
+      std::__introsort<_AlgPolicy, _Compare>(__i + difference_type(1), __last, 
__comp, __depth);
+      __last = __i;
+    }
   }
 }
 
@@ -913,14 +636,7 @@
   using _AlgPolicy = typename _Unwrap::_AlgPolicy;
   using _Compare = typename _Unwrap::_Comp;
   _Compare __comp = _Unwrap::__get_comp(__wrapped_comp);
-  // Only use bitset partitioning for arithmetic types.  We should also check
-  // that the default comparator is in use so that we are sure that there are 
no
-  // branches in the comparator.
-  std::__introsort<_AlgPolicy,
-                   _Compare,
-                   _RandomAccessIterator,
-                   __use_branchless_sort<_Compare, 
_RandomAccessIterator>::value>(
-      __first, __last, __comp, __depth_limit);
+  std::__introsort<_AlgPolicy, _Compare>(__first, __last, __comp, 
__depth_limit);
 }
 
 template <class _Compare, class _Tp>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/include/__config 
new/libcxx-16.0.1.src/include/__config
--- old/libcxx-16.0.0.src/include/__config      2023-03-17 13:26:07.000000000 
+0100
+++ new/libcxx-16.0.1.src/include/__config      2023-04-05 05:36:38.000000000 
+0200
@@ -23,6 +23,7 @@
 #endif
 
 #if defined(__apple_build_version__)
+// Given AppleClang XX.Y.Z, _LIBCPP_APPLE_CLANG_VER is XXYZ (e.g. AppleClang 
14.0.3 => 1403)
 #  define _LIBCPP_COMPILER_CLANG_BASED
 #  define _LIBCPP_APPLE_CLANG_VER (__apple_build_version__ / 10000)
 #elif defined(__clang__)
@@ -37,7 +38,7 @@
 // _LIBCPP_VERSION represents the version of libc++, which matches the version 
of LLVM.
 // Given a LLVM release LLVM XX.YY.ZZ (e.g. LLVM 16.0.1 == 16.00.01), 
_LIBCPP_VERSION is
 // defined to XXYYZZ.
-#  define _LIBCPP_VERSION 160000
+#  define _LIBCPP_VERSION 160001
 
 #  define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y
 #  define _LIBCPP_CONCAT(_X, _Y) _LIBCPP_CONCAT_IMPL(_X, _Y)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/include/__expected/expected.h 
new/libcxx-16.0.1.src/include/__expected/expected.h
--- old/libcxx-16.0.0.src/include/__expected/expected.h 2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/__expected/expected.h 2023-04-05 
05:36:38.000000000 +0200
@@ -292,7 +292,8 @@
           "be reverted to the previous state in case an exception is thrown 
during the assignment.");
       _T2 __tmp(std::move(__oldval));
       std::destroy_at(std::addressof(__oldval));
-      __exception_guard __trans([&] { 
std::construct_at(std::addressof(__oldval), std::move(__tmp)); });
+      auto __trans =
+          std::__make_exception_guard([&] { 
std::construct_at(std::addressof(__oldval), std::move(__tmp)); });
       std::construct_at(std::addressof(__newval), 
std::forward<_Args>(__args)...);
       __trans.__complete();
     }
@@ -451,7 +452,7 @@
       if constexpr (is_nothrow_move_constructible_v<_Err>) {
         _Err __tmp(std::move(__with_err.__union_.__unex_));
         std::destroy_at(std::addressof(__with_err.__union_.__unex_));
-        __exception_guard __trans([&] {
+        auto __trans = std::__make_exception_guard([&] {
           std::construct_at(std::addressof(__with_err.__union_.__unex_), 
std::move(__tmp));
         });
         std::construct_at(std::addressof(__with_err.__union_.__val_), 
std::move(__with_val.__union_.__val_));
@@ -464,7 +465,7 @@
                       "that it can be reverted to the previous state in case 
an exception is thrown during swap.");
         _Tp __tmp(std::move(__with_val.__union_.__val_));
         std::destroy_at(std::addressof(__with_val.__union_.__val_));
-        __exception_guard __trans([&] {
+        auto __trans = std::__make_exception_guard([&] {
           std::construct_at(std::addressof(__with_val.__union_.__val_), 
std::move(__tmp));
         });
         std::construct_at(std::addressof(__with_val.__union_.__unex_), 
std::move(__with_err.__union_.__unex_));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/include/__memory/uninitialized_algorithms.h 
new/libcxx-16.0.1.src/include/__memory/uninitialized_algorithms.h
--- old/libcxx-16.0.0.src/include/__memory/uninitialized_algorithms.h   
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/__memory/uninitialized_algorithms.h   
2023-04-05 05:36:38.000000000 +0200
@@ -421,7 +421,7 @@
         _Tp& __array = *__loc;
 
         // If an exception is thrown, destroy what we have constructed so far 
in reverse order.
-        __exception_guard __guard([&]() {
+        auto __guard = std::__make_exception_guard([&]() {
           std::__allocator_destroy_multidimensional(__elem_alloc, __array, 
__array + __i);
         });
 
@@ -461,7 +461,7 @@
         _Tp& __array = *__loc;
 
         // If an exception is thrown, destroy what we have constructed so far 
in reverse order.
-        __exception_guard __guard([&]() {
+        auto __guard = std::__make_exception_guard([&]() {
           std::__allocator_destroy_multidimensional(__elem_alloc, __array, 
__array + __i);
         });
         for (; __i != extent_v<_Tp>; ++__i) {
@@ -488,7 +488,7 @@
     _BidirIter __begin = __it;
 
     // If an exception is thrown, destroy what we have constructed so far in 
reverse order.
-    __exception_guard __guard([&]() { 
std::__allocator_destroy_multidimensional(__value_alloc, __begin, __it); });
+    auto __guard = std::__make_exception_guard([&]() { 
std::__allocator_destroy_multidimensional(__value_alloc, __begin, __it); });
     for (; __n != 0; --__n, ++__it) {
         std::__allocator_construct_at_multidimensional(__value_alloc, 
std::addressof(*__it), __value);
     }
@@ -505,7 +505,7 @@
     _BidirIter __begin = __it;
 
     // If an exception is thrown, destroy what we have constructed so far in 
reverse order.
-    __exception_guard __guard([&]() { 
std::__allocator_destroy_multidimensional(__value_alloc, __begin, __it); });
+    auto __guard = std::__make_exception_guard([&]() { 
std::__allocator_destroy_multidimensional(__value_alloc, __begin, __it); });
     for (; __n != 0; --__n, ++__it) {
         std::__allocator_construct_at_multidimensional(__value_alloc, 
std::addressof(*__it));
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/include/__memory_resource/polymorphic_allocator.h 
new/libcxx-16.0.1.src/include/__memory_resource/polymorphic_allocator.h
--- old/libcxx-16.0.0.src/include/__memory_resource/polymorphic_allocator.h     
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/__memory_resource/polymorphic_allocator.h     
2023-04-05 05:36:38.000000000 +0200
@@ -98,7 +98,7 @@
   template <class _Type, class... _CtorArgs>
   [[nodiscard]] _Type* new_object(_CtorArgs&&... __ctor_args) {
     _Type* __ptr = allocate_object<_Type>();
-    __exception_guard __guard([&] { deallocate_object(__ptr); });
+    auto __guard = std::__make_exception_guard([&] { deallocate_object(__ptr); 
});
     construct(__ptr, std::forward<_CtorArgs>(__ctor_args)...);
     __guard.__complete();
     return __ptr;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/include/__utility/exception_guard.h 
new/libcxx-16.0.1.src/include/__utility/exception_guard.h
--- old/libcxx-16.0.0.src/include/__utility/exception_guard.h   2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/__utility/exception_guard.h   2023-04-05 
05:36:38.000000000 +0200
@@ -60,25 +60,26 @@
 
 #ifndef _LIBCPP_NO_EXCEPTIONS
 template <class _Rollback>
-struct __exception_guard {
-  __exception_guard() = delete;
+struct __exception_guard_exceptions {
+  __exception_guard_exceptions() = delete;
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit 
__exception_guard(_Rollback __rollback)
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit 
__exception_guard_exceptions(_Rollback __rollback)
       : __rollback_(std::move(__rollback)), __completed_(false) {}
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 
__exception_guard(__exception_guard&& __other)
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
+  __exception_guard_exceptions(__exception_guard_exceptions&& __other)
       _NOEXCEPT_(is_nothrow_move_constructible<_Rollback>::value)
       : __rollback_(std::move(__other.__rollback_)), 
__completed_(__other.__completed_) {
     __other.__completed_ = true;
   }
 
-  __exception_guard(__exception_guard const&)            = delete;
-  __exception_guard& operator=(__exception_guard const&) = delete;
-  __exception_guard& operator=(__exception_guard&&)      = delete;
+  __exception_guard_exceptions(__exception_guard_exceptions const&)            
= delete;
+  __exception_guard_exceptions& operator=(__exception_guard_exceptions const&) 
= delete;
+  __exception_guard_exceptions& operator=(__exception_guard_exceptions&&)      
= delete;
 
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __complete() 
_NOEXCEPT { __completed_ = true; }
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 ~__exception_guard() {
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 
~__exception_guard_exceptions() {
     if (!__completed_)
       __rollback_();
   }
@@ -87,36 +88,46 @@
   _Rollback __rollback_;
   bool __completed_;
 };
+
+_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(__exception_guard_exceptions);
+
+template <class _Rollback>
+using __exception_guard = __exception_guard_exceptions<_Rollback>;
 #else  // _LIBCPP_NO_EXCEPTIONS
 template <class _Rollback>
-struct __exception_guard {
-  __exception_guard() = delete;
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG explicit 
__exception_guard(_Rollback) {}
+struct __exception_guard_noexceptions {
+  __exception_guard_noexceptions() = delete;
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
+      _LIBCPP_NODEBUG explicit __exception_guard_noexceptions(_Rollback) {}
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG 
__exception_guard(__exception_guard&& __other)
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG
+  __exception_guard_noexceptions(__exception_guard_noexceptions&& __other)
       _NOEXCEPT_(is_nothrow_move_constructible<_Rollback>::value)
       : __completed_(__other.__completed_) {
     __other.__completed_ = true;
   }
 
-  __exception_guard(__exception_guard const&)            = delete;
-  __exception_guard& operator=(__exception_guard const&) = delete;
-  __exception_guard& operator=(__exception_guard&&)      = delete;
+  __exception_guard_noexceptions(__exception_guard_noexceptions const&)        
    = delete;
+  __exception_guard_noexceptions& operator=(__exception_guard_noexceptions 
const&) = delete;
+  __exception_guard_noexceptions& operator=(__exception_guard_noexceptions&&)  
    = delete;
 
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG void 
__complete() _NOEXCEPT {
     __completed_ = true;
   }
 
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG 
~__exception_guard() {
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG 
~__exception_guard_noexceptions() {
     _LIBCPP_ASSERT(__completed_, "__exception_guard not completed with 
exceptions disabled");
   }
 
 private:
   bool __completed_ = false;
 };
-#endif // _LIBCPP_NO_EXCEPTIONS
 
-_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(__exception_guard);
+_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(__exception_guard_noexceptions);
+
+template <class _Rollback>
+using __exception_guard = __exception_guard_noexceptions<_Rollback>;
+#endif // _LIBCPP_NO_EXCEPTIONS
 
 template <class _Rollback>
 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __exception_guard<_Rollback> 
__make_exception_guard(_Rollback __rollback) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/include/source_location 
new/libcxx-16.0.1.src/include/source_location
--- old/libcxx-16.0.0.src/include/source_location       2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/include/source_location       2023-04-05 
05:36:38.000000000 +0200
@@ -35,7 +35,8 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-#if _LIBCPP_STD_VER >= 20 && __has_builtin(__builtin_source_location)
+#if _LIBCPP_STD_VER >= 20 && __has_builtin(__builtin_source_location) &&       
                                        \
+    !(defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER <= 1403)
 
 class source_location {
   // The names source_location::__impl, _M_file_name, _M_function_name, 
_M_line, and _M_column
@@ -78,7 +79,8 @@
   }
 };
 
-#endif // _LIBCPP_STD_VER >= 20 && __has_builtin(__builtin_source_location)
+#endif // _LIBCPP_STD_VER >= 20 && __has_builtin(__builtin_source_location) && 
!(defined(_LIBCPP_APPLE_CLANG_VER) &&
+       // _LIBCPP_APPLE_CLANG_VER <= 1403)
 
 _LIBCPP_END_NAMESPACE_STD
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/include/version 
new/libcxx-16.0.1.src/include/version
--- old/libcxx-16.0.0.src/include/version       2023-03-17 13:26:07.000000000 
+0100
+++ new/libcxx-16.0.1.src/include/version       2023-04-05 05:36:38.000000000 
+0200
@@ -366,7 +366,7 @@
 # define __cpp_lib_shared_ptr_arrays                    201707L
 # define __cpp_lib_shift                                201806L
 // # define __cpp_lib_smart_ptr_for_overwrite              202002L
-# if __has_builtin(__builtin_source_location)
+# if __has_builtin(__builtin_source_location) && 
!(defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER <= 1403)
 #   define __cpp_lib_source_location                    201907L
 # endif
 # define __cpp_lib_span                                 202002L
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
 
new/libcxx-16.0.1.src/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
--- 
old/libcxx-16.0.0.src/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
   2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
   2023-04-05 05:36:38.000000000 +0200
@@ -663,7 +663,7 @@
 #endif
 
 // RUN: %{build} -DTEST_123
-#if defined(TEST_123) && __cplusplus >= 201103L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if defined(TEST_123) && __cplusplus >= 202002L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
     using HandlerType = decltype(std::__libcpp_verbose_abort);
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/test/libcxx/clang_tidy.sh.cpp 
new/libcxx-16.0.1.src/test/libcxx/clang_tidy.sh.cpp
--- old/libcxx-16.0.0.src/test/libcxx/clang_tidy.sh.cpp 2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/clang_tidy.sh.cpp 2023-04-05 
05:36:38.000000000 +0200
@@ -217,7 +217,7 @@
 #if __cplusplus >= 201103L
 #   include <experimental/algorithm>
 #endif
-#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
 #endif
 #if __cplusplus >= 201103L
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/test/libcxx/double_include.sh.cpp 
new/libcxx-16.0.1.src/test/libcxx/double_include.sh.cpp
--- old/libcxx-16.0.0.src/test/libcxx/double_include.sh.cpp     2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/double_include.sh.cpp     2023-04-05 
05:36:38.000000000 +0200
@@ -218,7 +218,7 @@
 #if __cplusplus >= 201103L
 #   include <experimental/algorithm>
 #endif
-#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
 #endif
 #if __cplusplus >= 201103L
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/min_max_macros.compile.pass.cpp 
new/libcxx-16.0.1.src/test/libcxx/min_max_macros.compile.pass.cpp
--- old/libcxx-16.0.0.src/test/libcxx/min_max_macros.compile.pass.cpp   
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/min_max_macros.compile.pass.cpp   
2023-04-05 05:36:38.000000000 +0200
@@ -341,7 +341,7 @@
 #   include <experimental/algorithm>
 TEST_MACROS();
 #endif
-#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
 TEST_MACROS();
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/test/libcxx/modules_include.sh.cpp 
new/libcxx-16.0.1.src/test/libcxx/modules_include.sh.cpp
--- old/libcxx-16.0.0.src/test/libcxx/modules_include.sh.cpp    2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/modules_include.sh.cpp    2023-04-05 
05:36:38.000000000 +0200
@@ -544,7 +544,7 @@
 #include <experimental/algorithm>
 #endif
 // RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules 
-fmodules-cache-path=%t -fsyntax-only -DTEST_123
-#if defined(TEST_123) && __cplusplus >= 201103L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if defined(TEST_123) && __cplusplus >= 202002L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #include <experimental/coroutine>
 #endif
 // RUN: %{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules 
-fmodules-cache-path=%t -fsyntax-only -DTEST_124
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/nasty_macros.compile.pass.cpp 
new/libcxx-16.0.1.src/test/libcxx/nasty_macros.compile.pass.cpp
--- old/libcxx-16.0.0.src/test/libcxx/nasty_macros.compile.pass.cpp     
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/nasty_macros.compile.pass.cpp     
2023-04-05 05:36:38.000000000 +0200
@@ -342,7 +342,7 @@
 #if __cplusplus >= 201103L
 #   include <experimental/algorithm>
 #endif
-#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
 #endif
 #if __cplusplus >= 201103L
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/no_assert_include.compile.pass.cpp 
new/libcxx-16.0.1.src/test/libcxx/no_assert_include.compile.pass.cpp
--- old/libcxx-16.0.0.src/test/libcxx/no_assert_include.compile.pass.cpp        
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/no_assert_include.compile.pass.cpp        
2023-04-05 05:36:38.000000000 +0200
@@ -215,7 +215,7 @@
 #if __cplusplus >= 201103L
 #   include <experimental/algorithm>
 #endif
-#if __cplusplus >= 201103L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
+#if __cplusplus >= 202002L && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)
 #   include <experimental/coroutine>
 #endif
 #if __cplusplus >= 201103L
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp
 
new/libcxx-16.0.1.src/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp
--- 
old/libcxx-16.0.0.src/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp
      2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/libcxx/ranges/range.adaptors/range.join/segmented_iterator.compile.pass.cpp
      2023-04-05 05:36:38.000000000 +0200
@@ -7,8 +7,10 @@
 
//===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++03, c++11, c++14, c++17
+// UNSUPPORTED: !c++experimental
 
 #include <ranges>
+#include <utility>
 #include <vector>
 
 using JoinView = 
decltype(std::views::join(std::declval<std::vector<std::vector<int>>&>()));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/libcxx/utilities/exception_guard.odr.sh.cpp 
new/libcxx-16.0.1.src/test/libcxx/utilities/exception_guard.odr.sh.cpp
--- old/libcxx-16.0.0.src/test/libcxx/utilities/exception_guard.odr.sh.cpp      
1970-01-01 01:00:00.000000000 +0100
+++ new/libcxx-16.0.1.src/test/libcxx/utilities/exception_guard.odr.sh.cpp      
2023-04-05 05:36:38.000000000 +0200
@@ -0,0 +1,43 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// This test relies on `typeid` and thus requires `-frtti`.
+// UNSUPPORTED: no-rtti
+
+// Make sure that we don't get ODR violations with __exception_guard when
+// linking together TUs compiled with different values of -f[no-]exceptions.
+
+// RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.except.o   -O1 
-Wno-private-header -fexceptions
+// RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.noexcept.o -O1 
-Wno-private-header -fno-exceptions
+// RUN: %{cxx} %{flags} %{link_flags} -o %t.exe %t.except.o %t.noexcept.o
+// RUN: %{run}
+
+#include <__utility/exception_guard.h>
+#include <cassert>
+#include <cstring>
+#include <typeinfo>
+
+struct Rollback {
+  void operator()() {}
+};
+
+#if defined(__cpp_exceptions) && __cpp_exceptions >= 199711L
+
+const char* func();
+
+int main(int, char**) {
+  assert(std::strcmp(typeid(std::__exception_guard<Rollback>).name(), func()) 
!= 0);
+
+  return 0;
+}
+
+#else
+
+const char* func() { return typeid(std::__exception_guard<Rollback>).name(); }
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/std/language.support/support.limits/support.limits.general/source_location.version.compile.pass.cpp
 
new/libcxx-16.0.1.src/test/std/language.support/support.limits/support.limits.general/source_location.version.compile.pass.cpp
--- 
old/libcxx-16.0.0.src/test/std/language.support/support.limits/support.limits.general/source_location.version.compile.pass.cpp
      2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/std/language.support/support.limits/support.limits.general/source_location.version.compile.pass.cpp
      2023-04-05 05:36:38.000000000 +0200
@@ -42,7 +42,7 @@
 
 #elif TEST_STD_VER == 20
 
-# if __has_builtin(__builtin_source_location)
+# if __has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)
 #   ifndef __cpp_lib_source_location
 #     error "__cpp_lib_source_location should be defined in c++20"
 #   endif
@@ -51,13 +51,13 @@
 #   endif
 # else
 #   ifdef __cpp_lib_source_location
-#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location)' is not met!"
+#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)' is not met!"
 #   endif
 # endif
 
 #elif TEST_STD_VER > 20
 
-# if __has_builtin(__builtin_source_location)
+# if __has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)
 #   ifndef __cpp_lib_source_location
 #     error "__cpp_lib_source_location should be defined in c++2b"
 #   endif
@@ -66,7 +66,7 @@
 #   endif
 # else
 #   ifdef __cpp_lib_source_location
-#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location)' is not met!"
+#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)' is not met!"
 #   endif
 # endif
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
 
new/libcxx-16.0.1.src/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
--- 
old/libcxx-16.0.0.src/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
      2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
      2023-04-05 05:36:38.000000000 +0200
@@ -3408,7 +3408,7 @@
 #   endif
 # endif
 
-# if __has_builtin(__builtin_source_location)
+# if __has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)
 #   ifndef __cpp_lib_source_location
 #     error "__cpp_lib_source_location should be defined in c++20"
 #   endif
@@ -3417,7 +3417,7 @@
 #   endif
 # else
 #   ifdef __cpp_lib_source_location
-#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location)' is not met!"
+#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)' is not met!"
 #   endif
 # endif
 
@@ -4761,7 +4761,7 @@
 #   endif
 # endif
 
-# if __has_builtin(__builtin_source_location)
+# if __has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)
 #   ifndef __cpp_lib_source_location
 #     error "__cpp_lib_source_location should be defined in c++2b"
 #   endif
@@ -4770,7 +4770,7 @@
 #   endif
 # else
 #   ifdef __cpp_lib_source_location
-#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location)' is not met!"
+#     error "__cpp_lib_source_location should not be defined when the 
requirement '__has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)' is not met!"
 #   endif
 # endif
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp
 
new/libcxx-16.0.1.src/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp
--- 
old/libcxx-16.0.0.src/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp
  2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp
  2023-04-05 05:36:38.000000000 +0200
@@ -7,6 +7,7 @@
 
//===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++03, c++11, c++14, c++17
+// UNSUPPORTED: !c++experimental
 
 // ADL call with nested iterators of views should not look up base's view's
 // namespace
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
 
new/libcxx-16.0.1.src/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
--- 
old/libcxx-16.0.0.src/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
 2023-03-17 13:26:07.000000000 +0100
+++ 
new/libcxx-16.0.1.src/test/std/ranges/range.adaptors/range.elements/sentinel/minus.pass.cpp
 2023-04-05 05:36:38.000000000 +0200
@@ -20,6 +20,7 @@
 
 #include <cassert>
 #include <concepts>
+#include <cstddef>
 #include <functional>
 #include <ranges>
 #include <tuple>
@@ -31,7 +32,7 @@
   std::tuple<int>* it_;
 
   using value_type       = std::tuple<int>;
-  using difference_type  = intptr_t;
+  using difference_type  = std::ptrdiff_t;
   using iterator_concept = std::input_iterator_tag;
 
   constexpr decltype(auto) operator*() const { return *it_; }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/test/support/format.functions.common.h 
new/libcxx-16.0.1.src/test/support/format.functions.common.h
--- old/libcxx-16.0.0.src/test/support/format.functions.common.h        
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/support/format.functions.common.h        
2023-04-05 05:36:38.000000000 +0200
@@ -11,6 +11,7 @@
 // Contains the common part of the formatter tests for different papers.
 
 #include <algorithm>
+#include <cctype>
 #include <charconv>
 #include <format>
 #include <ranges>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/test/support/test_macros.h 
new/libcxx-16.0.1.src/test/support/test_macros.h
--- old/libcxx-16.0.0.src/test/support/test_macros.h    2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/test/support/test_macros.h    2023-04-05 
05:36:38.000000000 +0200
@@ -78,7 +78,8 @@
 #endif
 
 #if defined(__apple_build_version__)
-#define TEST_APPLE_CLANG_VER (__clang_major__ * 100) + __clang_minor__
+// Given AppleClang XX.Y.Z, TEST_APPLE_CLANG_VER is XXYZ (e.g. AppleClang 
14.0.3 => 1403)
+#define TEST_APPLE_CLANG_VER (__apple_build_version__ / 10000)
 #elif defined(__clang_major__)
 #define TEST_CLANG_VER (__clang_major__ * 100) + __clang_minor__
 #elif defined(__GNUC__)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/utils/ci/buildkite-pipeline.yml 
new/libcxx-16.0.1.src/utils/ci/buildkite-pipeline.yml
--- old/libcxx-16.0.0.src/utils/ci/buildkite-pipeline.yml       2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/utils/ci/buildkite-pipeline.yml       2023-04-05 
05:36:38.000000000 +0200
@@ -36,7 +36,9 @@
     artifact_paths:
       - "**/clang-format.patch"
     env:
-        GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION}"
+        GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION} 
--binary clang-format-${LLVM_STABLE_VERSION}"
+        CC: "clang-${LLVM_HEAD_VERSION}"
+        CXX: "clang++-${LLVM_HEAD_VERSION}"
     agents:
       queue: "libcxx-builders"
       os: "linux"
@@ -50,6 +52,9 @@
 
   - label: "Generated output"
     command: "libcxx/utils/ci/run-buildbot check-generated-output"
+    env:
+      CC: "clang-${LLVM_HEAD_VERSION}"
+      CXX: "clang++-${LLVM_HEAD_VERSION}"
     artifact_paths:
       - "**/generated_output.patch"
       - "**/generated_output.status"
@@ -64,6 +69,9 @@
 
   - label: "Documentation"
     command: "libcxx/utils/ci/run-buildbot documentation"
+    env:
+      CC: "clang-${LLVM_HEAD_VERSION}"
+      CXX: "clang++-${LLVM_HEAD_VERSION}"
     artifact_paths:
       - "**/test-results.xml"
     agents:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxx-16.0.0.src/utils/generate_feature_test_macro_components.py 
new/libcxx-16.0.1.src/utils/generate_feature_test_macro_components.py
--- old/libcxx-16.0.0.src/utils/generate_feature_test_macro_components.py       
2023-03-17 13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/utils/generate_feature_test_macro_components.py       
2023-04-05 05:36:38.000000000 +0200
@@ -648,8 +648,8 @@
     "name": "__cpp_lib_source_location",
     "values": { "c++20": 201907 },
     "headers": ["source_location"],
-    "test_suite_guard": "__has_builtin(__builtin_source_location)",
-    "libcxx_guard": "__has_builtin(__builtin_source_location)",
+    "test_suite_guard": "__has_builtin(__builtin_source_location) && 
!(defined(TEST_APPLE_CLANG_VER) && TEST_APPLE_CLANG_VER <= 1403)",
+    "libcxx_guard": "__has_builtin(__builtin_source_location) && 
!(defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER <= 1403)",
   }, {
     "name": "__cpp_lib_span",
     "values": { "c++20": 202002 },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcxx-16.0.0.src/utils/generate_header_tests.py 
new/libcxx-16.0.1.src/utils/generate_header_tests.py
--- old/libcxx-16.0.0.src/utils/generate_header_tests.py        2023-03-17 
13:26:07.000000000 +0100
+++ new/libcxx-16.0.1.src/utils/generate_header_tests.py        2023-04-05 
05:36:38.000000000 +0200
@@ -43,7 +43,7 @@
     "wchar.h": "!defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)",
 
     "experimental/algorithm": "__cplusplus >= 201103L",
-    "experimental/coroutine": "__cplusplus >= 201103L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)",
+    "experimental/coroutine": "__cplusplus >= 202002L && 
!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES)",
     "experimental/deque": "__cplusplus >= 201103L",
     "experimental/forward_list": "__cplusplus >= 201103L",
     "experimental/functional": "__cplusplus >= 201103L",

++++++ libcxxabi-16.0.0.src.tar.xz -> libcxxabi-16.0.1.src.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcxxabi-16.0.0.src/test/vendor/ibm/vec_reg_restore-le.pass.cpp 
new/libcxxabi-16.0.1.src/test/vendor/ibm/vec_reg_restore-le.pass.cpp
--- old/libcxxabi-16.0.0.src/test/vendor/ibm/vec_reg_restore-le.pass.cpp        
1970-01-01 01:00:00.000000000 +0100
+++ new/libcxxabi-16.0.1.src/test/vendor/ibm/vec_reg_restore-le.pass.cpp        
2023-04-05 05:36:38.000000000 +0200
@@ -0,0 +1,90 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Check that the PowerPC vector registers are restored properly during
+// unwinding.
+
+// REQUIRES: target=powerpc{{(64)?}}le-unknown-linux-gnu
+// UNSUPPORTED: no-exceptions
+
+// Callee-saved VSR's 62 and 63 (vr30, vr31 respectively) are set to 16 bytes
+// with values 1, 2 respectively in main. In order to ensure the two 
doublewords
+// in each register are different, they are merged. Then they are reset to 16
+// bytes with values 9 and 12 respectively in a callee and an exception is
+// thrown. When catching an exception in main, the values in the two registers
+// need to be the original ones (including the correct doubleword order).
+
+#include <cassert>
+#include <cstdlib>
+
+int __attribute__((noinline)) test2(int i) {
+  if (i > 3)
+    throw i;
+  srand(i);
+  return rand();
+}
+
+int __attribute__((noinline)) test(int i) {
+  // Clobber VS63 and VS62 in the function body.
+  // Set VS63 to 16 bytes each with value 9
+  asm volatile("vspltisb 31, 9" : : : "v31");
+
+  // Set VS62 to 16 bytes each with value 12
+  asm volatile("vspltisb 30, 12" : : : "v30");
+  return test2(i);
+}
+
+#define cmpVS63(vec, result)                                                   
\
+  {                                                                            
\
+    vector unsigned char gbg;                                                  
\
+    asm volatile("vcmpequb. %[gbg], 31, %[veca];"                              
\
+                 "mfocrf %[res], 2;"                                           
\
+                 "rlwinm %[res], %[res], 25, 31, 31"                           
\
+                 : [res] "=r"(result), [gbg] "=v"(gbg)                         
\
+                 : [veca] "v"(vec)                                             
\
+                 : "cr6");                                                     
\
+  }
+
+#define cmpVS62(vec, result)                                                   
\
+  {                                                                            
\
+    vector unsigned char gbg;                                                  
\
+    asm volatile("vcmpequb. %[gbg], 30, %[veca];"                              
\
+                 "mfocrf %[res], 2;"                                           
\
+                 "rlwinm %[res], %[res], 25, 31, 31"                           
\
+                 : [res] "=r"(result), [gbg] "=v"(gbg)                         
\
+                 : [veca] "v"(vec)                                             
\
+                 : "cr6");                                                     
\
+  }
+
+int main(int, char **) {
+  // Set VS63 to 16 bytes each with value 1.
+  asm volatile("vspltisb 31, 1" : : : "v31");
+
+  // Set VS62 to 16 bytes each with value 2.
+  asm volatile("vspltisb 30, 2" : : : "v30");
+
+  // Mix doublewords for both VS62 and VS63.
+  asm volatile("xxmrghd 63, 63, 62");
+  asm volatile("xxmrghd 62, 63, 62");
+
+  vector unsigned long long expectedVS63Value = {0x202020202020202,
+                                                 0x101010101010101};
+  vector unsigned long long expectedVS62Value = {0x202020202020202,
+                                                 0x101010101010101};
+  try {
+    test(4);
+  } catch (int num) {
+    // If the unwinder restores VS63 and VS62 correctly, they should contain
+    // 0x01's and 0x02's respectively instead of 0x09's and 0x12's.
+    bool isEqualVS63, isEqualVS62;
+    cmpVS63(expectedVS63Value, isEqualVS63);
+    cmpVS62(expectedVS62Value, isEqualVS62);
+    assert(isEqualVS63 && isEqualVS62);
+  }
+  return 0;
+}

++++++ lld-16.0.0.src.tar.xz -> lld-16.0.1.src.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lld-16.0.0.src/COFF/MinGW.cpp 
new/lld-16.0.1.src/COFF/MinGW.cpp
--- old/lld-16.0.0.src/COFF/MinGW.cpp   2023-03-17 13:26:07.000000000 +0100
+++ new/lld-16.0.1.src/COFF/MinGW.cpp   2023-04-05 05:36:38.000000000 +0200
@@ -49,6 +49,9 @@
       "libclang_rt.profile-x86_64",
       "libc++",
       "libc++abi",
+      "libFortran_main",
+      "libFortranRuntime",
+      "libFortranDecimal",
       "libunwind",
       "libmsvcrt",
       "libucrtbase",

++++++ lldb-16.0.0.src.tar.xz -> lldb-16.0.1.src.tar.xz ++++++
/work/SRC/openSUSE:Factory/llvm16/lldb-16.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm16.new.19717/lldb-16.0.1.src.tar.xz differ: 
char 27, line 1

++++++ llvm-16.0.0.src.tar.xz -> llvm-16.0.1.src.tar.xz ++++++
/work/SRC/openSUSE:Factory/llvm16/llvm-16.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm16.new.19717/llvm-16.0.1.src.tar.xz differ: 
char 26, line 1

++++++ llvm-do-not-install-static-libraries.patch ++++++
--- /var/tmp/diff_new_pack.IBcGO7/_old  2023-04-08 17:39:21.386146741 +0200
+++ /var/tmp/diff_new_pack.IBcGO7/_new  2023-04-08 17:39:21.386146741 +0200
@@ -2,10 +2,10 @@
 want after installation. By not copying them in the first place we reduce the
 disk usage during installation.
 
-Index: clang-16.0.0.src/cmake/modules/AddClang.cmake
+Index: clang-16.0.1.src/cmake/modules/AddClang.cmake
 ===================================================================
---- a/clang-16.0.0.src/cmake/modules/AddClang.cmake
-+++ b/clang-16.0.0.src/cmake/modules/AddClang.cmake
+--- a/clang-16.0.1.src/cmake/modules/AddClang.cmake
++++ b/clang-16.0.1.src/cmake/modules/AddClang.cmake
 @@ -106,12 +106,15 @@ macro(add_clang_library name)
  
        if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)
@@ -68,10 +68,10 @@
    endif()
    if (ARG_MODULE)
      set_target_properties(${name} PROPERTIES FOLDER "Loadable modules")
-Index: lld-16.0.0.src/cmake/modules/AddLLD.cmake
+Index: lld-16.0.1.src/cmake/modules/AddLLD.cmake
 ===================================================================
---- a/lld-16.0.0.src/cmake/modules/AddLLD.cmake
-+++ b/lld-16.0.0.src/cmake/modules/AddLLD.cmake
+--- a/lld-16.0.1.src/cmake/modules/AddLLD.cmake
++++ b/lld-16.0.1.src/cmake/modules/AddLLD.cmake
 @@ -17,13 +17,6 @@ macro(add_lld_library name)
  
    if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
@@ -86,10 +86,10 @@
      if (${ARG_SHARED} AND NOT CMAKE_CONFIGURATION_TYPES)
        add_llvm_install_targets(install-${name}
          DEPENDS ${name}
-Index: polly-16.0.0.src/cmake/polly_macros.cmake
+Index: polly-16.0.1.src/cmake/polly_macros.cmake
 ===================================================================
---- a/polly-16.0.0.src/cmake/polly_macros.cmake
-+++ b/polly-16.0.0.src/cmake/polly_macros.cmake
+--- a/polly-16.0.1.src/cmake/polly_macros.cmake
++++ b/polly-16.0.1.src/cmake/polly_macros.cmake
 @@ -42,12 +42,14 @@ macro(add_polly_library name)
      llvm_config(${name} ${LLVM_LINK_COMPONENTS})
    endif( LLVM_LINK_COMPONENTS )
@@ -110,10 +110,10 @@
  endmacro(add_polly_library)
  
  macro(add_polly_loadable_module name)
-Index: polly-16.0.0.src/lib/CMakeLists.txt
+Index: polly-16.0.1.src/lib/CMakeLists.txt
 ===================================================================
---- a/polly-16.0.0.src/lib/CMakeLists.txt
-+++ b/polly-16.0.0.src/lib/CMakeLists.txt
+--- a/polly-16.0.1.src/lib/CMakeLists.txt
++++ b/polly-16.0.1.src/lib/CMakeLists.txt
 @@ -74,7 +74,7 @@ set_target_properties(PollyCore PROPERTI
  # It depends on all library it needs, such that with
  # LLVM_POLLY_LINK_INTO_TOOLS=ON, its dependencies like PollyISL are linked as

++++++ llvm-docs-16.0.0.src.tar.xz -> llvm-docs-16.0.1.src.tar.xz ++++++
/work/SRC/openSUSE:Factory/llvm16/llvm-docs-16.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm16.new.19717/llvm-docs-16.0.1.src.tar.xz 
differ: char 27, line 1


++++++ openmp-16.0.0.src.tar.xz -> openmp-16.0.1.src.tar.xz ++++++

++++++ polly-16.0.0.src.tar.xz -> polly-16.0.1.src.tar.xz ++++++
/work/SRC/openSUSE:Factory/llvm16/polly-16.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm16.new.19717/polly-16.0.1.src.tar.xz differ: 
char 26, line 1

++++++ third-party-16.0.0.src.tar.xz -> third-party-16.0.1.src.tar.xz ++++++

Reply via email to