]> granicus.if.org Git - libatomic_ops/log
libatomic_ops
12 years agoUpdate ChangeLog
Ivan Maidanski [Thu, 3 Jan 2013 08:30:14 +0000 (12:30 +0400)]
Update ChangeLog

12 years agoFix generalize-small template adding missed CAS-based fetch_and_add
Ivan Maidanski [Wed, 2 Jan 2013 09:10:34 +0000 (13:10 +0400)]
Fix generalize-small template adding missed CAS-based fetch_and_add

* src/atomic_ops/generalize-small.template (AO_XSIZE_fetch_and_add):
Add missed definition based on CAS.
* src/atomic_ops/generalize-small.h: Regenerate.

12 years agoFix AO_XSIZE_load/store definition order in generalize-small template
Ivan Maidanski [Wed, 2 Jan 2013 08:31:08 +0000 (12:31 +0400)]
Fix AO_XSIZE_load/store definition order in generalize-small template

* src/atomic_ops/generalize-small.template (AO_XSIZE_load): Move
definition (which is based on AO_XSIZE_load_acquire) down to be after
AO_XSIZE_load_acquire definition.
* src/atomic_ops/generalize-small.template (AO_XSIZE_store): Move
definition (which is based on AO_XSIZE_store_release) down to be after
AO_XSIZE_store_release definition.
* src/atomic_ops/generalize-small.h : Regenerate.

12 years agoUpdate ChangeLog
Ivan Maidanski [Mon, 8 Oct 2012 20:23:21 +0000 (00:23 +0400)]
Update ChangeLog

12 years agoFix variable type to match printf format specifier in test_stack
Ivan Maidanski [Mon, 8 Oct 2012 20:06:19 +0000 (00:06 +0400)]
Fix variable type to match printf format specifier in test_stack

* tests/test_stack.c (run_one_test): Change type of "index" local
variable from long to int to match printf format specifier (when
VERBOSE defined); cast from "arg" pointer to integer via size_t (to
avoid 64-bit compiler warning).

12 years agoUpdate ChangeLog
Ivan Maidanski [Mon, 8 Oct 2012 18:37:30 +0000 (22:37 +0400)]
Update ChangeLog

12 years agoProperly fix compare_double_and_swap_double for gcc/x32 (use built-in CAS)
Ivan Maidanski [Mon, 8 Oct 2012 10:51:30 +0000 (14:51 +0400)]
Properly fix compare_double_and_swap_double for gcc/x32 (use built-in CAS)
(Apply commit cbe517e from 'master' branch.)

* src/atomic_ops/sysdeps/gcc/x86.h (AO_double_compare_and_swap_full):
New function (only if __x86_64__) implemented using GCC built-in
__sync CAS primitive available for x32.
* src/atomic_ops/sysdeps/gcc/x86.h
(AO_HAVE_double_compare_and_swap_full): New macro (for x32 only).
* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Implement using
double_compare_and_swap_full instead of cmpxchg8b for x32 (since
x86_64 has cmpxchg and cmpxchg16b but not cmpxchg8b).

Conflicts:

    src/atomic_ops/sysdeps/gcc/x86.h

12 years agoFix double_ptr_storage definition for gcc/x32
Ivan Maidanski [Mon, 1 Oct 2012 10:48:43 +0000 (14:48 +0400)]
Fix double_ptr_storage definition for gcc/x32
(Apply commit 9957645 from 'master' branch.)

* src/atomic_ops/sysdeps/standard_ao_double_t.h (double_ptr_storage):
Define as "unsigned long long" instead of __m128 for gcc/x32 (i.e.,
ILP32 on x86_64); update and reformat comment.

Conflicts:

    src/atomic_ops/sysdeps/standard_ao_double_t.h

12 years agoFix compare_double_and_swap_double_full for gcc/x32
Ivan Maidanski [Tue, 18 Sep 2012 16:48:08 +0000 (20:48 +0400)]
Fix compare_double_and_swap_double_full for gcc/x32

* src/atomic_ops.h: Include gcc/x86.h instead of gcc/x86_64.h if
gcc/x32 (i.e., GCC (or Intel compiler), __x86_64__ is defined, and
__ILP32__ is defined) to have AO_compare_double_and_swap_double_full
defined properly (based on cmpxchg8b); explicitly define
AO_USE_PENTIUM4_INSTRS for gcc/x32.
* src/atomic_ops/sysdeps/gcc/x86_64.h: Remove ILP32-specific code
(AO_T_IS_INT definition).

12 years agoFix typos in atomic_ops.h comments
Ivan Maidanski [Fri, 5 Oct 2012 17:12:47 +0000 (21:12 +0400)]
Fix typos in atomic_ops.h comments

* src/atomic_ops.h: Fix typos in comments (update generalize.h
filename).

12 years ago.gitignore: Ignore .dll, .so files and pthreads-w32* library folder
Ivan Maidanski [Thu, 4 Oct 2012 11:08:57 +0000 (15:08 +0400)]
.gitignore: Ignore .dll, .so files and pthreads-w32* library folder
(Apply commit 4692f84 from 'master' branch.)

