Skip to content

Compiler sources spell their C strings c_char (the interim i8 casts of #2596 retire) - #2599

Merged
ehartford merged 1 commit into
mainfrom
i8-sweep
Oct 24, 2026
Merged

ehartford merged 1 commit into
mainfrom
i8-sweep

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

With the D155 seed pinned (#2598), src/ names the builtin: ComptimeEval's strerror/strtod views and rt_open seam, FrameworkStubs' rt_open seam, the LLVM bridge's target-machine cpu/features, the clang bridge's mkstemp/realpath seams; the #1919 fixture drops its cast. Correct on unsigned-char hosts too, which the i8 spellings were not. Battery (new seed) pending; posted below before this leaves draft.

…#2596 retire)

With the D155 seed pinned, src/ may name the builtin: ComptimeEval's strerror
and strtod views and its rt_open seam, FrameworkStubs' rt_open seam, the
LLVM bridge's target-machine cpu/features (`c"generic".ptr`, `c"".ptr`) and
the clang bridge's mkstemp/realpath seams (`*mut c_char` through to the
runtime's with_libc_* bodies) say `c_char`, which is right on every host
including the unsigned-char ones the i8 spellings were wrong for. The #1919
fixture passes its `c"…".ptr` without the cast D155's fix-it would name.
LLVMGetEnumAttributeKindForName keeps a byte-string view: its other callers
hand it to_cstr's bytes.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery green on a68b5f2 (driver nightly-20261024-local-1-c1ea1de114eb; out/battery/status.txt: green).

@ehartford
ehartford marked this pull request as ready for review October 24, 2026 05:48
@ehartford
ehartford merged commit e85b60f into main Oct 24, 2026
@ehartford
ehartford deleted the i8-sweep branch October 24, 2026 05:48
ehartford added a commit that referenced this pull request Oct 24, 2026
…eds (nightly-20261024-local-2-6138da7f1565, nightly-20261024-local-2-f5443bac4111) (#2608)

Main has not built on either host since #2599 (compiler sources spell c_char; the local-2 bridge seeds have no such builtin): eric-5090 :dev on 91eebb3 fails with `unknown type c_char`. The rung seed-bridge-20261024 (the 20261023 bridge plus the D155 builtins, std/rt c_char, the D156 migrator, the re-promoted corpora and test programs, main's seed.lock and the #2597/#2607 seams) was cut on eric-5090 (rung 6138da7, release-checks green, ~/seed-leg-logs/nightly-20261024-local-2-6138da7f1565) and win10 (rung f5443ba, legrung3 green, asset published from the laptop). Main-based seeds follow this pin. Workflow pins rewritten by tools/bump_seed_pins.w.

Co-authored-by: Eric Hartford <[email protected]>
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