ensure the compiler does not move around thread-register-based reads
authorRich Felker <dalias@aerifal.cx>
Sun, 7 Aug 2011 00:45:30 +0000 (20:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 7 Aug 2011 00:45:30 +0000 (20:45 -0400)
commit8426a99048261b998a27557cf34f81626ffe9f12
tree4df1b3180ee6facecada2150406e9e003904f479
parent357876052b125dcd74882f61afec19d8f519074c
ensure the compiler does not move around thread-register-based reads

if gcc decided to move this across a conditional that checks validity
of the thread register, an invalid thread-register-based read could be
performed and raise sigsegv.
arch/i386/pthread_arch.h
arch/x86_64/pthread_arch.h