Conflicts:

    .gitignore

12 years agoFix AO_pause sleep delay for particular argument values (Win32)
Ivan Maidanski [Wed, 3 Oct 2012 14:02:03 +0000 (18:02 +0400)]
Fix AO_pause sleep delay for particular argument values (Win32)

* src/atomic_ops.c (AO_pause): Fix millis value (passed to Win32
Sleep) for the case of 'n' argument in range between 12 and 21,
inclusive if AO_USE_WIN32_PTHREADS (sleep for 1 ms in this case).
* src/atomic_ops_stack.c (AO_pause): Evaluate 'msecs' value using the
same algorithm as in atomic_ops.c (Win32 only).

12 years agoFix visibility and initial value of 'dummy' variable in atomic_ops_stack
Ivan Maidanski [Wed, 3 Oct 2012 07:59:33 +0000 (11:59 +0400)]
Fix visibility and initial value of 'dummy' variable in atomic_ops_stack

* src/atomic_ops_stack.c (dummy): Define as static (to make symbol
without AO_ prefix visible only within this file); initialize to 1
(same as in atomic_ops.c, so that AO_spin would never really alter
its value).

12 years agoFix AO_load primitive name in comment
Ivan Maidanski [Tue, 2 Oct 2012 12:59:58 +0000 (16:59 +0400)]
Fix AO_load primitive name in comment

* src/atomic_ops.h: Fix 'load' primitive name in comment (replace
AO_load_release_read with AO_load_acquire_read).

12 years agoFix compare_double_and_swap_double_full definition condition in emul_cas
Ivan Maidanski [Tue, 2 Oct 2012 07:12:24 +0000 (11:12 +0400)]
Fix compare_double_and_swap_double_full definition condition in emul_cas

* src/atomic_ops/sysdeps/emul_cas.h
(AO_compare_double_and_swap_double_full): Test (define if)
AO_HAVE_compare_double_and_swap_double_full macro instead of
AO_HAVE_compare_double_and_swap_double.

12 years agoFix cmpxchg16b-based compare_double_and_swap_double for SunCC/x86_64
Ivan Maidanski [Tue, 18 Sep 2012 15:03:19 +0000 (19:03 +0400)]
Fix cmpxchg16b-based compare_double_and_swap_double for SunCC/x86_64

* src/atomic_ops/sysdeps/sunc/x86_64.h
(AO_compare_double_and_swap_double_full): Fix inline assembly
arguments commenting out "m"(*addr) one (similar to that in
sunc/x86.h) if AO_CMPXCHG16B_AVAILABLE defined.

12 years agoMerge branch 'libatomic_ops-7_2-hotfix-2' into release-7_2
Ivan Maidanski [Sat, 22 Sep 2012 07:47:37 +0000 (11:47 +0400)]
Merge branch 'libatomic_ops-7_2-hotfix-2' into release-7_2

12 years agoUpdate (regenerate) configure files; update ChangeLog
Ivan Maidanski [Wed, 19 Sep 2012 04:49:18 +0000 (08:49 +0400)]
Update (regenerate) configure files; update ChangeLog

* configure: Regenerate (by autoreconf -vif using autoconf-2.68,
automake-1.11.3 and libtool-2.4.2).
* INSTALL: Likewise.
* Makefile.in: Likewise.
* aclocal.m4: Likewise.
* compile: Likewise.
* config.guess: Likewise.
* config.sub: Likewise.
* depcomp: Likewise.
* doc/Makefile.in: Likewise.
* install-sh: Likewise.
* missing: Likewise.
* src/Makefile.in: Likewise.
* src/atomic_ops/Makefile.in: Likewise.
* src/atomic_ops/sysdeps/Makefile.in: Likewise.
* tests/Makefile.in: Likewise.

12 years agoUpdate ChangeLog
Ivan Maidanski [Tue, 18 Sep 2012 17:24:11 +0000 (21:24 +0400)]
Update ChangeLog

12 years agoFix a typo in comment of compare_double_and_swap_double (x86_64)
Ivan Maidanski [Tue, 18 Sep 2012 17:21:47 +0000 (21:21 +0400)]
Fix a typo in comment of compare_double_and_swap_double (x86_64)

* src/atomic_ops/sysdeps/gcc/x86_64.h
(AO_compare_double_and_swap_double_full): Fix a typo in comment.
* src/atomic_ops/sysdeps/sunc/x86_64.h
(AO_compare_double_and_swap_double_full): Likewise.

12 years agoUpdate ChangeLog
Ivan Maidanski [Tue, 18 Sep 2012 12:01:46 +0000 (16:01 +0400)]
Update ChangeLog

12 years agoTerminate tests with abort after error reported
Ivan Maidanski [Tue, 18 Sep 2012 10:54:48 +0000 (14:54 +0400)]
Terminate tests with abort after error reported
(Apply commit ebaf32f from 'master' branch)

* tests/test_atomic.c (acqrel_thr): Call abort() after fprintf(stderr).
* tests/test_malloc.c (run_one_test): Likewise.
* tests/test_stack.c (check_list, main): Likewise.

Conflicts:

    tests/test_atomic.c
    tests/test_stack.c

12 years agoUpdate ChangeLog
Ivan Maidanski [Wed, 5 Sep 2012 04:51:21 +0000 (08:51 +0400)]
Update ChangeLog

12 years agoFix compare_double_and_swap_double for clang/x86 in PIC mode
Ivan Maidanski [Wed, 5 Sep 2012 04:25:24 +0000 (08:25 +0400)]
Fix compare_double_and_swap_double for clang/x86 in PIC mode

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Re-implement for PIC mode
saving EBX to a local variable (instead of pushing it to stack) and
saving memory operand address to a register (edi which is manually
preserved), so that the whole code could also work even if EBX points
to memory operand (e.g., in Clang); test __PIC__ using ifdef (instead
of "if"); update comments; reformat code.

12 years ago[7.2d] libatomic_ops-7_2d
Ivan Maidanski [Thu, 9 Aug 2012 19:48:31 +0000 (23:48 +0400)]
[7.2d]

Change version in README to 7.2d; update ChangeLog

12 years agoMerge branch 'libatomic_ops-7_2-hotfix-1' into release-7_2
Ivan Maidanski [Thu, 9 Aug 2012 19:40:56 +0000 (23:40 +0400)]
Merge branch 'libatomic_ops-7_2-hotfix-1' into release-7_2

12 years agoUpdate ChangeLog
Ivan Maidanski [Wed, 1 Aug 2012 18:37:31 +0000 (22:37 +0400)]
Update ChangeLog

12 years agoFix AO_compiler_barrier missing parentheses
Ivan Maidanski [Wed, 1 Aug 2012 18:35:17 +0000 (22:35 +0400)]
Fix AO_compiler_barrier missing parentheses

* src/atomic_ops.h (AO_compiler_barrier): Add parentheses and cast to
void.

12 years agoUpdate (regenerate) config.guess and config.sub; update ChangeLog
Ivan Maidanski [Sun, 22 Jul 2012 08:18:41 +0000 (12:18 +0400)]
Update (regenerate) config.guess and config.sub; update ChangeLog

* config.guess: Regenerate (by autoreconf -vif using autoconf-2.68,
automake-1.11.1 and libtool-2.4).
* config.sub: Likewise.

12 years agoUpdate ChangeLog
Ivan Maidanski [Sun, 22 Jul 2012 07:40:06 +0000 (11:40 +0400)]
Update ChangeLog

12 years agoFix AO_compare_double_and_swap_double_full for gcc-4.2.1/x86 in PIC mode
Ivan Maidanski [Wed, 4 Jul 2012 04:32:03 +0000 (08:32 +0400)]
Fix AO_compare_double_and_swap_double_full for gcc-4.2.1/x86 in PIC mode

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Use EDI register for
"new_val1" argument in PIC mode only for GCC 4.3+ to workaround
a problem with older compiler versions (e.g., GCC 4.2.1 [FreeBSD])
that do not recognize 'D' as a valid register specification; update
comment.

12 years agoUpdate ChangeLog
Ivan Maidanski [Mon, 2 Jul 2012 04:57:51 +0000 (08:57 +0400)]
Update ChangeLog

12 years agoFix generalized AO_char/short_fetch_and_add CTYPE args
Ivan Maidanski [Sun, 1 Jul 2012 08:45:23 +0000 (12:45 +0400)]
Fix generalized AO_char/short_fetch_and_add CTYPE args
(fix missing 'unsigned' for generalized fetch_and_add primitives)

* src/atomic_ops/generalize-small.template
(AO_XSIZE_fetch_and_add_full,
AO_XSIZE_fetch_and_add_acquire, AO_XSIZE_fetch_and_add_release):
Fix type of function arguments (or local variables) by adding
'unsigned' to XCTYPE.
* src/atomic_ops/generalize-small.h: Regenerate.

12 years ago[7.2] libatomic_ops-7_2
Ivan Maidanski [Fri, 11 May 2012 15:55:17 +0000 (19:55 +0400)]
[7.2]

Bump libatomic_ops version to 7.2 (final)

* configure.ac, README: Bump version to 7.2 (final).
* configure: Regenerate.
* ChangeLog: Update.

12 years agoUpdate ChangeLog
Ivan Maidanski [Tue, 1 May 2012 16:05:07 +0000 (20:05 +0400)]
Update ChangeLog

12 years agoDefine AO_T_IS_INT for x32
H.J. Lu [Mon, 16 Apr 2012 16:23:51 +0000 (09:23 -0700)]
Define AO_T_IS_INT for x32

* src/atomic_ops/sysdeps/gcc/x86_64.h (AO_T_IS_INT): Defined
for x32.

