Exception handling instructions emitted on wasm even when exception-handling feature is disabled #140293
Labels
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
F-c_unwind
`#![feature(c_unwind)]`
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
compiled for wasm32-wasip1 or wasm32-unknown-unknown without
-Ctarget-feature=exception-handling
.I expected to see this happen: No exception handling instructions emitted
Instead, this happened:
catch_call
is emitted forgzgetc_fn()
when opt-level < 2.Meta
rustc --version --verbose
: Both 1.86 and nightlyThis is causing failure to run on Wasmtime in some cases: trifectatechfoundation/zlib-rs#352 (comment)
The text was updated successfully, but these errors were encountered: