mirror of git://gcc.gnu.org/git/gcc.git
atomicity.h: Use __mcfisaa__...
* config/cpu/m68k/atomicity.h: Use __mcfisaa__, __mcfisaaplus__, __mcfisab__ & __mcfisac__ instead of obsolete cpu #defines. From-SVN: r125775
This commit is contained in:
parent
4e2b26aaa2
commit
19caedae31
|
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
|
* config/cpu/m68k/atomicity.h: Use __mcfisaa__, __mcfisaaplus__,
|
||||||
|
__mcfisab__ & __mcfisac__ instead of obsolete cpu #defines.
|
||||||
|
|
||||||
2007-06-13 Richard Earnshaw <rearnsha@arm.com>
|
2007-06-13 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
* libsupc++/eh_arm.cc (__cxa_type_match): Handle foreign
|
* libsupc++/eh_arm.cc (__cxa_type_match): Handle foreign
|
||||||
|
|
|
||||||
|
|
@ -89,14 +89,14 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||||
_Atomic_word __result;
|
_Atomic_word __result;
|
||||||
|
|
||||||
// bset with no immediate addressing (not SMP-safe)
|
// 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"
|
__asm__ __volatile__("1: bset.b #7,%0@\n\tjbne 1b"
|
||||||
: /* no outputs */
|
: /* no outputs */
|
||||||
: "a"(&_Atomicity_lock<0>::_S_atomicity_lock)
|
: "a"(&_Atomicity_lock<0>::_S_atomicity_lock)
|
||||||
: "cc", "memory");
|
: "cc", "memory");
|
||||||
|
|
||||||
// CPU32 and MCF5400 support test-and-set (SMP-safe).
|
// CPU32 and CF ISAs B & C support test-and-set (SMP-safe).
|
||||||
#elif defined(__mcpu32__) || defined(__mcf5400__)
|
#elif defined(__mcpu32__) || defined(__mcfisab__) || defined (__mcfisac__)
|
||||||
__asm__ __volatile__("1: tas %0\n\tjbne 1b"
|
__asm__ __volatile__("1: tas %0\n\tjbne 1b"
|
||||||
: "+m"(_Atomicity_lock<0>::_S_atomicity_lock)
|
: "+m"(_Atomicity_lock<0>::_S_atomicity_lock)
|
||||||
: /* none */
|
: /* none */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue