diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-06-17 13:09:58 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-06-17 13:09:58 +0000 |
commit | 19caedae314ce20ca4eb9cc7a64432d6fdf850b7 (patch) | |
tree | a5f54d802300ff35ed2ce05515b7b22e93ce6985 /libstdc++-v3/config/cpu | |
parent | 4e2b26aaa258ada5c20d19861655452354be3abc (diff) | |
download | gcc-19caedae314ce20ca4eb9cc7a64432d6fdf850b7.zip gcc-19caedae314ce20ca4eb9cc7a64432d6fdf850b7.tar.gz gcc-19caedae314ce20ca4eb9cc7a64432d6fdf850b7.tar.bz2 |
atomicity.h: Use __mcfisaa__...
* config/cpu/m68k/atomicity.h: Use __mcfisaa__, __mcfisaaplus__,
__mcfisab__ & __mcfisac__ instead of obsolete cpu #defines.
From-SVN: r125775
Diffstat (limited to 'libstdc++-v3/config/cpu')
-rw-r--r-- | libstdc++-v3/config/cpu/m68k/atomicity.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/config/cpu/m68k/atomicity.h b/libstdc++-v3/config/cpu/m68k/atomicity.h index f63b582..1d1b427 100644 --- a/libstdc++-v3/config/cpu/m68k/atomicity.h +++ b/libstdc++-v3/config/cpu/m68k/atomicity.h @@ -89,14 +89,14 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) _Atomic_word __result; // bset with no immediate addressing (not SMP-safe) -#if defined(__mcf5200__) || defined(__mcf5300__) +#if defined(__mcfisaa__) || defined(__mcfisaaplus__) __asm__ __volatile__("1: bset.b #7,%0@\n\tjbne 1b" : /* no outputs */ : "a"(&_Atomicity_lock<0>::_S_atomicity_lock) : "cc", "memory"); - // CPU32 and MCF5400 support test-and-set (SMP-safe). -#elif defined(__mcpu32__) || defined(__mcf5400__) + // CPU32 and CF ISAs B & C support test-and-set (SMP-safe). +#elif defined(__mcpu32__) || defined(__mcfisab__) || defined (__mcfisac__) __asm__ __volatile__("1: tas %0\n\tjbne 1b" : "+m"(_Atomicity_lock<0>::_S_atomicity_lock) : /* none */ |