Repository navigation
emit-c successors have one owner (#982); missing bundles say so (#1076); battery log ends with rc - #2805
Merged
Conversation
added 3 commits
October 29, 2026 02:17
…els were reading a call's place as a block (#982) emit_body_text wrote an empty `bbN: ;` label for every block index past the body that max_referenced_bb found, so control reaching one fell off the function. The indices were not MIR's: max_referenced_bb read term_data2 and term_data3 of every terminator as blocks, and a call's d2 is its destination place, so a three-line program grew bb2..bb7. Which slot of a terminator holds a block is MIR's fact (D65). It now has one owner, mir_term_successors in MirCore; mir_drop_state_block_successors keeps only its constant-switch pruning over it, and the C emitter reads it and fails, naming the block, if a successor is past the body (invalid MIR). A three-line program's C has no stub labels and emits as before; the emit-c-smoke corpus (27 programs) runs every body through the check.
…ce (#1076) register_embedded_bundle_interfaces skipped an empty slot for this target without a word, so a :dev stage1 checked hello-world in seconds instead of a tenth of one, with nothing saying the corpora compiled in-unit, and a release binary whose bundle failed to embed would ship that silently. One stderr line now names every missing bundle: note: this compiler carries no bundle for pcre2, zlib, c_algorithms, tommyds, stc, mlib; those modules compile from source Not for an empty rt slot (the runtime root supplies it, D30), not under --emit-c (every module is in-unit there), and not while building a bundle (its own slot is the one being filled).
verdict.w calls a log finished when it has an rc= line; the battery wrote its exit code to status.txt only, so its own log read OPEN forever, green or red, and the hook that requires verdict.w could never confirm a battery.
ehartford
marked this pull request as ready for review
October 29, 2026 06:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #982, fixes #1076.
Battery GREEN on 94f404a (verdict.w: rc=0 green).