no attomics on armv5tel

This commit is contained in:
Dennis Gilmore 2012-04-21 00:29:51 -05:00
parent c79a1125a2
commit b96d668cc9
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- jemalloc-2.2.5/include/jemalloc/internal/atomic.h.orig 2012-04-21 00:24:23.000000000 -0400
+++ jemalloc-2.2.5/include/jemalloc/internal/atomic.h 2012-04-21 00:50:41.000000000 -0400
@@ -105,7 +105,7 @@
/******************************************************************************/
/* 32-bit operations. */
-#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
+#if ( defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || defined(__ARM_ARCH_5T__) )
JEMALLOC_INLINE uint32_t
atomic_add_uint32(uint32_t *p, uint32_t x)
{

View File

@ -1,7 +1,7 @@
Name: jemalloc
Version: 2.2.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: General-purpose scalable concurrent malloc implementation
Group: System Environment/Libraries
@ -14,6 +14,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: jemalloc-2.2.2.no_pprof.patch
# check for __s390__ as it's defined on both s390 and s390x
Patch1: jemalloc-2.0.1-s390.patch
# ARMv5tel has no atomic operations
Patch2: jemalloc-armv5-force-atomic.patch
BuildRequires: /usr/bin/xsltproc
@ -34,6 +36,7 @@ developing applications that use %{name}.
%setup -q
%patch0
%patch1 -p1 -b .s390
%patch2 -p1 -b .armv5tel
%build
%configure
@ -71,6 +74,9 @@ rm -rf %{buildroot}
%postun -p /sbin/ldconfig
%changelog
* Fri Apr 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.2.5-4
- no attomics on armv5tel
* Wed Feb 08 2012 Dan Horák <dan[at]danny.cz> - 2.2.5-3
- substitute version information in the header (#788517)