Fix for BUG#45131
This commit is contained in:
parent
7f2db925de
commit
510835a072
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user