Support MIPS rel6
authorYunQiang Su <wzssyqa@gmail.com>
Fri, 16 Mar 2018 06:58:22 +0000 (09:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 27 Mar 2018 07:36:09 +0000 (10:36 +0300)
commitf69abe165db7181728cdb0ddc670541b9d434db7
tree4f604d8cd615c305f10d650289c97863fdccfb14
parent5cae4d65314609b98f942ef39c102b15238cc12e
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