Commit 71687ccc authored by Jens Gustedt's avatar Jens Gustedt
Browse files

icc needs a volatile target pointer for atomic_flag

parent 054c8430
......@@ -45,7 +45,7 @@ p99_extension ({
#define p00_sync_lock_release_(OBJ, ORD, ...) \
p99_extension ({ \
P99_MACRO_PVAR(p00_obj, (OBJ)); \
P99_MACRO_PVAR(p00_obj, (OBJ), volatile); \
/* __sync_lock_release only has release consistency */ \
/* the fence must come before so nothing can be reordered after */ \
switch (ORD) { \
......@@ -60,7 +60,7 @@ p99_extension ({ \
#define p00_sync_lock_test_and_set_(OBJ, ORD, ...) \
p99_extension ({ \
P99_MACRO_PVAR(p00_obj, (OBJ)); \
P99_MACRO_PVAR(p00_obj, (OBJ), volatile); \
/* __sync_lock_test_and_set only has acquire consistency */ \
int ret = __sync_lock_test_and_set(p00_obj, 1); \
/* the fence must come after so nothing can be reordered before */ \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment