Quantcast
Channel: libdispatch: Ticket #35: invalid code generated by GCC 4.5.1 for _dispatch_queue_push_list()
Viewing all articles
Browse latest Browse all 12

comment added

$
0
0

Replying to mark@…:

Replying to dsteffen@…:

+#define dispatch_atomic_barrier() \ + asm volatile("" : : : "memory")

This assembly instruction won't work on ARM or PPC, according to a similar function in the Haskell source code[1] as reproduced below:

no, this would double up the generated barrier instructions, the __sync builtins are defined to already include these on architectures where necessary (the libdispatch arm port is not open-source, but does do the right thing here).


Viewing all articles
Browse latest Browse all 12

Trending Articles