diff options
author | Frank Schaefer <kelledin@gmail.com> | 2015-05-09 05:26:43 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-05-13 00:36:36 +0300 |
commit | d3e884b41ede6d5a83ec480f72a8ed6fb4984e3c (patch) | |
tree | 402b9086d55ebacbf1b41910ac57c36410e302bc | |
parent | c6f7c2e3477648814fda13aca1c58d9ecd47278a (diff) | |
download | libatomic_ops-d3e884b41ede6d5a83ec480f72a8ed6fb4984e3c.tar.gz |
Support n32 ABI for mips64
Without the proposed change, the existing preprocessor checks for
mips64 support do not account for the n32 ABI (when building with
"gcc -mabi=n32", test_atomic and test_stack both fail, and
test_malloc appears to hang indefinitely while spinning at 100%).
* src/atomic_ops/sysdeps/gcc/mips.h (AO_MIPS_SET_ISA, AO_MIPS_LL_1,
AO_MIPS_SC): Define depending on _MIPS_SIM value.
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/mips.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/mips.h b/src/atomic_ops/sysdeps/gcc/mips.h index 1ad47f2..73ca551 100644 --- a/src/atomic_ops/sysdeps/gcc/mips.h +++ b/src/atomic_ops/sysdeps/gcc/mips.h @@ -24,7 +24,7 @@ /* Data dependence does not imply read ordering. */ #define AO_NO_DD_ORDERING -#ifdef __mips64 +#if defined(_ABI64) && (_MIPS_SIM == _ABI64) # define AO_MIPS_SET_ISA " .set mips3\n" # define AO_MIPS_LL_1(args) " lld " args "\n" # define AO_MIPS_SC(args) " scd " args "\n" |