summary refs log tree commit diff
path: root/src/rt/sync
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-04-08 02:14:55 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-04-08 02:23:33 +0200
commit009e01dbe74699d137410c13fca70370d376a824 (patch)
treecc776064300a1609fb835d12200d6aeae2ddd6be /src/rt/sync
parent53cc673db13608f27bec18ab71ce3fe36b6b303e (diff)
downloadrust-009e01dbe74699d137410c13fca70370d376a824.tar.gz
rust-009e01dbe74699d137410c13fca70370d376a824.zip
add FIXME related to the -fno-strict-aliasing workaround
Diffstat (limited to 'src/rt/sync')
-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 1c760bff9d4..03388bca573 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,