Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libatomic_ops for openSUSE:Factory 
checked in at 2023-12-17 21:28:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libatomic_ops (Old)
 and      /work/SRC/openSUSE:Factory/.libatomic_ops.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libatomic_ops"

Sun Dec 17 21:28:52 2023 rev:18 rq:1133559 version:7.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libatomic_ops/libatomic_ops.changes      
2023-04-01 23:27:03.535356001 +0200
+++ /work/SRC/openSUSE:Factory/.libatomic_ops.new.25432/libatomic_ops.changes   
2023-12-17 21:28:57.810259885 +0100
@@ -1,0 +2,8 @@
+Fri Dec 15 21:54:03 UTC 2023 - Jan Engelhardt <[email protected]>
+
+- Update to release 7.8.2
+  * Eliminate 'atomic_thread_fence is unsupported with tsan' gcc-11 warning
+  * Fix get_chunk for case of mmap area is located before AO_initial_heap
+  * Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
+
+-------------------------------------------------------------------

Old:
----
  libatomic_ops-7.8.0.tar.gz

New:
----
  libatomic_ops-7.8.2.tar.gz

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

Other differences:
------------------
++++++ libatomic_ops.spec ++++++
--- /var/tmp/diff_new_pack.961Ek9/_old  2023-12-17 21:28:59.398317550 +0100
+++ /var/tmp/diff_new_pack.961Ek9/_new  2023-12-17 21:28:59.414318132 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           libatomic_ops
-Version:        7.8.0
+Version:        7.8.2
 Release:        0
 Summary:        A portable library for atomic memory operations
 License:        GPL-2.0-or-later AND MIT

++++++ libatomic_ops-7.8.0.tar.gz -> libatomic_ops-7.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/CMakeLists.txt 
new/libatomic_ops-7.8.2/CMakeLists.txt
--- old/libatomic_ops-7.8.0/CMakeLists.txt      2023-03-28 06:31:27.000000000 
+0200
+++ new/libatomic_ops-7.8.2/CMakeLists.txt      2023-12-15 22:41:47.000000000 
+0100
@@ -20,16 +20,16 @@
 # SOFTWARE.
 ##
 
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5)
 
-set(PACKAGE_VERSION 7.8.0)
+set(PACKAGE_VERSION 7.8.2)
 # Version must match that in AC_INIT of configure.ac and that in README.
 # Version must conform to: [0-9]+[.][0-9]+[.][0-9]+
 
 # Info (current:revision:age) for the Libtool versioning system.
 # These values should match those in src/Makefile.am.
 set(LIBATOMIC_OPS_VER_INFO      3:0:2)
-set(LIBATOMIC_OPS_GPL_VER_INFO  3:0:2)
+set(LIBATOMIC_OPS_GPL_VER_INFO  3:1:2)
 
 project(libatomic_ops C)
 
@@ -178,27 +178,29 @@
 endif(enable_gpl)
 
 if (BUILD_SHARED_LIBS)
-  if (${CMAKE_VERSION} VERSION_LESS "3.18.0")
-    set(WL_NO_UNDEFINED_OPT "-Wl,--no-undefined")
-    check_c_compiler_flag(${WL_NO_UNDEFINED_OPT} HAVE_FLAG_WL_NO_UNDEFINED)
-  else()
-    set(WL_NO_UNDEFINED_OPT "LINKER:--no-undefined")
-    check_linker_flag(C "${WL_NO_UNDEFINED_OPT}" HAVE_FLAG_WL_NO_UNDEFINED)
-  endif()
-  if (HAVE_FLAG_WL_NO_UNDEFINED)
-    # Declare that the libraries do not refer to external symbols.
-    if (${CMAKE_VERSION} VERSION_LESS "3.13.0")
-      target_link_libraries(atomic_ops PRIVATE ${WL_NO_UNDEFINED_OPT})
-      if (enable_gpl)
-        target_link_libraries(atomic_ops_gpl PRIVATE ${WL_NO_UNDEFINED_OPT})
-      endif(enable_gpl)
+  if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "BSD"))
+    if (${CMAKE_VERSION} VERSION_LESS "3.18.0")
+      set(WL_NO_UNDEFINED_OPT "-Wl,--no-undefined")
+      check_c_compiler_flag(${WL_NO_UNDEFINED_OPT} HAVE_FLAG_WL_NO_UNDEFINED)
     else()
