Commit d8ad1aaa authored by Mikael Ronstrom's avatar Mikael Ronstrom

Fix for BUG#45131

parent e78ca627
......@@ -35,7 +35,7 @@
asm volatile (LOCK "; xadd %0, %1;" : "+r" (v) , "+m" (*a))
#endif
#define make_atomic_swap_body(S) \
asm volatile ("; xchg %0, %1;" : "+r" (v) , "+m" (*a))
asm volatile ("; xchg %0, %1;" : "+q" (v) , "+m" (*a))
#define make_atomic_cas_body(S) \
asm volatile (LOCK "; cmpxchg %3, %0; setz %2;" \
: "+m" (*a), "+a" (*cmp), "=q" (ret): "r" (set))
......
......@@ -67,20 +67,6 @@ of the 32-bit x86 assembler in mutex operations. */
# define UNIV_MUST_NOT_INLINE
# endif
/* When on Solaris, gcc, and 32-bit disable inlining */
# if defined(__GNUC__) && defined(UNIV_SOLARIS) && defined(__i386__)
# undef UNIV_MUST_NOT_INLINE
# define UNIV_MUST_NOT_INLINE
# endif
/* When on Mac OS X, gcc, and 32-bit x86 disable inlining */
# if defined(__GNUC__) && defined(__APPLE__) && defined (__MACH__) && defined(__i386__)
# undef UNIV_MUST_NOT_INLINE
# define UNIV_MUST_NOT_INLINE
# endif
# ifdef HAVE_PREAD
# define HAVE_PWRITE
# endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment