summaryrefslogtreecommitdiff
path: root/libitm
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-07-03 09:24:10 +0200
committerUros Bizjak <uros@gcc.gnu.org>2012-07-03 09:24:10 +0200
commit68a12ef35b38746594c034a71d74dd6d68b775c0 (patch)
tree8849e6d14281c455d4dfeb286d419086995bcc7f /libitm
parent43283548c184deca6ba9df2f31fe38e9a12738f2 (diff)
downloadgcc-68a12ef35b38746594c034a71d74dd6d68b775c0.tar.gz
xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
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. From-SVN: r189194
Diffstat (limited to 'libitm')
-rw-r--r--libitm/ChangeLog4
-rw-r--r--libitm/config/x86/target.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog
index 0ccdf42c592..2d10d5e8f97 100644
--- a/libitm/ChangeLog
+++ b/libitm/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-31 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
+
2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
* eh_cpp.cc: Fix __cxa_end_catch declaration.
diff --git a/libitm/config/x86/target.h b/libitm/config/x86/target.h
index 5c7e6fbee88..73b6585ae70 100644
--- a/libitm/config/x86/target.h
+++ b/libitm/config/x86/target.h
@@ -63,7 +63,7 @@ typedef struct gtm_jmpbuf
static inline void
cpu_relax (void)
{
- __asm volatile ("rep; nop" : : : "memory");
+ __builtin_ia32_pause ();
}
} // namespace GTM