-      target_link_options(atomic_ops PRIVATE ${WL_NO_UNDEFINED_OPT})
-      if (enable_gpl)
-        target_link_options(atomic_ops_gpl PRIVATE ${WL_NO_UNDEFINED_OPT})
-      endif(enable_gpl)
+      set(WL_NO_UNDEFINED_OPT "LINKER:--no-undefined")
+      check_linker_flag(C "${WL_NO_UNDEFINED_OPT}" HAVE_FLAG_WL_NO_UNDEFINED)
     endif()
-  endif(HAVE_FLAG_WL_NO_UNDEFINED)
+    if (HAVE_FLAG_WL_NO_UNDEFINED)
+      # Declare that the libraries do not refer to external symbols.
+      if (${CMAKE_VERSION} VERSION_LESS "3.13.0")
+        target_link_libraries(atomic_ops PRIVATE ${WL_NO_UNDEFINED_OPT})
+        if (enable_gpl)
+          target_link_libraries(atomic_ops_gpl PRIVATE ${WL_NO_UNDEFINED_OPT})
+        endif(enable_gpl)
+      else()
+        target_link_options(atomic_ops PRIVATE ${WL_NO_UNDEFINED_OPT})
+        if (enable_gpl)
+          target_link_options(atomic_ops_gpl PRIVATE ${WL_NO_UNDEFINED_OPT})
+        endif(enable_gpl)
+      endif()
+    endif(HAVE_FLAG_WL_NO_UNDEFINED)
+  endif()
   set_property(TARGET atomic_ops PROPERTY VERSION ${AO_VERSION_PROP})
   set_property(TARGET atomic_ops PROPERTY SOVERSION ${AO_SOVERSION})
 endif(BUILD_SHARED_LIBS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/ChangeLog 
new/libatomic_ops-7.8.2/ChangeLog
--- old/libatomic_ops-7.8.0/ChangeLog   2023-03-28 06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/ChangeLog   2023-12-15 22:41:47.000000000 +0100
@@ -1,4 +1,18 @@
 
+== [7.8.2] 2023-12-15 ==
+
+* Eliminate 'atomic_thread_fence is unsupported with tsan' gcc-11 warning
+* Eliminate 'comparing signed/unsigned values' lcc warning in add_chunk_as
+* Fix 'undefined reference to AO_pt_lock' if configure is using clang-16
+* Fix 'undefined reference to __atomic_load/store/cas_16' Mingw64-gcc error
+* Fix 'undefined reference' linker errors if shared build on OpenBSD (CMake)
+* Fix get_chunk for case of mmap area is located before AO_initial_heap
+* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
+* Fix typo in comment of run_one_test of test_stack
+* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
+* Update cmake minimum required version to 3.5
+
+
 == [7.8.0] 2023-03-26 ==
 
 * Add AUTHORS file to the list of installed documentation
@@ -48,10 +62,22 @@
 * Support build with CMake
 * Support double-wide CAS on armv7+ and UWP/arm64 (MS VC)
 * Support test_atomic with MS build w/o the need to run GNU make first
+* Update autotools for release tarball preparation (ac-2.71, m4-1.4.19)
 * Use GCC atomic intrinsics for SPARC
 * Use builtin_expect in AO_stack_push_explicit_aux_release
 
 
+== [7.6.16] 2023-12-15 ==
+
+* Eliminate 'atomic_thread_fence is unsupported with tsan' gcc-11 warning
+* Eliminate 'comparing signed/unsigned values' lcc warning in add_chunk_as
+* Fix 'undefined reference to AO_pt_lock' if configure is using clang-16
+* Fix 'undefined reference to __atomic_load/store/cas_16' Mingw64-gcc error
+* Fix get_chunk for case of mmap area is located before AO_initial_heap
+* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
+* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
+
+
 == [7.6.14] 2022-08-25 ==
 
 * Add note to README that AO malloc code has same license as AO stack
@@ -245,6 +271,14 @@
 Also, includes 7.4.6 changes
 
 
+== [7.4.20] 2023-12-15 ==
+
+* Eliminate 'comparing signed/unsigned values' lcc warning in add_chunk_as
+* Fix get_chunk for case of mmap area is located before AO_initial_heap
+* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
+* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
+
+
 == [7.4.18] 2022-08-25 ==
 
 * Avoid AO_stack_t to cross CPU cache line boundary
@@ -482,6 +516,13 @@
 Also, includes 7.2 changes
 
 
+== [7.2l] 2023-12-15 ==
+
+* Fix get_chunk for case of mmap area is located before AO_initial_heap
+* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
+* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
+
+
 == [7.2k] 2022-08-24 ==
 
 * Avoid AO_stack_t to cross CPU cache line boundary
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/README.md 
new/libatomic_ops-7.8.2/README.md
--- old/libatomic_ops-7.8.0/README.md   2023-03-28 06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/README.md   2023-12-15 22:41:47.000000000 +0100
@@ -3,7 +3,7 @@
 IN NEW CODE, PLEASE USE C11 OR C++14 STANDARD ATOMICS INSTEAD OF THE CORE
 LIBRARY IN THIS PACKAGE.
 
-This is version 7.8.0 of libatomic_ops.
+This is version 7.8.2 of libatomic_ops.
 
 License: [MIT](LICENSE) for core library / [GPL-2.0](COPYING) for gpl
 extension.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/configure 
new/libatomic_ops-7.8.2/configure
--- old/libatomic_ops-7.8.0/configure   2023-03-28 06:32:24.000000000 +0200
+++ new/libatomic_ops-7.8.2/configure   2023-12-15 22:42:47.000000000 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for libatomic_ops 7.8.0.
+# Generated by GNU Autoconf 2.71 for libatomic_ops 7.8.2.
 #
 # Report bugs to <https://github.com/ivmai/libatomic_ops/issues>.
 #
@@ -621,8 +621,8 @@
 # Identity of this package.
 PACKAGE_NAME='libatomic_ops'
 PACKAGE_TARNAME='libatomic_ops'
-PACKAGE_VERSION='7.8.0'
-PACKAGE_STRING='libatomic_ops 7.8.0'
+PACKAGE_VERSION='7.8.2'
+PACKAGE_STRING='libatomic_ops 7.8.2'
 PACKAGE_BUGREPORT='https://github.com/ivmai/libatomic_ops/issues'
 PACKAGE_URL=''
 
@@ -820,12 +820,12 @@
 with_gnu_ld
 with_sysroot
 enable_libtool_lock
-enable_werror
 enable_assertions
 enable_atomic_intrinsics
 enable_gcov
 enable_gpl
 enable_docs
+enable_werror
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1386,7 +1386,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libatomic_ops 7.8.0 to adapt to many kinds of systems.
+\`configure' configures libatomic_ops 7.8.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1458,7 +1458,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libatomic_ops 7.8.0:";;
+     short | recursive ) echo "Configuration of libatomic_ops 7.8.2:";;
    esac
   cat <<\_ACEOF
 
@@ -1480,13 +1480,13 @@
   --enable-fast-install[=PKGS]
                           optimize for fast installation [default=yes]
   --disable-libtool-lock  avoid locking (might break parallel builds)
-  --enable-werror         Pass -Werror to the C compiler
   --enable-assertions     Assertion checking
   --disable-atomic-intrinsics
                           Do not use GCC atomic intrinsics
   --enable-gcov           Turn on code coverage analysis
   --disable-gpl           Do not build atomic_ops_gpl library
   --disable-docs          Do not build and install documentation
+  --enable-werror         Pass -Werror to the C compiler
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -1580,7 +1580,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libatomic_ops configure 7.8.0
+libatomic_ops configure 7.8.2
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1841,7 +1841,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libatomic_ops $as_me 7.8.0, which was
+It was created by libatomic_ops $as_me 7.8.2, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -3231,7 +3231,7 @@
 
 # Define the identity of the package.
  PACKAGE='libatomic_ops'
- VERSION='7.8.0'
+ VERSION='7.8.2'
 
 
 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -13130,16 +13130,6 @@
 fi
   CFLAGS="-Wall $WEXTRA $WPEDANTIC $CFLAGS"
 
-  # Check whether --enable-werror was given.
-if test ${enable_werror+y}
-then :
-  enableval=$enable_werror;
-fi
-
-  if test "$enable_werror" = yes; then
-    CFLAGS="-Werror $CFLAGS"
-  fi
-
   CC="$old_CC"
 else
   case "$host" in
@@ -13343,6 +13333,19 @@
   CFLAGS="-DAO_DLL $CFLAGS"
 fi
 
+# Turn compiler warnings into errors, if requested.
+# Note: this check is placed after AC_CHECK_LIB(pthread) to workaround
+# a missing void in pthread_self declaration generated by autoconf.
+# Check whether --enable-werror was given.
+if test ${enable_werror+y}
+then :
+  enableval=$enable_werror;
+fi
+
+if test "$enable_werror" = yes -a "$GCC" = yes; then
+  CFLAGS="-Werror $CFLAGS"
+fi
+
  if test x$enable_shared = xyes; then
   ENABLE_SHARED_TRUE=
   ENABLE_SHARED_FALSE='#'
@@ -13924,7 +13927,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libatomic_ops $as_me 7.8.0, which was
+This file was extended by libatomic_ops $as_me 7.8.2, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13992,7 +13995,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-libatomic_ops config.status 7.8.0
+libatomic_ops config.status 7.8.2
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/configure.ac 
new/libatomic_ops-7.8.2/configure.ac
--- old/libatomic_ops-7.8.0/configure.ac        2023-03-28 06:31:27.000000000 
+0200
+++ new/libatomic_ops-7.8.2/configure.ac        2023-12-15 22:41:47.000000000 
+0100
@@ -12,7 +12,7 @@
 
 dnl Process this file with autoconf to produce configure.
 
-AC_INIT([libatomic_ops],[7.8.0],https://github.com/ivmai/libatomic_ops/issues)
+AC_INIT([libatomic_ops],[7.8.2],https://github.com/ivmai/libatomic_ops/issues)
 
 AC_PREREQ(2.61)
 AC_CANONICAL_TARGET([])
@@ -88,12 +88,6 @@
         [WPEDANTIC="-Wpedantic -Wno-long-long"])
   CFLAGS="-Wall $WEXTRA $WPEDANTIC $CFLAGS"
 
-  AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
-                                        [Pass -Werror to the C compiler])])
-  if test "$enable_werror" = yes; then
-    CFLAGS="-Werror $CFLAGS"
-  fi
-
   CC="$old_CC"
 else
   case "$host" in
@@ -239,6 +233,15 @@
   CFLAGS="-DAO_DLL $CFLAGS"
 fi
 
+# Turn compiler warnings into errors, if requested.
+# Note: this check is placed after AC_CHECK_LIB(pthread) to workaround
+# a missing void in pthread_self declaration generated by autoconf.
+AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror],
+                                      [Pass -Werror to the C compiler])])
+if test "$enable_werror" = yes -a "$GCC" = yes; then
+  CFLAGS="-Werror $CFLAGS"
+fi
+
 AM_CONDITIONAL(ENABLE_SHARED, test x$enable_shared = xyes)
 AM_CONDITIONAL(HAVE_PTHREAD_H, test x$have_pthreads = xtrue)
 AM_CONDITIONAL(NEED_ASM, test x$need_asm = xtrue)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/Makefile.am 
new/libatomic_ops-7.8.2/src/Makefile.am
--- old/libatomic_ops-7.8.0/src/Makefile.am     2023-03-28 06:31:27.000000000 
+0200
+++ new/libatomic_ops-7.8.2/src/Makefile.am     2023-12-15 22:41:47.000000000 
+0100
@@ -3,7 +3,7 @@
 # These numbers should be updated at most once just before the release,
 # and, optionally, at most once during the development (after the release).
 LIBATOMIC_OPS_VER_INFO = 3:0:2
-LIBATOMIC_OPS_GPL_VER_INFO = 3:0:2
+LIBATOMIC_OPS_GPL_VER_INFO = 3:1:2
 
 AM_CFLAGS=@PICFLAG@
 AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/Makefile.in 
new/libatomic_ops-7.8.2/src/Makefile.in
--- old/libatomic_ops-7.8.0/src/Makefile.in     2023-03-28 06:32:25.000000000 
+0200
+++ new/libatomic_ops-7.8.2/src/Makefile.in     2023-12-15 22:42:48.000000000 
+0100
@@ -376,7 +376,7 @@
 # These numbers should be updated at most once just before the release,
 # and, optionally, at most once during the development (after the release).
 LIBATOMIC_OPS_VER_INFO = 3:0:2
-LIBATOMIC_OPS_GPL_VER_INFO = 3:0:2
+LIBATOMIC_OPS_GPL_VER_INFO = 3:1:2
 AM_CFLAGS = @PICFLAG@
 AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
 include_HEADERS = atomic_ops.h $(am__append_1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/atomic_ops/ao_version.h 
new/libatomic_ops-7.8.2/src/atomic_ops/ao_version.h
--- old/libatomic_ops-7.8.0/src/atomic_ops/ao_version.h 2023-03-28 
06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops/ao_version.h 2023-12-15 
22:41:47.000000000 +0100
@@ -35,4 +35,4 @@
 /* The version here should match that in configure.ac and README.       */
 #define AO_VERSION_MAJOR 7
 #define AO_VERSION_MINOR 8
-#define AO_VERSION_MICRO 0 /* 7.8.0 */
+#define AO_VERSION_MICRO 2 /* 7.8.2 */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libatomic_ops-7.8.0/src/atomic_ops/sysdeps/gcc/generic.h 
new/libatomic_ops-7.8.2/src/atomic_ops/sysdeps/gcc/generic.h
--- old/libatomic_ops-7.8.0/src/atomic_ops/sysdeps/gcc/generic.h        
2023-03-28 06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops/sysdeps/gcc/generic.h        
2023-12-15 22:41:47.000000000 +0100
@@ -58,6 +58,10 @@
   }
 # define AO_HAVE_nop_full
 
+#elif defined(AO_THREAD_SANITIZER) && !defined(AO_USE_ATOMIC_THREAD_FENCE)
+  /* Workaround a compiler warning (reported by gcc-11, at least)   */
+  /* that atomic_thread_fence is unsupported with thread sanitizer. */
+
 #else
   AO_INLINE void
   AO_nop_read(void)
@@ -82,7 +86,7 @@
     __atomic_thread_fence(__ATOMIC_SEQ_CST);
   }
 # define AO_HAVE_nop_full
-#endif /* !AO_UNIPROCESSOR */
+#endif /* !AO_UNIPROCESSOR && !AO_THREAD_SANITIZER */
 
 #include "generic-small.h"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/atomic_ops/sysdeps/gcc/x86.h 
new/libatomic_ops-7.8.2/src/atomic_ops/sysdeps/gcc/x86.h
--- old/libatomic_ops-7.8.0/src/atomic_ops/sysdeps/gcc/x86.h    2023-03-28 
06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops/sysdeps/gcc/x86.h    2023-12-15 
22:41:47.000000000 +0100
@@ -68,14 +68,14 @@
 #     endif
 #   endif /* __x86_64__ */
 
-# elif AO_GNUC_PREREQ(7, 0) && !defined(AO_PREFER_BUILTIN_ATOMICS) \
-       && !defined(AO_THREAD_SANITIZER) && !defined(__MINGW32__)
-    /* gcc-7.x/x64 (gcc-7.2, at least) requires -latomic flag in case   */
+# elif defined(__x86_64__) && !defined(AO_PREFER_BUILTIN_ATOMICS) \
+       && !defined(AO_THREAD_SANITIZER)
+    /* gcc/x64 (as of gcc-12.2) requires -latomic flag in case          */
     /* of double-word atomic operations use (but not in case of TSan).  */
-    /* TODO: Revise it for the future gcc-7 releases. */
+    /* TODO: Revise it for the future gcc releases. */
 #   define AO_SKIPATOMIC_double_compare_and_swap_ANY
 #   define AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY
-# endif /* __GNUC__ && !__clang__ */
+# endif /* __x86_64__ && !__clang__ */
 
 # ifdef AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY
 #   define AO_SKIPATOMIC_double_load
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/atomic_ops_malloc.c 
new/libatomic_ops-7.8.2/src/atomic_ops_malloc.c
--- old/libatomic_ops-7.8.0/src/atomic_ops_malloc.c     2023-03-28 
06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops_malloc.c     2023-12-15 
22:41:47.000000000 +0100
@@ -66,7 +66,7 @@
  *      The binary log of the object size in bytes (small objects)
  *      The object size (a multiple of CHUNK_SIZE) for large objects.
  * The second case only arises if mmap-based allocation is supported.
- * We align the user-visible part of each object on a GRANULARITY
+ * We align the user-visible part of each object on an ALIGNMENT
  * byte boundary.  That means that the actual (hidden) start of
  * the object starts a word before this boundary.
  */
@@ -240,8 +240,8 @@
                                     (AO_t)initial_ptr, (AO_t)my_chunk_ptr);
       }
 
-    if (AO_EXPECT_FALSE((AO_t)my_chunk_ptr
-            > (AO_t)(AO_initial_heap + AO_INITIAL_HEAP_SIZE - CHUNK_SIZE))) {
+    if (AO_EXPECT_FALSE((AO_t)my_chunk_ptr - (AO_t)AO_initial_heap
+                        > (size_t)(AO_INITIAL_HEAP_SIZE - CHUNK_SIZE))) {
       /* We failed.  The initial heap is used up.       */
       my_chunk_ptr = get_mmaped(CHUNK_SIZE);
 #     if !defined(CPPCHECK)
@@ -268,7 +268,7 @@
   size_t ofs, limit;
   size_t sz = (size_t)1 << log_sz;
 
-  assert(CHUNK_SIZE >= sz);
+  assert((size_t)CHUNK_SIZE >= sz);
   assert(sz % sizeof(AO_t) == 0);
   limit = (size_t)CHUNK_SIZE - sz;
   for (ofs = ALIGNMENT - sizeof(AO_t); ofs <= limit; ofs += sz) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/atomic_ops_stack.c 
new/libatomic_ops-7.8.2/src/atomic_ops_stack.c
--- old/libatomic_ops-7.8.0/src/atomic_ops_stack.c      2023-03-28 
06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops_stack.c      2023-12-15 
22:41:47.000000000 +0100
@@ -255,7 +255,7 @@
                                              &list->AO_pa.AO_aux);
   }
 
-#else /* ! USE_ALMOST_LOCK_FREE */
+#else /* !AO_USE_ALMOST_LOCK_FREE */
 
   /* The functionality is the same as of AO_load_next but the atomicity */
   /* is not needed.  The usage is similar to that of store_before_cas.  */
@@ -327,7 +327,7 @@
         cptr = (AO_t *)AO_load(&list->ptr);
         if (NULL == cptr)
           return NULL;
-        next = load_before_cas((AO_t *)cptr);
+        next = load_before_cas((/* no volatile */ AO_t *)cptr);
       } while (AO_EXPECT_FALSE(!AO_compare_double_and_swap_double_release(
                                         &list->AO_vp, cversion, (AO_t)cptr,
                                         cversion+1, next)));
@@ -377,4 +377,4 @@
 
 # undef ptr
 # undef version
-#endif /* ! USE_ALMOST_LOCK_FREE */
+#endif /* !AO_USE_ALMOST_LOCK_FREE */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/src/atomic_ops_stack.h 
new/libatomic_ops-7.8.2/src/atomic_ops_stack.h
--- old/libatomic_ops-7.8.0/src/atomic_ops_stack.h      2023-03-28 
06:31:27.000000000 +0200
+++ new/libatomic_ops-7.8.2/src/atomic_ops_stack.h      2023-12-15 
22:41:47.000000000 +0100
@@ -45,7 +45,7 @@
   /* Use the almost-non-blocking implementation regardless of the       */
   /* double-word CAS availability.                                      */
 #elif !defined(AO_HAVE_compare_double_and_swap_double) \
-      && !defined(AO_HAVE_compare_double_and_swap) \
+      && !defined(AO_HAVE_compare_and_swap_double) \
       && defined(AO_HAVE_compare_and_swap)
 # define AO_USE_ALMOST_LOCK_FREE
 #else
@@ -71,7 +71,7 @@
  *
  * We make some machine-dependent assumptions:
  *   - We have a compare-and-swap operation.
- *   - At least _AO_N_BITS low order bits in pointers are
+ *   - At least AO_N_BITS low order bits in pointers are
  *     zero and normally unused.
  *   - size_t and pointers have the same size.
  *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libatomic_ops-7.8.0/tests/test_stack.c 
new/libatomic_ops-7.8.2/tests/test_stack.c
--- old/libatomic_ops-7.8.0/tests/test_stack.c  2023-03-28 06:31:27.000000000 
+0200
+++ new/libatomic_ops-7.8.2/tests/test_stack.c  2023-12-15 22:41:47.000000000 
+0100
@@ -216,7 +216,7 @@
   assert(index <= MAX_NTHREADS);
   while (fetch_then_add(&ops_performed, index + 1) + index + 1 < LIMIT)
     {
-      /* Pop index+1 elements (where index is the thread one), then     */
+      /* Pop index+1 elements (where index is the thread's one), then   */
       /* push them back (in the same order of operations).              */
       /* Note that this is done in parallel by many threads.            */
       for (i = 0; i <= index; ++i)

Reply via email to