diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-04-07 12:47:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-07 12:47:19 -0400 |
commit | 25748db301c242d36718c6708ffd2b67a456483a (patch) | |
tree | 811f546f5908b6826e65f6273b7ae16f6fdbcbbf /arch/sh/atomic.h | |
parent | 05e0e301e3efbeb399b9f3d96fab63aac18e601a (diff) | |
download | musl-25748db301c242d36718c6708ffd2b67a456483a.tar.gz musl-25748db301c242d36718c6708ffd2b67a456483a.tar.xz musl-25748db301c242d36718c6708ffd2b67a456483a.zip |
fix possible clobbering of syscall return values on mips
depending on the compiler's interpretation of __asm__ register names for register class objects, it may be possible for the return value in r2 to be clobbered by the function call to __stat_fix. I have not observed any such breakage in normal builds and suspect it only happens with -O0 or other unusual build options, but since there's an ambiguity as to the semantics of this feature, it's best to use an explicit temporary to avoid the issue. based on reporting and patch by Eugene.
Diffstat (limited to 'arch/sh/atomic.h')
0 files changed, 0 insertions, 0 deletions