Skip to content

v0.2.5: Selectable Solidity targets - #51

Merged
hbbio merged 40 commits into
mainfrom
v0.2.5
Nov 23, 2026
Merged

hbbio merged 40 commits into
mainfrom
v0.2.5

Conversation

@hbbio

@hbbio hbbio commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Solidity 0.8.39 is now the default. Use --solc-version or the Zig API’s solc_version field to select any release from 0.8.36 through 0.8.39.

This release applies via-IR security fixes across all four targets, adds Amsterdam SLOTNUM support from 0.8.37, fixes UTF-8 diagnostic excerpts, and bumps the Zig requirement to 0.17.1.

All 17 benchmark workloads matched upstream Standard JSON output for Solidity 0.8.37 through 0.8.39.

hbbio added 30 commits November 20, 2026 12:45
Upgrade SQLite, yyjson, http.zig, Bun, and Zig to revisions with upstream fixes. Use the Zig 0.17.1-compatible zlinter pin and update the dependency notices and SQLite provenance.
Compute the spill requirement for each strongly connected component from its completed callee requirements. Keep the guard against spilling locals of recursive functions. Covers SOL-2026-4.
Track the value generation of each offset origin, including unknown values, and invalidate it when the data-flow analysis sees an assignment or a control-flow join. Preserve facts about values already copied into unchanged variables. Aligns with the Solidity SOL-2026-7 fix.
Check storage regions before an assignment can mutate an overlapping source. Snapshot the source in memory on overlap and reuse the ordinary copy for disjoint regions. Aligns with Solidity SOL-2026-8 for the via-IR pipeline.
Carry the selected Solidity release through pragma checks, metadata, and incremental cache keys. Expose the four supported targets to Zig callers.
Accept --solc-version on compilation workflows and version inspection. Include the selected target in authenticated browser resume contexts.
Match the one-instruction-shorter selector check introduced in Solidity 0.8.38 and preserve the earlier check for 0.8.36 and 0.8.37.
Exclude RETURNDATACOPY from unused-store elimination in every target. This preserves its bounds check independently of whether any later operation reads its memory.
Allow loop-invariant motion and unused-store elimination to reason about unassigned function parameters without treating their values as known. Include the selected release in optimizer cache keys.
Match the 0.8.37 helper names and preserve checked and unchecked arithmetic at their use sites. Preserve the older helper name where it can be shared safely.
Resolve the error constructor through single-component tuples while retaining the evaluated argument values and their declaration order.
Use Amsterdam limits for the 0.8.39 target and report size warnings for standalone Yul output.
@hbbio
hbbio merged commit 0aa53b8 into main Nov 23, 2026
4 checks passed
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.

1 participant