Skip to content

Commit 30b2447

Browse files
committed
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.
1 parent 0f10a5c commit 30b2447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/xtradb/include/os0sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ os_atomic_clear(volatile lock_word_t* ptr)
488488
__atomic_clear(ptr, __ATOMIC_RELEASE);
489489
}
490490

491-
# elif defined(IB_STRONG_MEMORY_MODEL)
491+
# elif defined(HAVE_ATOMIC_BUILTINS)
492492

493493
/** Do an atomic test and set.
494494
@param[in,out] ptr Memory location to set to non-zero

0 commit comments

Comments
 (0)