Skip to content

Commit e5592c6

Browse files
committed
Fix memory barrier support on icc on ia64, 2nd attempt.
Itanium doesn't have the mfence instruction - that's a 386 thing. Use the "mf" instruction instead. This reverts the previous commit to add "#include <emmintrinsic.h>"; the problem was not with a missing #include.
1 parent 6052bce commit e5592c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/storage/barrier.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ extern slock_t dummy_spinlock;
5353
/*
5454
* icc defines __GNUC__, but doesn't support gcc's inline asm syntax
5555
*/
56-
#include <emmintrin.h>
56+
#if defined(__ia64__) || defined(__ia64)
57+
#define pg_memory_barrier() __mf()
58+
#else if defined(__i386__) || defined(__x86_64__)
5759
#define pg_memory_barrier() _mm_mfence()
60+
#endif
61+
5862
#define pg_compiler_barrier() __memory_barrier()
5963
#elif defined(__GNUC__)
6064

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy