Skip to content

bugc: combine thirteen fixes and additions - #368

Merged
gnidan merged 23 commits into
mainfrom
bugc-batch-2026-10
Oct 7, 2026
Merged

gnidan merged 23 commits into
mainfrom
bugc-batch-2026-10

Conversation

@gnidan

@gnidan gnidan commented Oct 7, 2026

Copy link
Copy Markdown
Member

This combines thirteen bugc fixes and additions, each already open and reviewed as its own pull request, into one change so they land together. The individual pull requests stay as the record of each change and will be closed in favour of this one.

Fixes:

Additions:

Each pull request's changelog entry is kept as written.

gnidan added 23 commits October 6, 2026 22:23
A storage write took its value as a word, so a memory string or bytes
reference wrote its memory address into the slot. Code generation now
encodes the referenced bytes as Solidity does: inline with length * 2
up to 31 bytes, else length * 2 + 1 in the slot and the data from
keccak256(slot), with the last word's trailing bytes cleared. A slice
now carries the bytes type, so its value is recognized too.
irgen built a slice's data as a read and a write, and a read or write
moves at most one word, so only the first 32 bytes were copied. Add a
copy IR instruction (CALLDATACOPY from calldata, MCOPY from memory) and
emit it for the slice's data.
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-07 03:10 UTC

@gnidan
gnidan merged commit 1d45fea into main Oct 7, 2026
7 checks passed
@gnidan
gnidan deleted the bugc-batch-2026-10 branch October 7, 2026 03:06
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