Skip to content

Fix typed codegen and expand portable std capabilities - #701

Merged
LunaStev merged 14 commits into
wavefnd:masterfrom
LunaStev:fix/compiler-and-stdlib-followups
Sep 23, 2026
Merged

LunaStev merged 14 commits into
wavefnd:masterfrom
LunaStev:fix/compiler-and-stdlib-followups

Conversation

@LunaStev

@LunaStev LunaStev commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This addresses thirteen compiler and standard-library issues in separate commits. Typed pointer arithmetic, shadowing, contextual float conversions and SysV register exhaustion now preserve runtime values. Variants use one aligned payload area instead of reserving storage for every case.

The standard library adds size_of<T>() / align_of<T>(), transactional ULEB128 cursors, reusable WASM allocations, and OS entropy filling. Windows filesystem operations preserve portable error categories and convert UTF-8 paths through native wide APIs. Linux resolution accepts numeric IPv4/IPv6 addresses and ports without libc; caller-owned address tables provide explicit hostname/service mappings. Unconfigured names return unsupported, with no implicit DNS policy. Update std with the compiler: its compatibility revision is now 4.

Validation:

  • Workspace Rust tests with default features (the updated compatibility diagnostic assertion also passes its focused rerun); all core64 feature-isolated workspace tests pass, including 84 codegen regressions and native bidirectional SysV C interop.
  • Clippy with -D warnings, formatting, and whitespace checks pass.
  • 288 Wave corpus checks and 26 standard-library example executions pass.
  • Eight new shared workloads pass at O0/O2 under AArch64, RISC-V and LoongArch QEMU (48 executions).
  • WASM allocation workloads and compact variants execute at O0/O2 on wasm32/wasm64; the allocator also executes under WASI.
  • Linux resolver fixtures link and execute with -nostdlib -static and compile for four Linux architectures.
  • Windows filesystem fixtures emit amd64/ARM64 COFF locally. The implementation head b71aaf2 passed the native ARM64 filesystem regression step and the amd64 Rust/I/O regression suite. An explicit ARM64 regression step is included.

Closes #678
Closes #679
Closes #680
Closes #681
Closes #670
Closes #699
Closes #674
Closes #700
Closes #450
Closes #523
Closes #525
Closes #383
Closes #567

The first CI run exposed an unrelated Linux ARM64 provisioning failure: apt.llvm.org resolved to an unreachable IPv6 address before LLVM was installed. The follow-up CI commit uses retryable IPv4 downloads and gates the AAPCS64 test on successful LLVM setup. The updated head is being revalidated. Independently reproduced integer comparison-literal truncation is tracked in #702; it is outside the thirteen issues addressed here.

@LunaStev
LunaStev merged commit 6edc8c3 into wavefnd:master Sep 23, 2026
25 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment