Skip to content

Enable supported stage 5 proposals by default - #2837

Merged
sbc100 merged 1 commit into
mainfrom
enable-stage5-features
Aug 25, 2026
Merged

sbc100 merged 1 commit into
mainfrom
enable-stage5-features

Conversation

@sbc100

@sbc100 sbc100 commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

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
sbc100 force-pushed the enable-stage5-features branch from 3c12527 to 925ff61 Compare August 25, 2026 18:10
@sbc100 sbc100 changed the title Enable Stage 5 WebAssembly proposals by default Enable supported stage 5 proposals by default Aug 25, 2026
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
sbc100 force-pushed the enable-stage5-features branch from 925ff61 to c928a1f Compare August 25, 2026 18:23
@sbc100
sbc100 requested review from SoniEx2, dschuff, keithw and zherczeg and removed request for SoniEx2 August 25, 2026 18:24

@dschuff dschuff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
sbc100 merged commit 806787e into main Aug 25, 2026
17 checks passed
@sbc100
sbc100 deleted the enable-stage5-features branch August 25, 2026 22:02
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants