Skip to content

Commit

Permalink
Support n32 ABI for mips64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kelledin authored and ivmai committed May 12, 2015
1 parent c6f7c2e commit d3e884b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomic_ops/sysdeps/gcc/mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d3e884b

Please sign in to comment.