diff options
author | Robert Bindar <robert@mariadb.org> | 2019-07-01 13:21:07 +0300 |
---|---|---|
committer | Robert Bindar <robert@mariadb.org> | 2019-07-03 12:11:22 +0300 |
commit | e8392e58b2a5a69f9c0bd5b5aed90348b4a0ccb3 (patch) | |
tree | 3506325a01a0c06c154cf14bdc762311693e5c3d /configure.cmake | |
parent | 3acf74105175d4c909e0ea8e969f3d78bfc5f7af (diff) | |
download | mariadb-git-e8392e58b2a5a69f9c0bd5b5aed90348b4a0ccb3.tar.gz |
MDEV-19696 - Cleanup gcc sync builtins
Since 10.4 requires C++11 capable compiler, gcc sync builtins became
dead code. Remove relevant cmake checks and cleanup include files.
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/configure.cmake b/configure.cmake index bef4d3c1505..6b8bbed636e 100644 --- a/configure.cmake +++ b/configure.cmake @@ -862,30 +862,6 @@ MARK_AS_ADVANCED(NO_ALARM) CHECK_CXX_SOURCE_COMPILES(" int main() { - int foo= -10; int bar= 10; - long long int foo64= -10; long long int bar64= 10; - if (!__sync_fetch_and_add(&foo, bar) || foo) - return -1; - bar= __sync_lock_test_and_set(&foo, bar); - if (bar || foo != 10) - return -1; - bar= __sync_val_compare_and_swap(&bar, foo, 15); - if (bar) - return -1; - if (!__sync_fetch_and_add(&foo64, bar64) || foo64) - return -1; - bar64= __sync_lock_test_and_set(&foo64, bar64); - if (bar64 || foo64 != 10) - return -1; - bar64= __sync_val_compare_and_swap(&bar64, foo, 15); - if (bar64) - return -1; - return 0; -}" -HAVE_GCC_ATOMIC_BUILTINS) -CHECK_CXX_SOURCE_COMPILES(" -int main() -{ long long int var= 1; long long int *ptr= &var; return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST); |