Skip to content
Snippets Groups Projects
  1. Mar 24, 2013
    • Andi Kleen's avatar
      Avoid non constant memory model uses in libatomic · 94f3ccc8
      Andi Kleen authored
      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
      94f3ccc8
  2. Jan 14, 2013
  3. Dec 18, 2012
  4. Dec 04, 2012
  5. Nov 22, 2012
  6. Nov 04, 2012
  7. Oct 23, 2012
    • Sofiane Naci's avatar
      AArch64 [6/10] · 34f8442e
      Sofiane Naci authored
      2012-10-23  Sofiane Naci <sofiane.naci@arm.com>
      
      	Mark libatomic unsupported in AArch64.
      
      	* configure.tgt: Mark libatomic unsupported.
      
      From-SVN: r192727
      34f8442e
  8. Sep 20, 2012
    • Jakub Jelinek's avatar
      re PR other/43620 ([4.3 Release Blocker] Uploading to gnu.org will fail due to... · c0758df9
      Jakub Jelinek authored
      re PR other/43620 ([4.3 Release Blocker] Uploading to gnu.org will fail due 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
      c0758df9
  9. Sep 14, 2012
  10. May 22, 2012
  11. May 16, 2012
    • H.J. Lu's avatar
      Regenerate configure files for libtool.m4 change · e6d5f8c9
      H.J. Lu authored
      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
      e6d5f8c9
  12. May 10, 2012
  13. May 07, 2012
  14. May 03, 2012
  15. May 01, 2012
Loading