summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2023-03-03 10:19:47 +0700
committerIvan Maidanski <ivmai@mail.ru>2023-03-03 13:32:31 +0300
commitce77122ae1cb549833970189889f79d7fc8b8b6d (patch)
treef5f7e3647269c735e58089504d923c3e58ec4b85 /pthread_support.c
parent2d73e5982bdec009f259353e32af0c88df9d2a35 (diff)
downloadbdwgc-ce77122ae1cb549833970189889f79d7fc8b8b6d.tar.gz
Use distinct MACH_TYPE for WebAssembly
(refactoring) Issue #531 (bdwgc). Instead of using I386 as MACH_TYPE, create a new one (WEBASSEMBLY) for both Emscripten and WASI. * include/private/gcconfig.h [__EMSCRIPTEN__ || EMSCRIPTEN || __wasi__] (WEBASSEMBLY): Define macro. * include/private/gcconfig.h [WEBASSEMBLY] (MACH_TYPE, ALIGNMENT): Likewise. * include/private/gcconfig.h [__EMSCRIPTEN__ || EMSCRIPTEN || __wasi__] (I386): Do not define. * include/private/gcconfig.h [WEBASSEMBLY && __wasm64__ && !CPPCHECK]: Report compilation error as not yet supported. * include/private/gcconfig.h [I386 && (EMSCRIPTEN || WASI)] (OS_TYPE, DATASTART, DATAEND): Move macro definition to WEBASSEMBLY block. * include/private/gcconfig.h [I386 && WASI] (STACKBOTTOM, GC_NO_SIGSETJMP, NO_CLOCK, GETPAGESIZE): Likewise. * include/private/gcconfig.h [I386 && (EMSCRIPTEN || WASI)] (USE_MMAP, USE_MUNMAP): Move undef to WEBASSEMBLY block.
Diffstat (limited to 'pthread_support.c')
0 files changed, 0 insertions, 0 deletions