mirror of
https://github.com/MariaDB/server.git
synced 2025-04-19 13:45:32 +02:00
MDEV-9128 - Compiling on IBM System Z fails
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
This commit is contained in:
parent
f00d7657f8
commit
edf6354bd6
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ os_atomic_clear(volatile lock_word_t* ptr)
|
|||
__atomic_clear(ptr, __ATOMIC_RELEASE);
|
||||
}
|
||||
|
||||
# elif defined(IB_STRONG_MEMORY_MODEL)
|
||||
# elif defined(HAVE_ATOMIC_BUILTINS)
|
||||
|
||||
/** Do an atomic test and set.
|
||||
@param[in,out] ptr Memory location to set to non-zero
|
||||
|
|
Loading…
Add table
Reference in a new issue