12 years agoUpdate ChangeLog
Ivan Maidanski [Tue, 1 May 2012 14:34:04 +0000 (18:34 +0400)]
Update ChangeLog

12 years agoFix for x32 by removing 'q' suffix in x86-64 instructions
H.J. Lu [Tue, 1 May 2012 10:31:30 +0000 (14:31 +0400)]
Fix for x32 by removing 'q' suffix in x86-64 instructions
(Apply commit 711f7fe from 'master' branch)

We do not need the 'q' suffix on x86_64 atomic instructions for AO_t
which is defined as "unsigned long"; the later is 32-bit for x32
and 64-bit for x86-64; the register operand in x86-64 atomic
instructions is sufficient to properly determine the register size.

* src/atomic_ops/sysdeps/gcc/x86_64.h (AO_fetch_and_add_full,
AO_and_full, AO_or_full, AO_xor_full, AO_compare_and_swap_full,
AO_fetch_compare_and_swap_full): Remove 'q' suffix in asm instruction.

12 years agoRegenerate configure; update ChangeLog
Ivan Maidanski [Wed, 28 Mar 2012 04:12:48 +0000 (08:12 +0400)]
Regenerate configure; update ChangeLog

12 years agoFix configure to define __PIC__ macro explicitly only if not done by GCC
Ivan Maidanski [Wed, 28 Mar 2012 04:07:31 +0000 (08:07 +0400)]
Fix configure to define __PIC__ macro explicitly only if not done by GCC
(Apply commit 058dd11 from 'master' branch)

* configure.ac (PICFLAG): Adjust AC_MSG_CHECKING message; report
"none" result if no -fPIC is needed (for Cygwin/MinGW); determine
whether GCC -fPIC option causes __PIC__ macro definition; pass
-D __PIC__ to PICFLAG (instead of CFLAGS) only if not defined
automatically in case -fPIC specified; update comment.

12 years agoUpdate ChangeLog
Ivan Maidanski [Mon, 26 Mar 2012 04:51:03 +0000 (08:51 +0400)]
Update ChangeLog

12 years agoFix double_ptr_storage definition for GCC pre-v4 (x86_64)
Ivan Maidanski [Mon, 26 Mar 2012 04:34:27 +0000 (08:34 +0400)]
Fix double_ptr_storage definition for GCC pre-v4 (x86_64)

* src/atomic_ops/sysdeps/standard_ao_double_t.h: Do not use __m128
if GCC pre-v4 (at least, xmmintrin.h is missing in gcc-3.4.3-x86_64
included in Solaris 10 distribution).

12 years agoFix a typo in comment in standard_ao_double_t.h
Ivan Maidanski [Mon, 26 Mar 2012 04:29:38 +0000 (08:29 +0400)]
Fix a typo in comment in standard_ao_double_t.h

12 years agoRegenerate configure, Makefile.in; update ChangeLog
Ivan Maidanski [Mon, 19 Mar 2012 15:59:29 +0000 (19:59 +0400)]
Regenerate configure, Makefile.in; update ChangeLog

12 years agoAdd -uninstalled pkg-config file, move them to pkgconfig/.
Petter Urkedal [Sun, 14 Aug 2011 10:37:31 +0000 (12:37 +0200)]
Add -uninstalled pkg-config file, move them to pkgconfig/.
(Apply commit 8e6f271 from 'master' branch)

* atomic_ops.pc.in -> pkgconfig/atomic_ops.pc.in: Moved.
* pkgconfig/atomic_ops-uninstalled.pc.in: Added developer version.
* configure.ac, Makefile.am: Update accordingly.

12 years agoAdd atomic_ops.pc.
Ivan Maidanski [Thu, 4 Aug 2011 17:37:42 +0000 (21:37 +0400)]
Add atomic_ops.pc.
(Apply commit 5757ba9 from 'master' branch)

* atomic_ops.pc.in: new file.
* Makefile.am (pkgconfigdir, pkgconfig_DATA): new items.
* configure.ac (AC_CONFIG_FILES): add atomic_ops.pc.
* configure, Makefile.in: Regenerate.

12 years agoUpdate ChangeLog
Ivan Maidanski [Wed, 7 Mar 2012 15:39:29 +0000 (19:39 +0400)]
Update ChangeLog

12 years agoFix AO_compare_double_and_swap_double_full for gcc/x86 (PIC mode)
Ivan Maidanski [Wed, 7 Mar 2012 15:12:49 +0000 (19:12 +0400)]
Fix AO_compare_double_and_swap_double_full for gcc/x86 (PIC mode)

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Use EDI register for
"new_val1" argument instead of a memory operand and use XCHG assembler
instruction instead of push/pop in case of PIC mode (to workaround
a bug in GCC 4.6.1); update the comment.

12 years agoFix AO_stack_push_release to workaround bug in clang-1.1/x86
Ivan Maidanski [Wed, 7 Mar 2012 03:41:23 +0000 (07:41 +0400)]
Fix AO_stack_push_release to workaround bug in clang-1.1/x86

