Author: faridz
Date: Wed Oct 8 10:31:16 2008
New Revision: 702931
URL: http://svn.apache.org/viewvc?rev=702931&view=rev
Log:
2008-10-08 Farid Zaripov <[EMAIL PROTECTED]>
* include/rw/_atomic-sparc.h: Declare __rw_atomic_xxx64() functions
only if atomic-sparc64.s file will be #included in atomic.s
(use the same conditions as in the atomic.s file).
* include/rw/_atomic.h: Use __sync_xxx() builtins on x86 platform
on processors >= i486 only.
Modified:
stdcxx/branches/4.2.x/include/rw/_atomic-sparc.h
stdcxx/branches/4.2.x/include/rw/_atomic.h
Modified: stdcxx/branches/4.2.x/include/rw/_atomic-sparc.h
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_atomic-sparc.h?rev=702931&r1=702930&r2=702931&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_atomic-sparc.h (original)
+++ stdcxx/branches/4.2.x/include/rw/_atomic-sparc.h Wed Oct 8 10:31:16 2008
@@ -45,12 +45,12 @@
int __rw_atomic_xchg32 (int*, int);
int __rw_atomic_add32 (int*, int);
-# if defined (_LP64)
+# if defined (__sparcv9) || defined (__sparcv9__)
long __rw_atomic_xchg64 (long*, long);
long __rw_atomic_add64 (long*, long);
-# endif // !_LP64
+# endif
} // extern "C"
Modified: stdcxx/branches/4.2.x/include/rw/_atomic.h
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_atomic.h?rev=702931&r1=702930&r2=702931&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_atomic.h (original)
+++ stdcxx/branches/4.2.x/include/rw/_atomic.h Wed Oct 8 10:31:16 2008
@@ -58,7 +58,7 @@
# elif defined (_PA_RISC2_0)
# include <rw/_atomic-parisc.h>
# elif defined (__GNUG__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 401) \
- && (defined (__i386__) || defined (__x86_64) || defined (__ia64)) \
+ && (defined (__i486__) || defined (__x86_64) || defined (__ia64)) \
&& !defined (__INTEL_COMPILER) \
|| (defined (__INTEL_COMPILER) && defined (__ia64))
# include <rw/_atomic-sync.h>