[PATCH] D148730: [C11] Allow initialization of an atomic-qualified pointer from a null pointer constant
Sam Clegg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 24 16:33:29 PDT 2023
sbc100 added a comment.
We bisected a build failure on the emscripten waterfall to this change:
https://ci.chromium.org/ui/p/emscripten-releases/builders/try/linux/b8782932845295577777/overview
https://logs.chromium.org/logs/emscripten-releases/buildbucket/cr-buildbucket/8782932845295577777/+/u/Build_Emscripten__upstream_/stdout
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libc-mt.a... (this will be cached in "/b/s/w/ir/x/w/install/emscripten/cache/sysroot/lib/wasm32-emscripten/libc-mt.a" for subsequent builds)
/b/s/w/ir/x/w/install/emscripten/system/lib/pthread/emscripten_yield.c:10:26: error: cannot compile this static initializer yet
static _Atomic pthread_t crashed_thread_id = NULL;
^
1 error generated.
emcc: error: '/b/s/w/ir/x/w/install/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_SHARED_MEMORY__=1 -D__EMSCRIPTEN_WASM_WORKERS__=1 -Werror=implicit-function-declaration --sysroot=/b/s/w/ir/x/w/install/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -O2 -Wall -Werror -fno-unroll-loops -std=c99 -D_XOPEN_SOURCE=700 -Wno-unused-result -Os -fno-inline-functions -fno-builtin -Wno-ignored-attributes -Wno-macro-redefined -Wno-shift-op-parentheses -Wno-string-plus-int -Wno-missing-braces -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-pointer-sign -g3 -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc/musl/src/internal -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc/musl/src/include -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc -I/b/s/w/ir/x/w/install/emscripten/system/lib/pthread -pthread -DNDEBUG -ffile-prefix-map=/b/s/w/ir/x/w/install/emscripten=/emsdk/emscripten -fdebug-compilation-dir=/emsdk/emscripten -c -matomics -mbulk-memory /b/s/w/ir/x/w/install/emscripten/system/lib/pthread/emscripten_yield.c -o /b/s/w/ir/x/w/install/emscripten/cache/build/libc-mt-tmp/emscripten_yield.o' failed (returned 1)
embuilder: error: Subprocess 11/1107 failed (returned 1)! (cmdline: /b/s/w/ir/x/w/install/emscripten/emcc -O2 -Wall -Werror -fno-unroll-loops -std=c99 -D_XOPEN_SOURCE=700 -Wno-unused-result -Os -fno-inline-functions -fno-builtin -Wno-ignored-attributes -Wno-macro-redefined -Wno-shift-op-parentheses -Wno-string-plus-int -Wno-missing-braces -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-pointer-sign -g -sSTRICT -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc/musl/src/internal -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc/musl/src/include -I/b/s/w/ir/x/w/install/emscripten/system/lib/libc -I/b/s/w/ir/x/w/install/emscripten/system/lib/pthread -pthread -sWASM_WORKERS -DNDEBUG -ffile-prefix-map=/b/s/w/ir/x/w/install/emscripten=/emsdk/emscripten -fdebug-compilation-dir=/emsdk/emscripten -c /b/s/w/ir/x/w/install/emscripten/system/lib/pthread/emscripten_yield.c -o /b/s/w/ir/x/w/install/emscripten/cache/build/libc-mt-tmp/emscripten_yield.o)
Exception thrown in build step.
Prior to this change this code compiled fine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148730/new/
https://reviews.llvm.org/D148730
More information about the cfe-commits
mailing list