summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-03 07:24:10 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-03 07:24:10 +0000
commit44bfcc4f291ede957525da5b782f4829e2f691e1 (patch)
tree8849e6d14281c455d4dfeb286d419086995bcc7f /libgomp
parent948e3eac64160e9fc713b9ce265827d9ae9c3cae (diff)
downloadgcc-44bfcc4f291ede957525da5b782f4829e2f691e1.tar.gz
gcc/
2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause. libgomp/ 2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause. * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto. libitm/ 2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog11
-rw-r--r--libgomp/config/linux/x86/futex.h2
-rw-r--r--libgomp/testsuite/libgomp.c/sort-1.c2
3 files changed, 10 insertions, 5 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index ace010430e7..0b0266c33ea 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,7 +1,12 @@
+2012-07-03 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
+ * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
+
2012-07-02 Richard Guenther <rguenther@suse.de>
- Michael Matz <matz@suse.de>
- Tobias Grosser <tobias@grosser.es>
- Sebastian Pop <sebpop@gmail.com>
+ Michael Matz <matz@suse.de>
+ Tobias Grosser <tobias@grosser.es>
+ Sebastian Pop <sebpop@gmail.com>
* testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
* testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
diff --git a/libgomp/config/linux/x86/futex.h b/libgomp/config/linux/x86/futex.h
index f6d26dc4918..8e87de1ef7d 100644
--- a/libgomp/config/linux/x86/futex.h
+++ b/libgomp/config/linux/x86/futex.h
@@ -143,5 +143,5 @@ futex_wake (int *addr, int count)
static inline void
cpu_relax (void)
{
- __asm volatile ("rep; nop" : : : "memory");
+ __builtin_ia32_pause ();
}
diff --git a/libgomp/testsuite/libgomp.c/sort-1.c b/libgomp/testsuite/libgomp.c/sort-1.c
index 269d69da12c..3743065543e 100644
--- a/libgomp/testsuite/libgomp.c/sort-1.c
+++ b/libgomp/testsuite/libgomp.c/sort-1.c
@@ -100,7 +100,7 @@ static inline void
busy_wait (void)
{
#if defined __i386__ || defined __x86_64__
- __asm volatile ("rep; nop" : : : "memory");
+ __builtin_ia32_pause ();
#elif defined __ia64__
__asm volatile ("hint @pause" : : : "memory");
#elif defined __sparc__ && (defined __arch64__ || defined __sparc_v9__)