Spitballing here. If it were me I'd try to get it working with upstream clang. If it works I would maybe get with sunfish and 4ntoine who are doing the port to 3.5. If it doesn't I'd ask about it on stackexchange because it sounds like one of those non-standard c things that's different in c compilers. And try to ask the MoarVM people for help on what that code is intended to do so you can re-implement it in standard c.
On Tuesday, October 7, 2014 1:29:18 AM UTC-5, [email protected] wrote: > > The error is this upon emmake make > src/gc/orchestrate.c:38:9: error: statement requires expression of integer > type > ('volatile size_t *' (aka 'volatile unsigned int *') invalid) > switch (MVM_load(&to_signal->gc_status)) { > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > The code is > #define MVM_load(addr) AO_load_full((volatile AO_t *)(addr)) > > while (1) { > switch (MVM_load(&to_signal->gc_status)) { > case MVMGCStatus_NONE: > /* Try to set it from running to interrupted - the common > case. */ > if (MVM_cas(&to_signal->gc_status, MVMGCStatus_NONE, > MVMGCStatus_INTERRUPT) == MVMGCStatus_NONE) { > GCDEBUG_LOG(tc, MVM_GC_DEBUG_ORCHESTRATE, "Thread %d > run %d : Signalled thread %d to interrupt\n", to_signal->thread_id); > return 1; > } > break; > > Im not understanding why this is invalid? Any ideas? > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
