]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Enforce compiler barriers on hardware transactions
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Mon, 28 Dec 2015 14:24:43 +0000 (12:24 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Mon, 22 Feb 2016 19:07:08 +0000 (16:07 -0300)
commit3803874b4a368eb8245fbf091651b6c8edd90b23
treef9dc28b649b58b772c026413e989e1dba51c4713
parentb995d95a5943785be3ab862b2d3276f3b4a22481
powerpc: Enforce compiler barriers on hardware transactions

Work around a GCC behavior with hardware transactional memory built-ins.
GCC doesn't treat the PowerPC transactional built-ins as compiler
barriers, moving instructions past the transaction boundaries and
altering their atomicity.

(cherry picked from commit 42bf1c897170ff951c7fd0ee9da25f97ff787396)

Conflicts:
sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
ChangeLog
sysdeps/powerpc/nptl/elide.h
sysdeps/powerpc/sysdep.h
sysdeps/unix/sysv/linux/powerpc/elision-lock.c
sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
sysdeps/unix/sysv/linux/powerpc/htm.h