Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-03-24 | Avoid non constant memory model uses in libatomic | Andi Kleen | 4 | -4/+4 | |
x86 ends up using non constant memory models for some of the libatomic functions. These all end up as __ATOMIC_SEQ_CST. Just use this directly. This avoids a new warning for non constant memory models, which broke the bootstrap with -Werror Passed bootstrap and test on x86_64-linux. libatomic/: 2013-03-23 Andi Kleen <ak@linux.intel.com> * gcas.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. * gexch.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. * gload.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. * gstore.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. diff --git a/libatomic/gcas.c b/libatomic/gcas.c index edbf611..e3d77f3 100644 --- a/libatomic/gcas.c +++ b/libatomic/gcas.c @@ -32,7 +32,7 @@ # define EXACT_INLINE(N) \ if (C2(HAVE_ATOMIC_CAS_,N)) \ return __atomic_compare_exchange_n \ - (PTR(N,mptr), PTR(N,eptr), *PTR(N,dptr), false, smodel, fmodel) + (PTR(N,mptr), PTR(N,eptr), *PTR(N,dptr), false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST) #else # define EXACT_INLINE(N) #endif diff --git a/libatomic/gexch.c b/libatomic/gexch.c index 1999067..c8c8658 100644 --- a/libatomic/gexch.c +++ b/libatomic/gexch.c @@ -33,7 +33,7 @@ if (C2(HAVE_ATOMIC_EXCHANGE_,N)) \ { \ *PTR(N,rptr) = __atomic_exchange_n \ - (PTR(N,mptr), *PTR(N,vptr), smodel); \ + (PTR(N,mptr), *PTR(N,vptr), __ATOMIC_SEQ_CST); \ return; \ } #else diff --git a/libatomic/gload.c b/libatomic/gload.c index df318d5..85865bd 100644 --- a/libatomic/gload.c +++ b/libatomic/gload.c @@ -32,7 +32,7 @@ # define EXACT_INLINE(N, DEST, SRC, DONE) \ if (C2(HAVE_ATOMIC_LDST_,N)) \ { \ - DEST = __atomic_load_n (SRC, smodel); \ + DEST = __atomic_load_n (SRC, __ATOMIC_SEQ_CST); \ DONE; \ } #else diff --git a/libatomic/gstore.c b/libatomic/gstore.c index d571e58..84f9a8d 100644 --- a/libatomic/gstore.c +++ b/libatomic/gstore.c @@ -32,7 +32,7 @@ # define EXACT_INLINE(N) \ if (C2(HAVE_ATOMIC_LDST_,N)) \ { \ - __atomic_store_n (PTR(N,mptr), *PTR(N,vptr), smodel); \ + __atomic_store_n (PTR(N,mptr), *PTR(N,vptr), __ATOMIC_SEQ_CST); \ return; \ } #else From-SVN: r197017 | |||||
2013-01-14 | Update copyright years in libatomic. | Richard Sandiford | 29 | -28/+32 | |
From-SVN: r195164 | |||||
2012-12-18 | re PR go/55201 (libgo.so: undefined reference to `__atomic_compare_exchange_8') | Ian Lance Taylor | 4 | -75/+64 | |
PR go/55201 * Makefile.am (noinst_LTLIBRARIES): Define new make variable. (libatomic_convenience_la_SOURCES): Likewise. (libatomic_convenience_la_LIBADD): Likewise. * Makefile.in: Rebuild. * testsuite/Makefile.in: Rebuild. From-SVN: r194592 | |||||
2012-12-04 | libatomic: Detect and build for ARM architecture armv8-a. | Marcus Shawcroft | 2 | -0/+8 | |
2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com> * config/arm/arm-config.h (__ARM_ARCH_8A__): New. From-SVN: r194150 | |||||
2012-11-22 | configure.tgt (i[3456]86): Handle -mx32 like -m64. | Matthias Klose | 2 | -1/+5 | |
2012-11-21 Matthias Klose <doko@ubuntu.com> * configure.tgt (i[3456]86): Handle -mx32 like -m64. From-SVN: r193720 | |||||
2012-11-05 | acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message. | Thomas Schwinge | 3 | -4/+8 | |
libatomic/ * acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message. * configure: Regenerate. From-SVN: r193145 | |||||
2012-11-05 | configure: Regenerate. | Thomas Schwinge | 2 | -12/+12 | |
libatomic/ * configure: Regenerate. libitm/ * configure: Regenerate. From-SVN: r193144 | |||||
2012-10-23 | AArch64 [6/10] | Sofiane Naci | 2 | -0/+11 | |
2012-10-23 Sofiane Naci <sofiane.naci@arm.com> Mark libatomic unsupported in AArch64. * configure.tgt: Mark libatomic unsupported. From-SVN: r192727 | |||||
2012-09-20 | re PR other/43620 ([4.3 Release Blocker] Uploading to gnu.org will fail due ↵ | Jakub Jelinek | 4 | -239/+29 | |
to automake security issue) PR other/43620 libatomic/ * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * configure: Regenerate. * Makefile.in: Regenerate. libitm/ * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * configure: Regenerate. * Makefile.in: Regenerate. From-SVN: r191565 | |||||
2012-09-14 | * configure: Regenerated. | David Edelsohn | 2 | -0/+5 | |
From-SVN: r191319 | |||||
2012-05-22 | re PR other/53231 (libatomic/tas_n.c:100:10: error: 'ret' undeclared (first ↵ | John David Anglin | 2 | -2/+7 | |
use in this function)) PR other/53231 * tas_n.c (libat_test_and_set): Correct return. Remove unused variable. From-SVN: r187783 | |||||
2012-05-16 | Regenerate configure files for libtool.m4 change | H.J. Lu | 2 | -3/+14 | |
boehm-gc/ * configure: Regenerated. gcc/ * configure: Regenerated. libatomic/ * configure: Regenerated. libffi/ * configure: Regenerated. libgfortran/ * configure: Regenerated. libgomp/ * configure: Regenerated. libitm/ * configure: Regenerated. libjava/classpath/ * configure: Regenerated. libjava/ * configure: Regenerated. libmudflap/ * configure: Regenerated. libobjc/ * configure: Regenerated. libquadmath/ * configure: Regenerated. libssp/ * configure: Regenerated. libstdc++-v3/ * configure: Regenerated. lto-plugin/ * configure: Regenerated. zlib/ * configure: Regenerated. From-SVN: r187616 | |||||
2012-05-10 | Always compile atomic builtin tests with $XCFLAGS | Rainer Orth | 3 | -31/+38 | |
PR other/53284 * acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Add -O0 -S to CFLAGS instead of overriding. * configure: Regenerate. From-SVN: r187366 | |||||
2012-05-07 | Allow for objects in libatomic_la_LIBADD | Rainer Orth | 4 | -113/+72 | |
* Makefile.am (libatomic.map-sun): Handle objects in libatomic_la_LIBADD. * aclocal.m4: Regenerate. * Makefile.in: Regenerate. From-SVN: r187257 | |||||
2012-05-07 | Don't include XCFLAGS in CFLAGS | Rainer Orth | 3 | -2/+7 | |
* configure.ac: Add $XPCFLAGS to CFLAGS, not $XCFLAGS. * configure: Regenerate. From-SVN: r187256 | |||||
2012-05-03 | libatomic: Enable AM_MAINTAINER_MODE | Richard Henderson | 6 | -10/+87 | |
From-SVN: r187108 | |||||
2012-05-03 | acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Handle compilation failure in ↵ | Richard Henderson | 6 | -82/+214 | |
gcc_no_link path. * acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Handle compilation failure in gcc_no_link path. * configure: Rebuild. From-SVN: r187102 | |||||
2012-05-01 | Add libatomic as a target library. | Richard Henderson | 77 | -0/+28864 | |
From-SVN: r187018 |