diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-29 20:49:30 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-29 20:49:30 +0000 |
commit | 165391bc5a39e18db12362b05d4ab034afba2fee (patch) | |
tree | b660878e3028e93c71eb17e0314c417defcaacde /libgomp | |
parent | 9e4aaf6e3f20974a57fbab91160ad023aaaa424b (diff) | |
download | gcc-165391bc5a39e18db12362b05d4ab034afba2fee.tar.gz |
* config/linux/sparc/futex.h (cpu_relax): Read from CC register.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/config/linux/sparc/futex.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index c0d578f3e9e..44fabda7b36 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/config/linux/sparc/futex.h b/libgomp/config/linux/sparc/futex.h index 6c600446eb9..96e37b820c5 100644 --- a/libgomp/config/linux/sparc/futex.h +++ b/libgomp/config/linux/sparc/futex.h @@ -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"); } |