* src/atomic_ops_stack.c (AO_stack_push_release): Make "cptr" local
variable volatile to workaround a bug in clang-1.1/x86 compiler; add
comment.

12 years agoFix a typo in comment
Ivan Maidanski [Wed, 7 Mar 2012 03:31:55 +0000 (07:31 +0400)]
Fix a typo in comment

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Fix argument name in the
comment.
* src/atomic_ops/sysdeps/sunc/x86.h
(AO_compare_double_and_swap_double_full): Likewise.

12 years agoUpdate ChangeLog
Ivan Maidanski [Sun, 4 Mar 2012 18:35:05 +0000 (22:35 +0400)]
Update ChangeLog

12 years agoFix a typo in comment
Ivan Maidanski [Sun, 4 Mar 2012 16:20:22 +0000 (20:20 +0400)]
Fix a typo in comment
(Apply commit 529f91a from 'master' branch)

* src/atomic_ops_malloc.h (AO_malloc_enable_mmap): Fix a typo in the
comment.

12 years agoUpdate ChangeLog
Ivan Maidanski [Thu, 19 Jan 2012 04:37:21 +0000 (08:37 +0400)]
Update ChangeLog

12 years agoChange function prototype specifications to follow strict ANSI C style
Ivan Maidanski [Thu, 19 Jan 2012 04:33:50 +0000 (08:33 +0400)]
Change function prototype specifications to follow strict ANSI C style

* tests/test_atomic.c (main): Put "void" keyword into the arguments
specification of the function prototype.
* tests/test_stack.c (main): Likewise.

13 years ago.gitignore: Ignore config.cache
Ivan Maidanski [Thu, 22 Dec 2011 07:19:00 +0000 (11:19 +0400)]
.gitignore: Ignore config.cache

13 years agoUpdate ChangeLog
Ivan Maidanski [Fri, 16 Dec 2011 14:13:43 +0000 (18:13 +0400)]
Update ChangeLog

13 years agoFix __ARM_ARCH_5__ macro handling for Android NDK (ARMv7)
Ivan Maidanski [Fri, 16 Dec 2011 14:07:30 +0000 (18:07 +0400)]
Fix __ARM_ARCH_5__ macro handling for Android NDK (ARMv7)

* src/atomic_ops/sysdeps/gcc/arm.h (__ARM_ARCH_7__, __ARM_ARCH_7A__):
Recognize to override __ARM_ARCH_5xx__ macros (since Android NDK GCC
defines both for armv7); update comment.

13 years ago.gitignore: Ignore Gcov files (.gcda, .gcno)
Ivan Maidanski [Tue, 13 Dec 2011 14:52:37 +0000 (18:52 +0400)]
.gitignore: Ignore Gcov files (.gcda, .gcno)

13 years ago.gitignore: Ignore binary files (.a, .exe, .o, etc.) in all folders
Ivan Maidanski [Tue, 13 Dec 2011 14:50:32 +0000 (18:50 +0400)]
.gitignore: Ignore binary files (.a, .exe, .o, etc.) in all folders

13 years agoInstruct Git to ignore 'tests/core' file
Ivan Maidanski [Thu, 4 Aug 2011 08:13:11 +0000 (12:13 +0400)]
Instruct Git to ignore 'tests/core' file
(Apply commit f2eef23)

13 years agoMerge branch 'hotfix-7_2a6-4' into release
Ivan Maidanski [Tue, 29 Nov 2011 16:47:22 +0000 (20:47 +0400)]
Merge branch 'hotfix-7_2a6-4' into release

13 years agoUpdate ChangeLog
Ivan Maidanski [Tue, 29 Nov 2011 16:45:12 +0000 (20:45 +0400)]
Update ChangeLog

