* config/linux/sparc/futex.h (cpu_relax): Read from CC register.

From-SVN: r184672
This commit is contained in:
Eric Botcazou 2012-02-29 20:49:30 +00:00 committed by Eric Botcazou
parent b65734ac6c
commit a339c9d606
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
* config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/52188

View File

@ -90,9 +90,5 @@ futex_wake (int *addr, int count)
static inline void
cpu_relax (void)
{
#if defined __arch64__ || defined __sparc_v9__
__asm volatile ("membar #LoadLoad" : : : "memory");
#else
__asm volatile ("" : : : "memory");
#endif
__asm volatile ("rd %%ccr, %%g0" : : : "memory");
}