summaryrefslogtreecommitdiff
path: root/wasm2c/wasm-rt-impl.c
diff options
context:
space:
mode:
authorWilly R. Vasquez <wrv@utexas.edu>2023-01-29 10:48:56 -0600
committerGitHub <noreply@github.com>2023-01-29 08:48:56 -0800
commit8a7b7497bdf78f9099f8d5a3a2c9bde87ddd52da (patch)
tree1996c3154a28f875248d4fed6fdfe54cd1b6c856 /wasm2c/wasm-rt-impl.c
parentc831b98d2ed0571cda9b3ed7acaddd0df2c5a934 (diff)
downloadwabt-8a7b7497bdf78f9099f8d5a3a2c9bde87ddd52da.tar.gz
wabt-8a7b7497bdf78f9099f8d5a3a2c9bde87ddd52da.tar.bz2
wabt-8a7b7497bdf78f9099f8d5a3a2c9bde87ddd52da.zip
wasm2c: add SIMD support (#2119)
This change incorporates [simd-everywhere](https://github.com/simd-everywhere/simde) into the wasm2c output, which maps wasm SIMD C intrinsics to any supported target architecture.
Diffstat (limited to 'wasm2c/wasm-rt-impl.c')
-rw-r--r--wasm2c/wasm-rt-impl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wasm2c/wasm-rt-impl.c b/wasm2c/wasm-rt-impl.c
index 0430e5f3..14597d9c 100644
--- a/wasm2c/wasm-rt-impl.c
+++ b/wasm2c/wasm-rt-impl.c
@@ -234,6 +234,7 @@ static void os_install_signal_handler(void) {
}
struct sigaction sa;
+ memset(&sa , '\0', sizeof(sa));
sa.sa_flags = SA_SIGINFO | SA_ONSTACK;
sigemptyset(&sa.sa_mask);
sa.sa_sigaction = os_signal_handler;
@@ -248,6 +249,7 @@ static void os_install_signal_handler(void) {
static void os_cleanup_signal_handler(void) {
/* Undo what was done in os_install_signal_handler */
struct sigaction sa;
+ memset(&sa , '\0', sizeof(sa));
sa.sa_handler = SIG_DFL;
if (sigaction(SIGSEGV, &sa, NULL) != 0 || sigaction(SIGBUS, &sa, NULL)) {
perror("sigaction failed");