Does it build natively with clang (same clang as emscripten is using)?

- Alon


On Mon, Oct 6, 2014 at 11:29 PM, <[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.
>

-- 
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.

Reply via email to