13 years agoFix generalization for IA-64, Hexagon (include generalize.h before
Ivan Maidanski [Tue, 29 Nov 2011 16:36:56 +0000 (20:36 +0400)]
Fix generalization for IA-64, Hexagon (include generalize.h before
ao_t_is_int.h to have AO_or, AO_..._read/write and some other
int-derived primitives got defined)

* src/atomic_ops/sysdeps/gcc/hexagon.h: Include generalize.h file
before ao_t_is_int.h one.
* src/atomic_ops/sysdeps/gcc/ia64.h: Likewise.
* src/atomic_ops/sysdeps/hpc/ia64.h: Likewise.

13 years agoUpdate ChangeLog
Ivan Maidanski [Thu, 3 Nov 2011 14:58:38 +0000 (18:58 +0400)]
Update ChangeLog

13 years agoFix generalized AO_<type>_fetch_and_add() return type
Ivan Maidanski [Thu, 3 Nov 2011 14:43:52 +0000 (18:43 +0400)]
Fix generalized AO_<type>_fetch_and_add() return type

* src/atomic_ops/generalize-small.template
(AO_XSIZE_fetch_and_add_full, AO_XSIZE_fetch_and_add_acquire,
AO_XSIZE_fetch_and_add_release): Change return type from AO_t to
XCTYPE.
* src/atomic_ops/generalize-small.h: Regenerate.

13 years agoUpdate ChangeLog
Ivan Maidanski [Mon, 24 Oct 2011 15:09:15 +0000 (19:09 +0400)]
Update ChangeLog

13 years agoFix AO_compare_and_swap_full (GCC MIPS, PowerPC) returned value type
Ivan Maidanski [Mon, 24 Oct 2011 15:05:31 +0000 (19:05 +0400)]
Fix AO_compare_and_swap_full (GCC MIPS, PowerPC) returned value type

* src/atomic_ops/sysdeps/gcc/mips.h (AO_compare_and_swap_full):
Change "result" local variable type from AO_t to int.
* src/atomic_ops/sysdeps/gcc/powerpc.h (AO_compare_and_swap_full):
Likewise.

13 years agoRegenerate test_atomic_include.h; update ChangeLog
Ivan Maidanski [Mon, 24 Oct 2011 11:53:38 +0000 (15:53 +0400)]
Regenerate test_atomic_include.h; update ChangeLog

13 years agoFix test_atomic_include for the case of missing CAS primitive
Ivan Maidanski [Mon, 24 Oct 2011 11:45:10 +0000 (15:45 +0400)]
Fix test_atomic_include for the case of missing CAS primitive

* tests/test_atomic_include.template (test_atomicXX): Add action for
the missing AO_compare_and_swap primitive.

13 years agoUpdate ChangeLog
Ivan Maidanski [Fri, 21 Oct 2011 12:21:22 +0000 (16:21 +0400)]
Update ChangeLog

13 years agoFix compiler warning in atomic_ops.c (define 'init_lock' only if used)
Ivan Maidanski [Fri, 21 Oct 2011 11:32:19 +0000 (15:32 +0400)]
Fix compiler warning in atomic_ops.c (define 'init_lock' only if used)

* src/atomic_ops.c (init_lock): Define only unless AO_USE_NO_SIGNALS.

13 years agoUpdate ChangeLog
Ivan Maidanski [Fri, 21 Oct 2011 10:31:24 +0000 (14:31 +0400)]
Update ChangeLog

13 years agoFix a typo in doc/README.txt
Ivan Maidanski [Fri, 21 Oct 2011 09:46:01 +0000 (13:46 +0400)]
Fix a typo in doc/README.txt

13 years agoFix AO_compare_and_swap (gcc/alpha.h) to suppress compiler warning
Ivan Maidanski [Fri, 21 Oct 2011 08:47:06 +0000 (12:47 +0400)]
Fix AO_compare_and_swap (gcc/alpha.h) to suppress compiler warning

* src/atomic_ops/sysdeps/gcc/alpha.h (AO_compare_and_swap): Cast
returned value to int.

13 years agoApply hotfix-7_2a6-3 to the current release
Ivan Maidanski [Mon, 17 Oct 2011 10:13:31 +0000 (14:13 +0400)]
Apply hotfix-7_2a6-3 to the current release

13 years agoRegenerate Makefile.in; update ChangeLog
Ivan Maidanski [Mon, 17 Oct 2011 10:11:43 +0000 (14:11 +0400)]
Regenerate Makefile.in; update ChangeLog

13 years agoImplement the basic atomic primitives for the hexagon CPU.
Linas Vepstas [Tue, 11 Oct 2011 04:43:41 +0000 (08:43 +0400)]
Implement the basic atomic primitives for the hexagon CPU.
(Apply commit 9136ee6)

* src/atomic_ops/sysdeps/Makefile.am (nobase_private_HEADERS): Add
hexagon.h.
* src/atomic_ops.h: Include hexagon.h file.
* src/atomic_ops/sysdeps/gcc/hexagon.h: New file.

13 years agoFix AO_test_and_set_full on m68k
Thorsten Glaser [Mon, 17 Oct 2011 09:29:32 +0000 (13:29 +0400)]
Fix AO_test_and_set_full on m68k

* src/atomic_ops/sysdeps/gcc/m68k.h (AO_test_and_set_full): Cast the
returned value.

13 years agoFix AO_compare_and_swap() return type for s390 and PowerPC
Ivan Maidanski [Sat, 15 Oct 2011 11:35:22 +0000 (15:35 +0400)]
Fix AO_compare_and_swap() return type for s390 and PowerPC

* src/atomic_ops/sysdeps/gcc/s390.h (AO_compare_and_swap_full):
Change return from AO_t to int.
* src/atomic_ops/sysdeps/ibmc/powerpc.h (AO_compare_and_swap_acquire,
AO_compare_and_swap_release, AO_compare_and_swap_full): Likewise.

13 years agoUpdate ChangeLog
Ivan Maidanski [Wed, 21 Sep 2011 13:00:14 +0000 (17:00 +0400)]
Update ChangeLog

13 years agoDo not put dummy AO_non_posix_impl... symbol to executables.
Ivan Maidanski [Wed, 21 Sep 2011 12:55:19 +0000 (16:55 +0400)]
Do not put dummy AO_non_posix_impl... symbol to executables.

* src/atomic_ops.c
(AO_non_posix_implementation_is_entirely_in_headers): Make external.

13 years agoApply hotfix-7_2a6-2 to the current release
Ivan Maidanski [Wed, 21 Sep 2011 11:28:07 +0000 (15:28 +0400)]
Apply hotfix-7_2a6-2 to the current release

13 years agoRegenerate configure, test_atomic_include.h; update ChangeLog
Ivan Maidanski [Wed, 21 Sep 2011 11:23:17 +0000 (15:23 +0400)]
Regenerate configure, test_atomic_include.h; update ChangeLog

13 years agoFix configure for mingw-w64/32.
Ivan Maidanski [Wed, 21 Sep 2011 09:14:29 +0000 (13:14 +0400)]
Fix configure for mingw-w64/32.
(Apply commit ad82960)

* configure.ac (PICFLAG, THREADDLLIBS): Define as empty for MinGW.
* configure.ac (have_pthreads): New definition (set to true unless
MinGW).
* configure.ac (HAVE_PTHREAD_H): New AM conditional (based on
have_pthreads value).
* tests/Makefile.am (test_atomic_pthreads_SOURCES,
test_atomic_pthreads_CPPFLAGS, test_atomic_pthreads_LDADD): Define
only if HAVE_PTHREAD_H.
* tests/Makefile.am (TESTS): Don't include test_atomic_pthreads unless
HAVE_PTHREAD_H.
* tests/Makefile.am (check_PROGRAMS): Define to TESTS value.

13 years agoDo not pass -fPIC to Cygwin gcc.
Ivan Maidanski [Wed, 17 Aug 2011 17:39:25 +0000 (21:39 +0400)]
Do not pass -fPIC to Cygwin gcc.
(Apply commit 85c025e)

* configure.ac (PICFLAG): Set to -fPIC if GCC but not Gygwin.

13 years agoFix test_malloc - allocate less memory in case of missing mmap()
Ivan Maidanski [Wed, 21 Sep 2011 08:50:06 +0000 (12:50 +0400)]
Fix test_malloc - allocate less memory in case of missing mmap()

* tests/test_malloc.c (LIST_LENGTH, LARGE_OBJ_SIZE): Define to
a smaller value unless HAVE_MMAP.

13 years agotests: Invoke exit() instead of abort() in case of out of memory
Ivan Maidanski [Wed, 21 Sep 2011 08:46:39 +0000 (12:46 +0400)]
tests: Invoke exit() instead of abort() in case of out of memory

* tests/test_malloc.c (cons, run_one_test): Call exit with a non-zero
code (instead of abort) if out of memory.
* tests/test_stack.c (add_elements): Likewise.
* tests/test_stack.c (main): Use a distinct exit code if a thread
creation failed.

13 years agoFix a typo in emul_cas.h comment.
Ivan Maidanski [Thu, 15 Sep 2011 06:27:57 +0000 (10:27 +0400)]
Fix a typo in emul_cas.h comment.

* src/atomic_ops/sysdeps/emul_cas.h: Fix a typo (replace AO_FORCE_CAS
with AO_REQUIRE_CAS in a comment).

13 years agoApply hotfix-7_2a6-1 to the current release.
Ivan Maidanski [Thu, 8 Sep 2011 19:15:02 +0000 (23:15 +0400)]
Apply hotfix-7_2a6-1 to the current release.

13 years agoIgnore auto-generated files of the next release.
Ivan Maidanski [Thu, 8 Sep 2011 18:56:03 +0000 (22:56 +0400)]
Ignore auto-generated files of the next release.

* .gitignore: Add more auto-generated files.

13 years agoRemove all .cvsignore files.
Ivan Maidanski [Thu, 8 Sep 2011 18:53:45 +0000 (22:53 +0400)]
Remove all .cvsignore files.
(Apply commit 6d636f4)

* .cvsignore, doc/.cvsignore, src/.cvsignore, src/atomic_ops/.cvsignore,
src/atomic_ops/sysdeps/.cvsignore, tests/.cvsignore: Remove.
* .gitignore: Update comment.

13 years agoAdd project-wide .gitignore file.
Ivan Maidanski [Thu, 8 Sep 2011 18:48:36 +0000 (22:48 +0400)]
Add project-wide .gitignore file.
(Apply commit b8cd1c0)

* .gitignore: New file.

13 years agoHOTFIX: Add and adjust include directories.
Petter Urkedal [Thu, 8 Sep 2011 18:39:58 +0000 (22:39 +0400)]
HOTFIX: Add and adjust include directories.
(Apply commit 13b518f)

* src/Makefile.am, tests/Makefile.am: Set compiler include paths
to $(top_builddir)/src and $(top_srcdir)/src.
* src/Makefile.in: Regenerate.
* tests/Makefile.in: Ditto.

13 years ago2011-06-14 Ivan Maidanski <ivmai@mail.ru> libatomic_ops-7_2alpha6
ivmai [Tue, 14 Jun 2011 12:34:55 +0000 (12:34 +0000)]
2011-06-14  Ivan Maidanski  <ivmai@mail.ru>

* include/gc_version.h, configure.ac, doc/README: Change to
version 7.2alpha6.
* configure: Regenerate.

13 years ago2011-07-14 Ivan Maidanski <ivmai@mail.ru>
ivmai [Thu, 14 Jul 2011 13:03:28 +0000 (13:03 +0000)]
2011-07-14  Ivan Maidanski <ivmai@mail.ru>

* tests/list_atomic.template (list_atomicXX): Remove "addr" local
variable (use "&val" instead); initialize "newval" and "oldval"
local variables; rename "tsaddr" local variable to "ts" one.
* tests/list_atomic.template (list_atomicXX): Fix
AO_test_and_setXX call (pass address instead of value).
* tests/list_atomic.template: Expand all tabs to spaces; remove
trailing spaces at EOLn.
* tests/run_parallel.inc: Ditto.
* tests/test_atomic.c: Ditto.
* tests/list_atomic.c: Regenerate.
* tests/run_parallel.inc (AO_PTRDIFF_T): New macro.
* tests/run_parallel.inc (tramp): Cast between pointer and integer
types via casting to AO_PTRDIFF_T.
* tests/test_atomic.c (add1sub1_thr, acqrel_thr): Ditto.
* tests/run_parallel.inc (run_parallel): Adjust printf format
specifiers for DWORD parameters.
* tests/test_stack.c: Skip test if no pthreads.

13 years ago2011-06-07 Ivan Maidanski <ivmai@mail.ru>
ivmai [Tue, 7 Jun 2011 16:57:06 +0000 (16:57 +0000)]
2011-06-07  Ivan Maidanski  <ivmai@mail.ru>

* src/atomic_ops/sysdeps/gcc/arm.h (AO_nop_full, AO_load): Do not
define for pre-ARMv6 directly (revert part of the previous
commit).
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set,
AO_test_and_set_full): Refine the comment.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set_full): Define
SWP-based implementation at the end of file (if none of
AO_test_and_set functions are defined previously).
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set): Remove
SWP-based implementation (revert part of the previous commit).
* src/atomic_ops/sysdeps/gcc/arm.h (AO_store): Remove redundant
definition at the file end (revert part of the previous commit).

