Proposal: provide cas and barriers symbols even without -threaded
marlowsd at gmail.com
Mon Jul 22 11:08:41 CEST 2013
On 20/07/13 07:28, Ryan Newton wrote:
> Hi Simon,
> 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:
> #define write_barrier() /* nothing */
> #define store_load_barrier() /* nothing */
> #define load_load_barrier() /* nothing */
I think that should do it, yes.
> 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....
If you're referring to the problem with the missing
stg_MUT_VAR_CLEAN_info symbol, I'll push a fix for that soon. Or is
there something else?
More information about the ghc-devs