]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/28671 (undefined reference to `__sync_fetch_and_add_4')
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 31 Aug 2006 10:45:59 +0000 (10:45 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 31 Aug 2006 10:45:59 +0000 (10:45 +0000)
2006-08-31  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/28671
* include/bits/atomicity.h (__exchange_and_add): Declare only.
(__atomic_add): Same.
* config/cpu/generic/atomicity_builtins/atomicity.h: Remove comment.

From-SVN: r116601

libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h
libstdc++-v3/include/bits/atomicity.h

index caa1fcf68e55c087a93f9eab79154ff457e76bee..083f283226b28711ccc403d5441b797b8f6027fe 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-31  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/28671
+       * include/bits/atomicity.h (__exchange_and_add): Declare only.
+       (__atomic_add): Same.
+       * config/cpu/generic/atomicity_builtins/atomicity.h: Remove comment.
+       
 2006-08-30  Benjamin Kosnik  <bkoz@redhat.com>
             Richard Guenther  <rguenther@suse.de>
        
index 82429be25937f1de231283ba3a83e11de2937e5b..6c2971e7af95a72e6498e766aa02d566dec02ab1 100644 (file)
@@ -33,8 +33,6 @@
 
 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
-  // XXX GLIBCXX_ABI Deprecated
-  // Should be inlined, and not exported.
   _Atomic_word 
   __attribute__ ((__unused__))
   __exchange_and_add(volatile _Atomic_word* __mem, int __val)
index 79af99ec7241dd581151f68a2b0e9fa24c0fd747..75d9893f764251af657b9fddc44756e407077c05 100644 (file)
 
 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
-#ifdef _GLIBCXX_ATOMIC_BUILTINS
-  static inline _Atomic_word 
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
-  { return __sync_fetch_and_add(__mem, __val); }
-
-  static inline void
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
-  { __sync_fetch_and_add(__mem, __val); }
-#else
   _Atomic_word
   __attribute__ ((__unused__))
   __exchange_and_add(volatile _Atomic_word* __mem, int __val);
@@ -57,7 +48,6 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   void
   __attribute__ ((__unused__))
   __atomic_add(volatile _Atomic_word* __mem, int __val);
-#endif
 
   static inline _Atomic_word
   __exchange_and_add_single(_Atomic_word* __mem, int __val)