]> granicus.if.org Git - libatomic_ops/commit
Support MIPS rel6
authorYunQiang Su <wzssyqa@gmail.com>
Fri, 16 Mar 2018 06:58:22 +0000 (09:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 16 Mar 2018 06:58:22 +0000 (09:58 +0300)
commit7b82cbef594fed2db3a0b278eb7175cfc672e32b
tree8e14292ae762ed31446db20ff52e5c7b9c1a40e7
parent9eb1e7dbc60e58295c4d4f3cd9360eb2ee75befc
Support MIPS rel6

Don't set mips2/3 for mips r6.  MIPS release 6 changes the encoding of
some instructions, including ll/sc.  Setting mips2/3 here produces the
binary with the old encoding (not compatible with mips r6).

This patch has no effect if gcc 4.9+ or clang 3.5+ unless
AO_DISABLE_GCC_ATOMICS is defined manually in CFLAGS.

* src/atomic_ops/sysdeps/gcc/mips.h [AO_DISABLE_GCC_ATOMICS
&& __mips_isa_rev>=6] (AO_MIPS_SET_ISA): Define to empty string
(instead of ".set mips2" or ".set mips3").
src/atomic_ops/sysdeps/gcc/mips.h