Repository navigation
Enable supported stage 5 proposals by default - #2837
Merged
Merged
Conversation
sbc100
force-pushed
the
enable-stage5-features
branch
from
August 25, 2026 18:10
3c12527 to
925ff61
Compare
Enable the following Stage 5 / finished WebAssembly proposals by default: - `exceptions` (Exception handling) - `tail-call` (Tail call) - `annotations` (Custom annotation syntax) - `memory64` (64-bit memory) - `multi-memory` (Multiple memories) - `extended-const` (Extended constant expressions) - `relaxed-simd` (Relaxed SIMD) Updates default flags in `include/wabt/feature.def` and dependency propagation in `src/feature.cc`. Updates `--disable-*` / `--enable-*` command line flags across all tools, test runner scripts, and `README.md`. Regenerates man pages and documentation.
sbc100
force-pushed
the
enable-stage5-features
branch
from
August 25, 2026 18:23
925ff61 to
c928a1f
Compare
dschuff
approved these changes
Aug 25, 2026
dschuff
left a comment
Member
There was a problem hiding this comment.
I think we could/should even enable stage 4 proposals. those are clear for implementation by browsers, so I don't see any reason to have them disabled by default in wabt.
sbc100
pushed a commit
that referenced
this pull request
Oct 22, 2026
`run-spec-wasm2c.py` skips a test on Windows when memory64 is enabled. That skip was written when memory64 was opt-in (`--enable-memory64`, #2086). Since #2837 memory64 is on by default (`--disable-memory64`), so the condition holds for almost every test and 260 of the 262 wasm2c tests are skipped on `windows-latest`: the C that wasm2c writes is not compiled by cl.exe. This removes the skip. Split out of #2901 at @sbc100's request.
sbc100
pushed a commit
that referenced
this pull request
Oct 23, 2026
…orting (#2908) relaxed SIMD is on by default (#2837), but the C writer has no translation for its instructions. The switches over the unary, binary, convert and ternary opcodes ended in `WABT_UNREACHABLE`, so `wasm2c` died with SIGABRT and no message on `i8x16.relaxed_swizzle`, `i32x4.relaxed_trunc_f32x4_s`, `f32x4.relaxed_madd`, `i32x4.relaxed_laneselect` and the like. The module is accepted by `wasm-validate` and `wasm2wat`, so the abort comes only from the C writer. This replaces `WABT_UNREACHABLE` in those four switches with `WABT_FATAL`, which prints the name of the instruction and exits with status 1, the way `wasm2c` already reports other things it cannot write: error: wasm2c does not support the i8x16.relaxed_swizzle instruction This does not add the translation of relaxed SIMD (SIMDe has most of it in `relaxed-simd.h`); it only makes the failure a diagnostic. Wide arithmetic (`i64.add128` and the others, #2895) aborts through a different path and is left for a separate change. Testing: - New `test/wasm2c/relaxed-simd-unsupported.txt` runs `wasm2c` on a module with `i8x16.relaxed_swizzle` and expects the message and exit status 1. Before the change the process aborted with status 134. - The tests in `test/wasm2c/` pass on Linux. Fixes #2886
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the following Stage 5 / finished WebAssembly proposals by
default:
exceptions(Exception handling)tail-call(Tail call)annotations(Custom annotation syntax)memory64(64-bit memory)multi-memory(Multiple memories)extended-const(Extended constant expressions)relaxed-simd(Relaxed SIMD)Updates default flags in
include/wabt/feature.defand dependencypropagation in
src/feature.cc. Updates--disable-*/--enable-*command line flags across all tools, test runner scripts, and
README.md. Regenerates man pages and documentation.