summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
Commit message (Collapse)AuthorAgeFilesLines
* Use C++17's [[maybe_unused]]. NFC (#5309)Sam Clegg2022-12-021-10/+0
|
* Fix errors when building in C++20 mode (#4528)Jakub Szewczyk2022-03-181-8/+0
| | | | | | | * use [[noreturn]] available since C++11 instead of compiler-specific attributes * replace deprecated std::is_pod with is_trivial&&is_standard_layout (also available since C++11/14) * explicitly capture this in [=] lambdas * extra const functions in FeatureSet, fix implicit cast warning by using the features field directly * Use CMAKE_CXX_STANDARD to ensure the C++ standard parameter is set on all targets, remove manual compiler flag workaround.
* Add string parameter to WASM_UNREACHABLE (#2499)Sam Clegg2019-12-051-20/+3
| | | | | This works more like llvm's unreachable handler in that is preserves information even in release builds.
* Move WASM_DEPRECATED so that binaryen-c.h is selfcontained. Fixes #2054 (#2399)Irmen de Jong2019-10-211-3/+0
|
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-11/+23
| | | Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
* Use assert in addition to abort for WASM_UNREACHABLE (#1747)Thomas Lively2018-11-151-1/+2
| | | | This yields more useful information when something goes wrong.
* Provide AddImport/AddExport for each element in the C-API (#1292)Daniel Wirtz2017-11-221-0/+3
| | | | * Provide AddImport/AddExport for each element in the C-API
* Use sanitizer runtime to print pretty stack traces on unreachable (#1079)Derek Schuff2017-06-301-0/+3
| | | For even better debugging support.
* Add atomic loads and stores (#1077)Derek Schuff2017-06-281-1/+1
| | | | | Add IR, wast and binary support for atomic loads and stores. Currently all IR generated by means other than parsing wast and binary files always generates non-atomic accesses, and optimizations have not yet been made aware of atomics, so they are certainly not ready to be used yet.
* Log callImport fatal error to cerr so it is not buffered. (#1036)Sam Clegg2017-06-121-0/+8
| | | | | | | Use Fatal() rather than stdout or report callImport error Without this the write to stdout can be lost (Since the following line aborts)
* Allows parsing of debug information in .S filesYury Delendik2016-05-261-0/+6
| | | | Currently it ignores this information. Also it allows parse files with -asm-verbose=true.
* add Log2 and Pow2 support methodsAlon Zakai2016-03-161-0/+1
|
* Fix / uniformize include guardsJF Bastien2015-12-221-3/+3
|
* Add compiler-support.hJF Bastien2015-12-221-0/+38