aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-04-08 02:14:55 +0200
committerMarijn Haverbeke <[email protected]>2011-04-08 02:23:33 +0200
commit009e01dbe74699d137410c13fca70370d376a824 (patch)
treecc776064300a1609fb835d12200d6aeae2ddd6be
parentRe-add a read_byte() method to buf_reader objs (diff)
downloadrust-009e01dbe74699d137410c13fca70370d376a824.tar.xz
rust-009e01dbe74699d137410c13fca70370d376a824.zip
add FIXME related to the -fno-strict-aliasing workaround
-rw-r--r--src/rt/sync/lock_free_queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/sync/lock_free_queue.h b/src/rt/sync/lock_free_queue.h
index 1c760bff..03388bca 100644
--- a/src/rt/sync/lock_free_queue.h
+++ b/src/rt/sync/lock_free_queue.h
@@ -88,6 +88,8 @@ class lock_free_queue {
pointer_t *oldValue,
pointer_t newValue) {
+ // FIXME this is requiring us to pass -fno-strict-aliasing to GCC
+ // (possibly there are other, similar problems)
if (sync::compare_and_swap(
(uint64_t*) address,
*(uint64_t*) oldValue,