[tbb/f19] Fix mfence patch
Petr Machata
pmachata at fedoraproject.org
Wed May 22 15:09:28 UTC 2013
commit f37359be0a230723b7f4e0b10b06a9457e6b7e55
Author: Petr Machata <pmachata at redhat.com>
Date: Wed May 22 17:04:52 2013 +0200
Fix mfence patch
- Since the __TBB_full_memory_fence macro was function-call-like, it
stole () intended for function invocation.
tbb-4.0-mfence.patch | 2 +-
tbb.spec | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tbb-4.0-mfence.patch b/tbb-4.0-mfence.patch
index 09a89fc..a463bc9 100644
--- a/tbb-4.0-mfence.patch
+++ b/tbb-4.0-mfence.patch
@@ -6,7 +6,7 @@ diff -up tbb40_20110809oss/include/tbb/machine/linux_ia32.h\~ tbb40_20110809oss/
#define __TBB_acquire_consistency_helper() __TBB_compiler_fence()
#define __TBB_release_consistency_helper() __TBB_compiler_fence()
-#define __TBB_full_memory_fence() __asm__ __volatile__("mfence": : :"memory")
-+#define __TBB_full_memory_fence() __TBB_full_memory_fence_imp
++#define __TBB_full_memory_fence() __TBB_full_memory_fence_imp()
+inline void __TBB_full_memory_fence_imp() {
+ int tmp;
+ __asm__ __volatile__("xchg %0,%0"
diff --git a/tbb.spec b/tbb.spec
index 7f526c4..dce10ba 100644
--- a/tbb.spec
+++ b/tbb.spec
@@ -10,7 +10,7 @@
Summary: The Threading Building Blocks library abstracts low-level threading details
Name: tbb
Version: %{dotver}
-Release: 7.%{releasedate}%{?dist}
+Release: 8.%{releasedate}%{?dist}
License: GPLv2 with exceptions
Group: Development/Tools
URL: http://threadingbuildingblocks.org/
@@ -143,6 +143,10 @@ rm -rf ${RPM_BUILD_ROOT}
%doc %{source_5}
%changelog
+* Wed May 22 2013 Petr Machata <pmachata at redhat.com> - 4.0-8.20120408
+- Fix mfence patch. Since the __TBB_full_memory_fence macro was
+ function-call-like, it stole () intended for function invocation.
+
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0-7.20120408
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list