summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-02-11 22:47:50 +0000
committerHeejin Ahn <aheejin@gmail.com>2019-02-11 22:47:50 +0000
commit9d5a089bf544e5d7cd815591706afb2ea3784c10 (patch)
tree987cb187020dac8392da722be71d77fbec88d865 /clang/lib/Sema/SemaInit.cpp
parent1608c120275dac8e3fc682717acebb470e64145e (diff)
downloadbcm5719-llvm-9d5a089bf544e5d7cd815591706afb2ea3784c10.tar.gz
bcm5719-llvm-9d5a089bf544e5d7cd815591706afb2ea3784c10.zip
[WebAssembly] Make thread-related options consistent
Summary: There have been three options related to threads and users had to set all three of them separately to get the correct compilation results. This makes sure the relationship between the options makes sense and sets necessary options for users if only part of the necessary options are specified. This does: - Remove `-matomics`; this option alone does not enable anything, so removed it to not confuse users. - `-mthread-model posix` sets `-target-feature +atomics` - `-pthread` sets both `-target-feature +atomics` and `-mthread-model posix` Also errors out when explicitly given options don't match, such as `-pthread` is given with `-mthread-model single`. Reviewers: dschuff, sbc100, tlively, sunfish Subscribers: jgravelle-google, jfb, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57874 llvm-svn: 353761
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud