]> granicus.if.org Git - clang/commit
[WebAssembly] Define the atomic type sizes
authorDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 21:56:37 +0000 (21:56 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 14 Sep 2015 21:56:37 +0000 (21:56 +0000)
commit5e332fd14a505a3b1002f7739804967da7e71d58
tree8642c63abe6118f9425edaa2bcd003ba25f4b9a2
parentd93037092238fe2ca0c7dcf5fcf0dc563b81aab0
[WebAssembly] Define the atomic type sizes

WebAssembly's spec has now been updated to specify some guarantees
about lock free atomic accesses. Update clang to match.

This also updates sig_atomic_t to be 64-bit on wasm64. WebAssembly
does not presently have asynchronous interrupts, but this change is
within the spirit of how they will work if they are added.

Differential Revision: http://reviews.llvm.org/D12862

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/init.c