Commit a339c9d6 by Eric Botcazou Committed by Eric Botcazou

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

From-SVN: r184672
parent b65734ac
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> 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/52188 PR libstdc++/52188
......
...@@ -90,9 +90,5 @@ futex_wake (int *addr, int count) ...@@ -90,9 +90,5 @@ futex_wake (int *addr, int count)
static inline void static inline void
cpu_relax (void) cpu_relax (void)
{ {
#if defined __arch64__ || defined __sparc_v9__ __asm volatile ("rd %%ccr, %%g0" : : : "memory");
__asm volatile ("membar #LoadLoad" : : : "memory");
#else
__asm volatile ("" : : : "memory");
#endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment