Remove MIPS16 atomics using __sync_* (bug 17404).
commit8f82f28bbaa6ca503e6296b2d26ecf213bceff88
authorJoseph Myers <joseph@codesourcery.com>
Tue, 27 Oct 2015 23:47:56 +0000 (27 23:47 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 27 Oct 2015 23:47:56 +0000 (27 23:47 +0000)
tree075ed37973747822325b5a45ceb4bf12518d6045
parentf1d237df1eec1df8cbc34f95540fd4035776e79c
Remove MIPS16 atomics using __sync_* (bug 17404).

MIPS16 atomics used __sync_* with GCC before 4.7, which as noted in
bug 17404 is missing the required barrier semantics for
atomic_exchange_rel.  This patch removes the code in question as dead
now GCC before 4.7 is no longer supported for building glibc.

Sanity tested with builds for MIPS.

[BZ #17404]
* sysdeps/mips/atomic-machine.h
[__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
[__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
ChangeLog
NEWS
sysdeps/mips/atomic-machine.h