summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2014-04-16 11:21:32 +0000
committerwiz <wiz>2014-04-16 11:21:32 +0000
commitfb734adefc9e985a9cf774745133124d14ebc971 (patch)
treea56c311cae75b36c5de7bd1cb9cdcf2a0b78d3d2
parentba6bd5231966649a7304f12cdc71330ade379458 (diff)
downloadpkgsrc-fb734adefc9e985a9cf774745133124d14ebc971.tar.gz
Update to 7.4.0.
== [7.4.0] 2013-11-17 == * Add and/or/xor entries to list_atomic (tests). * Add char/short/int/AO_double_t and dd_acquire cases to list_atomic (tests). * Add compile-time assertion for size of 'standard' AO_double_t. * Add double_store pthread-based implementation and tests. * Add generalized CAS primitives of char/short/int size. * Add generalized atomic and/or/xor operations for char/short/int types. * Add generalized fetch_and_add_acquire/release (for ARMv6+). * Add generic implementation of double_load primitives. * Add information about AO_ASSUME_VISTA to README_win32. * Add internal header containing only char/short/int/AO_t atomic loads. * Add load/store primitives generalization based on CAS. * Add lock-based implementation of char/short/int_fetch_compare_and_swap. * Add makefile rule to test list_atomic.template syntax (tests). * Add missing 'const' in aligned-atomic XSIZE_load implementation. * Add missing double_compare_and_swap to generalization. * Add missing generalization of no-barrier CAS in template. * Add negative double-CAS test cases to test_atomic_include (tests). * Add test_stack to Makefile.msft (tests). * Adjust fprintf arguments type matching specifier in test_stack (tests). * Adjust included filenames in atomic_ops_malloc and test_stack. * Adjust quotes in echo command of Makefile.msft (Win32). * Always use 'mfence' for nop_full if target CPU supports SSE2 (gcc/x86). * Better document configure THREADDLLIBS variable. * Cast away volatile on dereference in CAS-based generalization primitives. * Change policy regarding version numbers ("micro" part instead of "alpha"). * Convert README to Markdown format. * Define AO_NO_PTHREADS in configure if no pthreads (Win32 and VxWorks). * Define AO_int_X operations for ARM and avr32. * Define double-wide ordered loads/stores for x86. * Define int_and/or/xor primitives in ao_t_is_int header. * Define nop_full as compiler barrier for pre-ARMv6 single-core case. * Do not duplicate BUILT_SOURCES entries in nobase_private_HEADERS (Makefile). * Do not include standard_ao_double_t.h where double-CAS is unimplemented. * Do not report absence of meaningless nop, load and store in test_atomic. * Do not use deprecated AO_T and AO_TS_T (tests). * Eliminate 'missing initializer' warning for AO_stack_t value initializer. * Eliminate 64-bit compiler warnings in atomic_ops_malloc. * Eliminate arithmetic shifts in double-CAS (gcc/arm, msftc/x86). * Eliminate warning for fetch_and_add argument in test_atomic_include (tests). * Enable Makefile.msft for Win64. * Enable build using toolchain without pthreads. * Enable double_compare_and_swap for non-cpp code (msftc/x86.h). * Enable generalization of all variants of CAS via fetch_compare_and_swap. * Enable test_stack for pthreads-w32 and Win32 with native threads. * Fix generalized AO_char/short_compare_and_swap args (missing 'unsigned'). * Fix makefile sed rule for list_atomic (tests). * Fix missing abort() usage in atomic_ops_malloc and tests on WinCE. * Generalize compare_double_and_swap_double using double_compare_and_swap. * Generalize double_load/store for x86_64 (GCC). * Generate ao_t_is_int, 'loadstore' headers from templates. * Generate generalized AO_t load/store/fetch_and_add primitives from template. * Generate ordered_loads/stores_only headers from templates. * Group all X_acquire_release_volatile.h and X_[aligned_]atomic_load_store.h. * Implement and/or/xor, AO_double_load for ARM. * Implement atomic store using direct write by default on ARMv6+. * Implement char/short/int-wide primitives using GCC built-in atomic/sync. * Implement char/short/int_fetch_and_add for msftc/x86[_64] (Win32). * Implement char/short_fetch_and_add, char/short_load for ARMv6+ (GCC). * Implement char/short_store primitives at aligned addresses for ARM. * Implement compare_double_and_swap_double for SunCC/x86. * Implement double_load/store based on guaranteed x86 access atomicity. * Implement double_store for ARMv7 using LDREXD/STREXD. * Implement load/store via simple LDR/STR for ARMv6+ (msftc). * Implement nop_full/write using 'dmb' instruction if available (gcc/arm). * Improve debug printing in test_stack (tests). * Log messages to stdout instead of stderr (tests). * Make AO_ASSUME_VISTA also enables Win98 code in msftc/x86.h (Win32). * Minimize gcc/generic-arithm template by factoring out barriers. * Move 'unsigned' keyword to XCTYPE in generalize-small template. * Move default compiler options to CFLAGS in Makefile.msft (Win32). * Move definitions of ordered loads/stores to inner separate headers. * Move gcc-generic AO_t-wide primitives to generic-small/arithm headers. * Move generalized arithmetical primitives to 'generalize-arithm' template. * Optimize AO_spin manually to minimize compiler influence on its duration. * Parameterize list_atomic template with XSIZE (tests). * Perform only few list reversals in test_malloc if AO based on pthreads. * Put autogen.sh to 'dist' package (Automake). * Remote duplicate definition of test_and_set_acquire in generalize.h. * Remove X_aligned_atomic_load_store headers and template. * Remove duplicate AO_spin and AO_pause definition in atomic_ops_stack. * Remove gcc/x86_64.h eliminating code duplication of gcc/x86.h. * Remove nested AO_USE_PTHREAD_DEFS macro check in atomic_ops.h (gcc/arm). * Remove redundant 'cc' clobber for LDREXD instruction (gcc/arm). * Remove store_full from msftc/arm.h in favor of generalized primitive. * Remove sunc/x86_64.h eliminating code duplication of sunc/x86.h. * Remove unsafe emulation-based implementation of double CAS (SunCC/x86_64). * Remove useless 'perror' call in run_parallel.h (tests). * Reorder AO_double_t union elements for AO_DOUBLE_T_INITIALIZER portability. * Replace atomic_load_store.template with atomic_load and atomic_store ones. * Replace some FIXME items with TODO in atomic_ops.c and sysdeps headers. * Specify fetch_and_add/sub1 result as unused in test_atomic (tests). * Support AArch64 (64-bit ARM) target (GCC). * Support ARMv8 target (gcc/arm). * Test double_compare_and_swap in test_atomic (tests). * Use AO_ prefix for internal functions in arm_v6.h, hppa.h. * Use __atomic GCC built-in to implement generic double-wide CAS. * Use built-in __sync CAS for double-CAS if AO_USE_SYNC_CAS_BUILTIN for x86. * Workaround GCC 4.4.3 warning reported for 'val' of list_atomic.c (tests). == [7.3alpha2] 2012-05-11 == * Add '-no-undefined' to LDFLAGS in src/Makefile.am. * Add AO_and, AO_xor atomic operations. * Add AO_fetch_compare_and_swap primitives. * Add and fill in AUTHORS, TODO files. * Add autogen.sh file. * Adjust AO_..._H macros in public headers. * Code refactoring of gcc/arm.h by introducing AO_ARM_HAVE_x macros. * Define AO macros for libatomic_ops version identification. * Do not define NDEBUG if '--enable-assertions' passed to configure. * Eliminate compiler warnings in various functions and macros. * Generalize AO_compare_and_swap primitives via AO_fetch_compare_and_swap. * Generalize acquire/release/full CAS primitives for MIPS * Implement fetch_and_add, test_and_set primitives for MIPS. * Improve Makefile for MS VC++; pass '-W3' option to MS compiler. * Include ao_t_is_int.h from atomic_ops.h after first generalization pass * Merge all Makefile.am files in src tree. * Minor code refactoring of atomic_ops.c, generic_pthread.h. * Minor configure build improvements (e.g., ensure proper autoconf version). * Place only major per-release changes description to ChangeLog (this file). * Recognize AO_PREFER_GENERALIZED macro to favor generalization over assembly. * Remove all auto-generated files except for generalize-small.h from the repo. * Remove duplicate doc/COPYING and empty NEWS files. * Replace atomic_ops_malloc static mmap-related empty functions with macros. * Replace pointer relational comparisons with non-pointer ones. * Require autoconf 2.61 instead of v2.64. * Show extra compiler warnings (GCC only). * Turn off AO primitives inlining if AO_NO_INLINE defined. * Use __builtin_expect in CAS failure loop condition checks (GCC only). == [7.2e] 2013-11-10 == * Fix (remove) invalid include of read_ordered.h for ARM. * Fix AM_CONFIG_HEADER in configure for autoconf-2.69-1. * Fix AO_pause sleep delay for particular argument values (Win32). * Fix ARMv7 LDREXD/STREXD double-wide operand specification (GCC/Clang). * Fix LDREXD/STREXD use for pre-Clang3.3/arm. * Fix README regarding _acquire_read barrier. * Fix XSIZE_load/store definition order in generalize-small template. * Fix asm constraint of CAS memory operand for gcc/alpha, clang-3.1/mips. * Fix asm constraints of primitives in sunc/x86.h. * Fix cmpxchg16b-based compare_double_and_swap_double for SunCC/x86_64. * Fix compare_double_and_swap_double and double_ptr_storage for gcc/x32. * Fix compare_double_and_swap_double for clang3.0/x86 in PIC mode. * Fix compare_double_and_swap_double_full definition condition in emul_cas. * Fix generalize-small template adding missed CAS-based fetch_and_add. * Fix generalized fetch_and_add function. * Fix missing compiler barrier in nop_full for uniprocessor ARM. * Fix ordered_except_wr header inclusion for s390. * Fix return type of AO_int_X primitives defined in ao_t_is_int header. * Fix return type of char/short/int_load_read() in read_ordered.h. * Fix template-based headers regeneration order in src/Makefile. * Fix typos in ao_t_is_int, atomic_ops.h, generalize.h, msftc/arm.h comments. * Fix variable type to match printf format specifier in test_stack. * Fix visibility and initial value of 'dummy' variable in atomic_ops_stack. * Terminate tests with abort after error reported. == [7.2d] 2012-08-09 == * Fix AO_compare_double_and_swap_double_full for gcc-4.2.1/x86 in PIC mode. * Fix AO_compiler_barrier missing parentheses. * Fix missing 'unsigned' for generalized AO_char/short_fetch_and_add result. == [7.2] 2012-05-11 == * Add atomic_ops.pc.in and atomic_ops-uninstalled.pc.in to pkgconfig folder. * Define and use AO_PTRDIFF_T in tests for casts between pointer and integer. * Fix AO_compare_and_swap return type for s390 and PowerPC. * Fix AO_compare_double_and_swap_double_full for gcc/x86 (PIC mode). * Fix AO_stack_push_release to workaround bug in clang-1.1/x86 compiler. * Fix AO_test_and_setXX in tests/list_atomic.template. * Fix AO_test_and_set_full (gcc/x86[_64].h) to work-around a bug in LLVM v2.7. * Fix AO_test_and_set_full on m68k. * Fix __ARM_ARCH_5__ macro handling for Android NDK (ARMv7). * Fix configure for Cygwin, mingw-w64/32. * Fix configure to define __PIC__ macro explicitly if needed (GCC). * Fix double_ptr_storage definition for GCC pre-v4 (x86_64). * Fix for x32 by removing 'q' suffix in x86-64 instructions. * Fix generalization for IA-64 (regarding AO_or, AO_..._read/write primitives) * Fix generalized AO_<type>_fetch_and_add() return type. * Fix test_atomic_include for the case of missing CAS primitive. * Fix test_malloc - allocate less memory in case of missing mmap. * Implement the basic atomic primitives for the hexagon CPU.
-rw-r--r--devel/libatomic_ops/Makefile27
-rw-r--r--devel/libatomic_ops/Makefile.version7
-rw-r--r--devel/libatomic_ops/PLIST42
-rw-r--r--devel/libatomic_ops/buildlink3.mk4
-rw-r--r--devel/libatomic_ops/distinfo12
-rw-r--r--devel/libatomic_ops/patches/patch-ab23
-rw-r--r--devel/libatomic_ops/patches/patch-ac26
-rw-r--r--devel/libatomic_ops/patches/patch-ad8
8 files changed, 45 insertions, 104 deletions
diff --git a/devel/libatomic_ops/Makefile b/devel/libatomic_ops/Makefile
index 29ef1943642..499dd90eb74 100644
--- a/devel/libatomic_ops/Makefile
+++ b/devel/libatomic_ops/Makefile
@@ -1,31 +1,20 @@
-# $NetBSD: Makefile,v 1.6 2012/10/31 11:17:10 asau Exp $
-#
-.include "Makefile.version"
+# $NetBSD: Makefile,v 1.7 2014/04/16 11:21:32 wiz Exp $
-DISTNAME= libatomic_ops-${LIBATOMIC_OPS_SNAPDATE}
+DISTNAME= libatomic_ops-7.4.0
CATEGORIES= devel
-MASTER_SITES= ${MASTER_SITE_LOCAL}
-#MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/
-LICENSE= gnu-gpl-v2
+MASTER_SITES= http://www.ivmaisoft.com/atomic_ops/download/
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://bdwgc.sourceforge.net/
+HOMEPAGE= https://github.com/ivmai/libatomic_ops/wiki
COMMENT= Multi-platform library of atomic operations by Hans Boehm
+LICENSE= gnu-gpl-v2
-WRKSRC= ${WRKDIR}/libatomic_ops
GNU_CONFIGURE= yes
-USE_TOOLS+= gmake automake autoconf autoreconf
+USE_TOOLS+= gmake
USE_LIBTOOL= yes
TEST_TARGET= check
+PKGCONFIG_OVERRIDE= pkgconfig/atomic_ops.pc
-INSTALL_MAKE_FLAGS= pkgdatadir=${PKGDOCDIR:Q}
-PKGDOCDIR= ${PREFIX}/share/doc/libatomic_ops
-
-pre-configure:
- cd ${WRKSRC} && autoreconf -vif
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/src/atomic_ops/sysdeps/README \
- ${DESTDIR}${PKGDOCDIR}/README_headers.txt
+INSTALL_MAKE_FLAGS= pkgdatadir=${PREFIX}/share/doc/libatomic_ops
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libatomic_ops/Makefile.version b/devel/libatomic_ops/Makefile.version
deleted file mode 100644
index 29dc5168ed8..00000000000
--- a/devel/libatomic_ops/Makefile.version
+++ /dev/null
@@ -1,7 +0,0 @@
-# $NetBSD: Makefile.version,v 1.2 2011/10/04 18:15:29 bsiegert Exp $
-#
-# CVS repo: :pserver:anonymous@bdwgc.cvs.sourceforge.net:/cvsroot/bdwgc
-# CVS module: bdwgc
-
-#LIBATOMIC_OPS_VERSION= 7.2alpha7
-LIBATOMIC_OPS_SNAPDATE= 20110807
diff --git a/devel/libatomic_ops/PLIST b/devel/libatomic_ops/PLIST
index eaacb37cca5..3f19ad88377 100644
--- a/devel/libatomic_ops/PLIST
+++ b/devel/libatomic_ops/PLIST
@@ -1,23 +1,25 @@
-@comment $NetBSD: PLIST,v 1.6 2011/10/04 18:15:29 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.7 2014/04/16 11:21:32 wiz Exp $
include/atomic_ops.h
+include/atomic_ops/ao_version.h
+include/atomic_ops/generalize-arithm.h
include/atomic_ops/generalize-small.h
include/atomic_ops/generalize.h
-include/atomic_ops/sysdeps/README
-include/atomic_ops/sysdeps/acquire_release_volatile.h
-include/atomic_ops/sysdeps/aligned_atomic_load_store.h
include/atomic_ops/sysdeps/all_acquire_release_volatile.h
include/atomic_ops/sysdeps/all_aligned_atomic_load_store.h
include/atomic_ops/sysdeps/all_atomic_load_store.h
+include/atomic_ops/sysdeps/all_atomic_only_load.h
include/atomic_ops/sysdeps/ao_t_is_int.h
include/atomic_ops/sysdeps/armcc/arm_v6.h
-include/atomic_ops/sysdeps/atomic_load_store.h
-include/atomic_ops/sysdeps/char_acquire_release_volatile.h
-include/atomic_ops/sysdeps/char_atomic_load_store.h
include/atomic_ops/sysdeps/emul_cas.h
+include/atomic_ops/sysdeps/gcc/aarch64.h
include/atomic_ops/sysdeps/gcc/alpha.h
include/atomic_ops/sysdeps/gcc/arm.h
include/atomic_ops/sysdeps/gcc/avr32.h
include/atomic_ops/sysdeps/gcc/cris.h
+include/atomic_ops/sysdeps/gcc/generic-arithm.h
+include/atomic_ops/sysdeps/gcc/generic-small.h
+include/atomic_ops/sysdeps/gcc/generic.h
+include/atomic_ops/sysdeps/gcc/hexagon.h
include/atomic_ops/sysdeps/gcc/hppa.h
include/atomic_ops/sysdeps/gcc/ia64.h
include/atomic_ops/sysdeps/gcc/m68k.h
@@ -27,15 +29,26 @@ include/atomic_ops/sysdeps/gcc/s390.h
include/atomic_ops/sysdeps/gcc/sh.h
include/atomic_ops/sysdeps/gcc/sparc.h
include/atomic_ops/sysdeps/gcc/x86.h
-include/atomic_ops/sysdeps/gcc/x86_64.h
include/atomic_ops/sysdeps/generic_pthread.h
include/atomic_ops/sysdeps/hpc/hppa.h
include/atomic_ops/sysdeps/hpc/ia64.h
include/atomic_ops/sysdeps/ibmc/powerpc.h
include/atomic_ops/sysdeps/icc/ia64.h
-include/atomic_ops/sysdeps/int_acquire_release_volatile.h
-include/atomic_ops/sysdeps/int_aligned_atomic_load_store.h
-include/atomic_ops/sysdeps/int_atomic_load_store.h
+include/atomic_ops/sysdeps/loadstore/acquire_release_volatile.h
+include/atomic_ops/sysdeps/loadstore/atomic_load.h
+include/atomic_ops/sysdeps/loadstore/atomic_store.h
+include/atomic_ops/sysdeps/loadstore/char_acquire_release_volatile.h
+include/atomic_ops/sysdeps/loadstore/char_atomic_load.h
+include/atomic_ops/sysdeps/loadstore/char_atomic_store.h
+include/atomic_ops/sysdeps/loadstore/double_atomic_load_store.h
+include/atomic_ops/sysdeps/loadstore/int_acquire_release_volatile.h
+include/atomic_ops/sysdeps/loadstore/int_atomic_load.h
+include/atomic_ops/sysdeps/loadstore/int_atomic_store.h
+include/atomic_ops/sysdeps/loadstore/ordered_loads_only.h
+include/atomic_ops/sysdeps/loadstore/ordered_stores_only.h
+include/atomic_ops/sysdeps/loadstore/short_acquire_release_volatile.h
+include/atomic_ops/sysdeps/loadstore/short_atomic_load.h
+include/atomic_ops/sysdeps/loadstore/short_atomic_store.h
include/atomic_ops/sysdeps/msftc/arm.h
include/atomic_ops/sysdeps/msftc/common32_defs.h
include/atomic_ops/sysdeps/msftc/x86.h
@@ -43,23 +56,20 @@ include/atomic_ops/sysdeps/msftc/x86_64.h
include/atomic_ops/sysdeps/ordered.h
include/atomic_ops/sysdeps/ordered_except_wr.h
include/atomic_ops/sysdeps/read_ordered.h
-include/atomic_ops/sysdeps/short_acquire_release_volatile.h
-include/atomic_ops/sysdeps/short_aligned_atomic_load_store.h
-include/atomic_ops/sysdeps/short_atomic_load_store.h
include/atomic_ops/sysdeps/standard_ao_double_t.h
include/atomic_ops/sysdeps/sunc/sparc.h
include/atomic_ops/sysdeps/sunc/x86.h
-include/atomic_ops/sysdeps/sunc/x86_64.h
include/atomic_ops/sysdeps/test_and_set_t_is_ao_t.h
include/atomic_ops/sysdeps/test_and_set_t_is_char.h
include/atomic_ops_malloc.h
include/atomic_ops_stack.h
lib/libatomic_ops.la
lib/libatomic_ops_gpl.la
+lib/pkgconfig/atomic_ops.pc
share/doc/libatomic_ops/COPYING
share/doc/libatomic_ops/LICENSING.txt
+share/doc/libatomic_ops/README.md
share/doc/libatomic_ops/README.txt
-share/doc/libatomic_ops/README_headers.txt
share/doc/libatomic_ops/README_malloc.txt
share/doc/libatomic_ops/README_stack.txt
share/doc/libatomic_ops/README_win32.txt
diff --git a/devel/libatomic_ops/buildlink3.mk b/devel/libatomic_ops/buildlink3.mk
index bedcafdb011..eed20e74514 100644
--- a/devel/libatomic_ops/buildlink3.mk
+++ b/devel/libatomic_ops/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.5 2011/10/04 21:44:29 minskim Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2014/04/16 11:21:32 wiz Exp $
BUILDLINK_TREE+= libatomic_ops
.if !defined(LIBATOMIC_OPS_BUILDLINK3_MK)
LIBATOMIC_OPS_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.libatomic_ops+= libatomic_ops>=20110807
+BUILDLINK_API_DEPENDS.libatomic_ops+= libatomic_ops>=7.4.0
BUILDLINK_PKGSRCDIR.libatomic_ops?= ../../devel/libatomic_ops
.endif # LIBATOMIC_OPS_BUILDLINK3_MK
diff --git a/devel/libatomic_ops/distinfo b/devel/libatomic_ops/distinfo
index f5b18ce78ff..fab7fb00689 100644
--- a/devel/libatomic_ops/distinfo
+++ b/devel/libatomic_ops/distinfo
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.12 2013/01/25 11:25:50 jperkin Exp $
+$NetBSD: distinfo,v 1.13 2014/04/16 11:21:32 wiz Exp $
-SHA1 (libatomic_ops-20110807.tar.gz) = 9cd093513991856b90a2e82e205525dccb3ad52a
-RMD160 (libatomic_ops-20110807.tar.gz) = ffc834193d51806a890b55de8525c00913878c14
-Size (libatomic_ops-20110807.tar.gz) = 239002 bytes
-SHA1 (patch-ab) = 82366e5ee296ea94e3f495f4962dedc42ea7e7b8
-SHA1 (patch-ac) = 50159e7a17ee9df8f9f290c49e959a8d8cc4290f
-SHA1 (patch-ad) = 3c48f40099f7e23e7575c284679537740c0e2f6a
+SHA1 (libatomic_ops-7.4.0.tar.gz) = 3397c2b2a02be3c27af6ed603332e81464447653
+RMD160 (libatomic_ops-7.4.0.tar.gz) = 30c4e30587cdd93260a53683a5ac3013375c7348
+Size (libatomic_ops-7.4.0.tar.gz) = 455143 bytes
+SHA1 (patch-ad) = 01b30be4d320a88bd8690e65bcd243d224c3146b
diff --git a/devel/libatomic_ops/patches/patch-ab b/devel/libatomic_ops/patches/patch-ab
deleted file mode 100644
index 6ed47d6fc24..00000000000
--- a/devel/libatomic_ops/patches/patch-ab
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2011/10/04 18:15:30 bsiegert Exp $
-
---- src/Makefile.am.orig 2009-09-29 13:41:49.000000000 +0000
-+++ src/Makefile.am
-@@ -3,14 +3,14 @@ SUBDIRS=atomic_ops
- AM_CFLAGS=@PICFLAG@
-
- include_HEADERS=atomic_ops.h atomic_ops_stack.h atomic_ops_malloc.h
--lib_LIBRARIES = libatomic_ops.a libatomic_ops_gpl.a
-+lib_LTLIBRARIES = libatomic_ops.la libatomic_ops_gpl.la
- if NEED_ASM
--libatomic_ops_a_SOURCES = atomic_ops.c atomic_ops_sysdeps.S
-+libatomic_ops_la_SOURCES = atomic_ops.c atomic_ops_sysdeps.S
- else
--libatomic_ops_a_SOURCES = atomic_ops.c
-+libatomic_ops_la_SOURCES = atomic_ops.c
- endif
-
--libatomic_ops_gpl_a_SOURCES = atomic_ops_stack.c atomic_ops_malloc.c
-+libatomic_ops_gpl_la_SOURCES = atomic_ops_stack.c atomic_ops_malloc.c
-
- EXTRA_DIST=Makefile.msft
-
diff --git a/devel/libatomic_ops/patches/patch-ac b/devel/libatomic_ops/patches/patch-ac
deleted file mode 100644
index 90e2f24d0dd..00000000000
--- a/devel/libatomic_ops/patches/patch-ac
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ac,v 1.4 2013/01/25 11:25:51 jperkin Exp $
-
-* automake-1.13 compatability
-
---- configure.ac.orig 2011-06-15 11:41:30.000000000 +0000
-+++ configure.ac 2013-01-25 10:53:00.425915779 +0000
-@@ -4,8 +4,9 @@
- AC_CONFIG_SRCDIR(src/atomic_ops.c)
- AM_INIT_AUTOMAKE
- AC_PROG_RANLIB
-+AC_PROG_LIBTOOL
-
--AM_CONFIG_HEADER(src/config.h)
-+AC_CONFIG_HEADERS(src/config.h)
-
- # Checks for programs.
- AM_PROG_CC_C_O
-@@ -26,7 +27,7 @@
- AC_MSG_RESULT(-fPIC)
- PICFLAG=-fPIC
- case "$host" in
-- *-*-solaris*)
-+ *-*-solaris*|*-*-mirbsd*)
- # Workaround: at least GCC 3.4.6 does not define this macro.
- CFLAGS="$CFLAGS -D__PIC__=1"
- ;;
diff --git a/devel/libatomic_ops/patches/patch-ad b/devel/libatomic_ops/patches/patch-ad
index ddf1ba98e64..a766c38df1e 100644
--- a/devel/libatomic_ops/patches/patch-ad
+++ b/devel/libatomic_ops/patches/patch-ad
@@ -1,9 +1,9 @@
-$NetBSD: patch-ad,v 1.3 2011/10/04 18:15:30 bsiegert Exp $
+$NetBSD: patch-ad,v 1.4 2014/04/16 11:21:32 wiz Exp $
---- src/atomic_ops.h.orig 2010-09-15 19:18:33.000000000 +0000
+--- src/atomic_ops.h.orig 2013-11-10 09:57:12.000000000 +0000
+++ src/atomic_ops.h
-@@ -325,7 +325,10 @@
- # endif /* __x86_64 */
+@@ -351,7 +351,10 @@
+ # endif
#endif
-#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \