Skip to content

PowerPC: RTS SMP functions lack memory barriers

@hvr reported on POWER7 big endian (powerpc64) and on AIX (powerpc):

internal error: END_TSO_QUEUE object entered!
(GHC version 8.0.0.20160421 for powerpc64_unknown_linux)

Also concprog001 segfaults, which I falsely attributed to #11259 (closed) (no runtime linker support) when I marked the test broken on powerpc64.

I propose to use gcc and clang _sync_* built-ins that are already used in libraries/ghc-prim/cbits/atomic.c instead of CPP ifdefs and inline assembly.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information