Skip to content

emit-c successors have one owner (#982); missing bundles say so (#1076); battery log ends with rc - #2805

Merged
ehartford merged 3 commits into
migrate-deadfrom
emitc-loud
Oct 29, 2026
Merged

ehartford merged 3 commits into
migrate-deadfrom
emitc-loud

Conversation

@ehartford

@ehartford ehartford commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #982, fixes #1076.

Battery GREEN on 94f404a (verdict.w: rc=0 green).

Eric Hartford 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
ehartford added this pull request to stack #2806 October 29, 2026 06:29
@ehartford ehartford changed the title emitc loud emit-c successors have one owner (#982); missing bundles say so (#1076); battery log ends with rc Oct 29, 2026
@ehartford
ehartford marked this pull request as ready for review October 29, 2026 06:29
@ehartford
ehartford merged commit f4beb1f into main Oct 29, 2026
@ehartford
ehartford deleted the emitc-loud branch October 29, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant