re PR libstdc++/28671 (undefined reference to `__sync_fetch_and_add_4')

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
This commit is contained in:
Benjamin Kosnik 2006-08-31 10:45:59 +00:00 committed by Benjamin Kosnik
parent e4f2cd43ec
commit f640f39eef
3 changed files with 7 additions and 12 deletions

View 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>

View 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)

View File

@ -41,15 +41,6 @@
_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)