public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libatomic_ops/files/
@ 2018-06-13 21:18 Aaron Bauman
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Bauman @ 2018-06-13 21:18 UTC (permalink / raw
  To: gentoo-commits

commit:     50c69cb8d8c946d7a4f0f2c193cefdf28b3779d4
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Jun 13 17:52:29 2018 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Jun 13 21:14:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50c69cb8

dev-libs/libatomic_ops: remove unused patches

Closes: https://github.com/gentoo/gentoo/pull/8837

 ...libatomic_ops-1.2-fix-makefile-am-generic.patch | 19 -------
 .../files/libatomic_ops-1.2-ppc-asm.patch          | 11 ----
 .../libatomic_ops-1.2-ppc64-load_acquire.patch     | 46 -----------------
 .../files/libatomic_ops-1.2-sh4.patch              | 59 ----------------------
 .../files/libatomic_ops-1.2-x32.patch              | 43 ----------------
 5 files changed, 178 deletions(-)

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-fix-makefile-am-generic.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-fix-makefile-am-generic.patch
deleted file mode 100644
index 7b1f898ef9b..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-fix-makefile-am-generic.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -u -r a//doc/Makefile.am b//doc/Makefile.am
---- a//doc/Makefile.am	2005-03-22 00:05:19.000000000 +0200
-+++ b//doc/Makefile.am	2010-04-18 20:08:13.000000000 +0300
-@@ -1,3 +1,3 @@
- # installed documentation
- #
--dist_pkgdata_DATA=COPYING LICENSING.txt README.txt COPYING README_stack.txt README_malloc.txt README_win32.txt
-+dist_pkgdata_DATA=COPYING LICENSING.txt README.txt README_stack.txt README_malloc.txt README_win32.txt
-diff -u -r a//src/atomic_ops/sysdeps/Makefile.am b//src/atomic_ops/sysdeps/Makefile.am
---- a//src/atomic_ops/sysdeps/Makefile.am	2005-09-28 02:53:16.000000000 +0300
-+++ b//src/atomic_ops/sysdeps/Makefile.am	2010-04-18 20:04:03.000000000 +0300
-@@ -25,7 +25,6 @@
- 	  README \
- 	\
- 	  gcc/alpha.h gcc/arm.h gcc/x86.h \
--	  gcc/hppa.h gcc/ia64.h \
- 	  gcc/powerpc.h gcc/sparc.h \
- 	  gcc/hppa.h gcc/m68k.h gcc/s390.h \
- 	  gcc/ia64.h gcc/x86_64.h gcc/cris.h \

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc-asm.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc-asm.patch
deleted file mode 100644
index 41171ed86e6..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc-asm.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/atomic_ops/sysdeps/gcc/powerpc.h	2006-03-29 09:49:14.000000000 +1100
-+++ src/atomic_ops/sysdeps/gcc/powerpc.h	2007-08-27 10:51:00.000000000 +1000
-@@ -72,7 +72,7 @@
-   /* registers.  I always got "impossible constraint" when I	*/
-   /* tried the "y" constraint.					*/
-   __asm__ __volatile__ (
--    "lwz %0,%1\n"
-+    "lwz%X1 %0,%1\n"
-     "cmpw cr7,%0,%0\n"
-     "bne- cr7,1f\n"
-     "1: isync\n"

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch
deleted file mode 100644
index 9b6baa188cf..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- src/atomic_ops/sysdeps/gcc/powerpc.h.orig	2006-03-28 22:49:14.000000000 +0000
-+++ src/atomic_ops/sysdeps/gcc/powerpc.h	2007-06-08 23:10:07.000000000 +0000
-@@ -63,6 +63,8 @@
- /* seems to be that a data dependent branch followed by an isync is 	*/
- /* cheaper.  And the documentation is fairly explicit that this also 	*/
- /* has acquire semantics.						*/
-+/* ppc64 uses ld not lwz */
-+#if defined(__powerpc64__) || defined(__ppc64__) || defined(__64BIT__)
- AO_INLINE AO_t
- AO_load_acquire(volatile AO_t *addr)
- {
-@@ -72,7 +74,7 @@
-   /* registers.  I always got "impossible constraint" when I	*/
-   /* tried the "y" constraint.					*/
-   __asm__ __volatile__ (
--    "lwz %0,%1\n"
-+    "ld %0,%1\n"
-     "cmpw cr7,%0,%0\n"
-     "bne- cr7,1f\n"
-     "1: isync\n"
-@@ -80,7 +82,25 @@
-     : "m"(*addr) : "memory", "cc");
-   return result;
- }
-+#else
-+AO_INLINE AO_t
-+AO_load_acquire(volatile AO_t *addr)
-+{
-+  AO_t result;
- 
-+  /* FIXME: We should get gcc to allocate one of the condition	*/
-+  /* registers.  I always got "impossible constraint" when I	*/
-+  /* tried the "y" constraint.					*/
-+  __asm__ __volatile__ (
-+    "lwz %0,%1\n"
-+    "cmpw cr7,%0,%0\n"
-+    "bne- cr7,1f\n"
-+    "1: isync\n"
-+    : "=r" (result)
-+    : "m"(*addr) : "memory", "cc");
-+  return result;
-+}
-+#endif
- #define AO_HAVE_load_acquire
- 
- /* We explicitly specify store_release, since it relies 	*/

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-sh4.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-sh4.patch
deleted file mode 100644
index 4e8dd66a355..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-sh4.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- libatomic_ops/src/atomic_ops.h
-+++ libatomic_ops/src/atomic_ops.h
-@@ -228,6 +228,10 @@
- # if defined(__cris__) || defined(CRIS)
- #   include "atomic_ops/sysdeps/gcc/cris.h"
- # endif
-+# if defined(__sh__) || defined(SH4)
-+#   include "atomic_ops/sysdeps/gcc/sh.h"
-+#   define AO_CAN_EMUL_CAS
-+# endif /* __sh__ */
- #endif /* __GNUC__ && !AO_USE_PTHREAD_DEFS */
- 
- #if defined(__INTEL_COMPILER) && !defined(AO_USE_PTHREAD_DEFS)
-only in patch2:
-unchanged:
---- libatomic_ops/src/atomic_ops/sysdeps/Makefile.am
-+++ libatomic_ops/src/atomic_ops/sysdeps/Makefile.am
-@@ -29,6 +29,7 @@
- 	  gcc/powerpc.h gcc/sparc.h \
- 	  gcc/hppa.h gcc/m68k.h gcc/s390.h \
- 	  gcc/ia64.h gcc/x86_64.h gcc/cris.h \
-+	  gcc/sh.h \
- 	\
- 	  icc/ia64.h \
- 	\
---- libatomic_ops/src/atomic_ops/sysdeps/gcc/sh.h
-+++ libatomic_ops/src/atomic_ops/sysdeps/gcc/sh.h
-@@ -0,0 +1,31 @@
-+/*
-+ * Copyright (c) 2009 by Takashi YOSHII. All rights reserved.
-+ *
-+ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
-+ * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
-+ *
-+ * Permission is hereby granted to use or copy this program
-+ * for any purpose,  provided the above notices are retained on all copies.
-+ * Permission to modify the code and to distribute modified code is granted,
-+ * provided the above notices are retained, and a notice that the code was
-+ * modified is included with the above copyright notice.
-+ */
-+
-+#include "../all_atomic_load_store.h"
-+#include "../ordered.h"
-+
-+/* sh has tas.b(byte) only */
-+#include "../test_and_set_t_is_char.h"
-+
-+AO_INLINE AO_TS_VAL_t
-+AO_test_and_set_full(volatile AO_TS_t *addr)
-+{
-+  int oldval;
-+  __asm__ __volatile__(
-+        "tas.b @%1; movt %0"
-+        : "=r" (oldval)
-+        : "r" (addr)
-+        : "t", "memory");
-+  return oldval? AO_TS_CLEAR : AO_TS_SET;
-+}
-+#define AO_HAVE_test_and_set_full

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-x32.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-x32.patch
deleted file mode 100644
index 2edc6958f36..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-x32.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e3a384578f677c05d812d99c2c92aa13670bd06a
-
-Upstream-Status: Pending
-
-Remove the `q' suffix on x86-64 atomic instructions.
-
-We don't need the `q' suffix on x86_64 atomic instructions for AO_t,
-which is defined as "unsigned long".  "unsigned long" is 32bit for x32
-and 64bit for x86-64. The register operand in x86-64 atomic instructions
-is sufficient to properly determine the register size.
-
-Received this patch from H.J. Lu <hjl.tools@gmail.com>
-Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/02
-
---- libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/x86_64.h.x32	2005-09-28 17:16:38.000000000 -0700
-+++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/x86_64.h	2011-12-02 09:29:54.265251875 -0800
-@@ -60,7 +60,7 @@ AO_fetch_and_add_full (volatile AO_t *p,
- {
-   AO_t result;
- 
--  __asm__ __volatile__ ("lock; xaddq %0, %1" :
-+  __asm__ __volatile__ ("lock; xadd %0, %1" :
- 			"=r" (result), "=m" (*p) : "0" (incr), "m" (*p)
- 			: "memory");
-   return result;
-@@ -111,7 +111,7 @@ AO_int_fetch_and_add_full (volatile unsi
- AO_INLINE void
- AO_or_full (volatile AO_t *p, AO_t incr)
- {
--  __asm__ __volatile__ ("lock; orq %1, %0" :
-+  __asm__ __volatile__ ("lock; or %1, %0" :
- 			"=m" (*p) : "r" (incr), "m" (*p) : "memory");
- }
- 
-@@ -136,7 +136,7 @@ AO_compare_and_swap_full(volatile AO_t *
- 		  	     AO_t old, AO_t new_val) 
- {
-   char result;
--  __asm__ __volatile__("lock; cmpxchgq %3, %0; setz %1"
-+  __asm__ __volatile__("lock; cmpxchg %3, %0; setz %1"
- 	    	       : "=m"(*addr), "=q"(result)
- 		       : "m"(*addr), "r" (new_val), "a"(old) : "memory");
-   return (int) result;


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libatomic_ops/files/
@ 2019-03-02 12:38 Andreas Sturmlechner
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2019-03-02 12:38 UTC (permalink / raw
  To: gentoo-commits

commit:     2d64632b2ac6cc4603b87eb45983301dbbb54687
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Mar  2 12:01:29 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Mar  2 12:37:53 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d64632b

dev-libs/libatomic_ops: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11215
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/libatomic_ops-7.6.4-gcc7.patch           | 40 ----------------------
 1 file changed, 40 deletions(-)

diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-7.6.4-gcc7.patch b/dev-libs/libatomic_ops/files/libatomic_ops-7.6.4-gcc7.patch
deleted file mode 100644
index 66cabfa5582..00000000000
--- a/dev-libs/libatomic_ops/files/libatomic_ops-7.6.4-gcc7.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Upstream commit: https://github.com/ivmai/libatomic_ops/commit/759fa976432e4f09b4a436774fff7119da050042
-
-From 759fa976432e4f09b4a436774fff7119da050042 Mon Sep 17 00:00:00 2001
-From: Ivan Maidanski <ivmai@mail.ru>
-Date: Thu, 29 Mar 2018 01:42:38 +0300
-Subject: [PATCH] Fix 'undefined reference to __atomic_load/store/cas_16' error
- (gcc-7/x64)
-
-Issue #34 (libatomic_ops).
-
-* src/atomic_ops/sysdeps/gcc/x86.h [!AO_DISABLE_GCC_ATOMICS
-&& !__APPLE_CC__ && !__clang__ && AO_GNUC_PREREQ(7, 0)
-&& !AO_PREFER_BUILTIN_ATOMICS && !AO_THREAD_SANITIZER
-&& !__MINGW32__] (AO_SKIPATOMIC_double_compare_and_swap_ANY,
-AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY): Define macro; add comment.
----
- src/atomic_ops/sysdeps/gcc/x86.h | 10 +++++++++-
- 1 file changed, 9 insertions(+), 1 deletion(-)
-
-diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h
-index d7c06c5..b4ca39f 100644
---- a/src/atomic_ops/sysdeps/gcc/x86.h
-+++ b/src/atomic_ops/sysdeps/gcc/x86.h
-@@ -67,7 +67,15 @@
- #       define AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY
- #     endif
- #   endif /* __x86_64__ */
--# endif /* __clang__ */
-+
-+# 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   */
-+    /* of double-word atomic operations use (but not in case of TSan).  */
-+    /* TODO: Revise it for the future gcc-7 releases. */
-+#   define AO_SKIPATOMIC_double_compare_and_swap_ANY
-+#   define AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY
-+# endif /* __GNUC__ && !__clang__ */
- 
- # ifdef AO_SKIPATOMIC_DOUBLE_LOAD_STORE_ANY
- #   define AO_SKIPATOMIC_double_load


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-02 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-13 21:18 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libatomic_ops/files/ Aaron Bauman
  -- strict thread matches above, loose matches on Subject: below --
2019-03-02 12:38 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox