<div dir="ltr">Hi Simon,<div><br></div><div>That sounds like a good solution and I'll attempt a patch. I think the fix is only three lines. That is, replace these three lines with EXTERN_INLINE C functions:</div><div>
<br></div><div><div>#define write_barrier() /* nothing */</div><div>#define store_load_barrier() /* nothing */</div><div>#define load_load_barrier() /* nothing */</div></div><div><br></div><div>That would fix the -threaded/unthreaded disparity. But I still don't see how to access this stuff properly from foreign-primops in a library such that GHCI doesn't barf when trying to load the library....</div>
<div><br></div><div> -Ryan</div><div><br></div><div><br></div><br></div>