13 years ago2011-06-27 Ivan Maidanski <ivmai@mail.ru> (really Jeremy Huddleston)
ivmai [Mon, 27 Jun 2011 06:48:12 +0000 (06:48 +0000)]
2011-06-27  Ivan Maidanski <ivmai@mail.ru> (really Jeremy Huddleston)

* src/atomic_ops/sysdeps/gcc/x86.h (AO_test_and_set_full):
Explicitly cast 0xff to unsigned char (otherwise LLVM v2.7 GAS
reports an error); don't recognize AO_XCHGB_RET_WORD.
* src/atomic_ops/sysdeps/gcc/x86_64.h (AO_test_and_set_full):
Ditto.

13 years ago2011-06-07 Ivan Maidanski <ivmai@mail.ru>
ivmai [Tue, 7 Jun 2011 14:13:16 +0000 (14:13 +0000)]
2011-06-07  Ivan Maidanski  <ivmai@mail.ru>

* src/atomic_ops/sysdeps/gcc/arm.h: Handle ARMv6M architecture.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set): Force "swp"
instruction usage (instead of ldrex/strex) if AO_FORCE_USE_SWP;
add a comment.
* src/atomic_ops/sysdeps/gcc/arm.h
(AO_compare_double_and_swap_double): Handle ARMv7EM architecture
(similar to ARMv7M).
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set, AO_nop_full,
AO_load, AO_store): Define at the end of file (in case not defined
previously).

13 years ago2011-06-15 Ivan Maidanski <ivmai@mail.ru>
ivmai [Wed, 15 Jun 2011 11:41:30 +0000 (11:41 +0000)]
2011-06-15  Ivan Maidanski <ivmai@mail.ru>

* include/gc_version.h, configure.ac, doc/README: Change to
version 7.2alpha7.
* configure: Regenerate.

13 years ago2011-06-07 Ivan Maidanski <ivmai@mail.ru>
ivmai [Tue, 7 Jun 2011 09:48:44 +0000 (09:48 +0000)]
2011-06-07  Ivan Maidanski  <ivmai@mail.ru>

* src/atomic_ops/generalize.h: Reformat code.
* src/atomic_ops/generalize.h (AO_test_and_set_acquire): Fix
return type.
* src/atomic_ops/sysdeps/armcc/arm_v6.h (AO_test_and_set): Ditto.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set): Ditto.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set): Add
a comment (about SWP instruction).