diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-19 13:51:35 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-19 13:51:35 -0400 |
commit | a294f539c78c6ba0a2786ef3c5b2a1210a33864e (patch) | |
tree | dff5f8aebb95b1131805a984dd378fd3cc487108 /configure | |
parent | bb3a3befeaa01531c273ef9130f3fbcaaf8a25e2 (diff) | |
download | musl-a294f539c78c6ba0a2786ef3c5b2a1210a33864e.tar.gz musl-a294f539c78c6ba0a2786ef3c5b2a1210a33864e.tar.bz2 musl-a294f539c78c6ba0a2786ef3c5b2a1210a33864e.tar.xz musl-a294f539c78c6ba0a2786ef3c5b2a1210a33864e.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.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions