about summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-19 13:51:35 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-28 00:28:00 -0400
commit806655b22539416290aeff36c4be588ce3c0e9a1 (patch)
treed93a537fb1c5e0d63570e2592faaaa257c8980dc /.gitignore
parent9e8f22fb3e797c1029b58d25eb1d3c529bc4b5b5 (diff)
downloadmusl-806655b22539416290aeff36c4be588ce3c0e9a1.tar.gz
musl-806655b22539416290aeff36c4be588ce3c0e9a1.tar.xz
musl-806655b22539416290aeff36c4be588ce3c0e9a1.zip
use memory constraints for mips atomic asm
despite lacking the semantic content that the asm accesses the
pointed-to object rather than just using its address as a value, the
mips asm was not actually broken. the asm blocks were declared
volatile, meaning that the compiler must treat them as having unknown
side effects.

however changing the asm to use memory constraints is desirable not
just from a semantic correctness and consistency standpoint, but also
produces better code. the compiler is able to use base/offset
addressing expressions for the atomic object's address rather than
having to load the address into a single register. this improves
access to global locks in static libc, and access to non-zero-offset
atomic fields in synchronization primitives, etc.

(cherry picked from commit a294f539c78c6ba0a2786ef3c5b2a1210a33864e)
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions