Skip to content

Commit

Permalink
MDEV-11212 - Clean-up MariaDB atomic operations
Browse files Browse the repository at this point in the history
Removed "somewhat broken native x86 implementation". Should never be used on
supported platforms.
  • Loading branch information
Sergey Vojtovich committed Dec 13, 2016
1 parent beea341 commit 1369e70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 157 deletions.
151 changes: 0 additions & 151 deletions include/atomic/x86-gcc.h

This file was deleted.

7 changes: 1 addition & 6 deletions include/my_atomic.h
Expand Up @@ -117,19 +117,14 @@
On Windows using Visual C++ the native implementation should be
preferrable. When using gcc we prefer the Solaris implementation
before the gcc because of stability preference, we choose gcc
builtins if available, otherwise we choose the somewhat broken
native x86 implementation. If neither Visual C++ or gcc we still
choose the Solaris implementation on Solaris (mainly for SunStudio
compilers).
builtins if available.
*/
#if defined(_MSC_VER)
#include "atomic/generic-msvc.h"
#elif defined(HAVE_SOLARIS_ATOMIC)
#include "atomic/solaris.h"
#elif defined(HAVE_GCC_ATOMIC_BUILTINS)
#include "atomic/gcc_builtins.h"
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
#include "atomic/x86-gcc.h"
#endif


Expand Down

0 comments on commit 1369e70

Please sign in to comment.