Files
ww/.gitignore
Hojun-Cho ea76ee4aa3 cmd/wcc/check+test: don't fold (*T | !void) into nullable-ptr ABI
resolve_type for N_TTAGGED was peeling NAMED aliases to TY_VOID before
deciding the union is a nullable pointer, which caught (*T | nomem)
(nomem = !void) and routed it through cstage's ptr-in-AX shortcut.
wwstage's isnullabletype is purely AST-keyed on bare `void`, so any
alias or error-tagged void naturally fell through to the general
AX=tag, DX=word0 ABI. Rule 10 says align richer DOWN: gate the cstage
classifier on iserror==0 so only the literal (*T | void) shape still
folds to nullable-ptr. The literal void case stays intact for
700_e2e:642/661/1129.

Smoke test selfhost/test/tagged_ptr_ret.ww exercises (*u8 | nomem)
across both arms; cstage and wwstage now emit byte-identical asm
modulo the pre-existing #20 fmt.formatfield divergence.
2026-05-19 19:10:21 +09:00

62 lines
1.9 KiB
Plaintext

# Build outputs.
/out/
# Claude Code session artifacts.
.claude/
.ai/
# Stray executables produced by ad-hoc `ww build` runs in the project
# root. Real source for these lives under selfhost/test/ as .ww files.
/loop
/sym_link
/memiotest
/trypromote
/tagged_ptr_ret
# Per-module build artifacts. The .combined.ww files under selfhost/
# are intentionally tracked — they're frozen bootstrap inputs.
selfhost/**/*.o
selfhost/**/*.s
# Test-probe leftovers. `ww build` drops .combined.ww next to the
# source; the selfhost/test/ probes don't need them tracked.
selfhost/test/*.combined.ww
# `ww build` on a lib/ module leaves a .combined.ww next to the
# source. None of these are bootstrap inputs (those are under
# selfhost/cmd/*/main.combined.ww) — they're just transient.
# `ww test lib/foo` also drops the .s/.o triplet for *_test.ww.
lib/**/*.combined.ww
lib/**/*.s
lib/**/*.o
# examples/ build outputs. Each example has its own Makefile that
# leaves the .s/.o/.combined.ww plus a stripped binary behind.
examples/**/*.o
examples/**/*.s
examples/**/*.combined.ww
# `test/wcc/data/` holds .ww fixtures fed to the C-side wcc tests
# (e.g. attest_pass.ww). `ww build` against any of those drops the
# usual triplet next to the source — only the .ww is tracked.
test/wcc/data/*.o
test/wcc/data/*.s
test/wcc/data/*.combined.ww
test/wcc/data/**/*.o
test/wcc/data/**/*.s
test/wcc/data/**/*.combined.ww
test/wcc/data/modcollision/pos
test/wcc/data/modcollision/neg
test/wcc/data/samemodprefer/pos
examples/mandelbrot/mandelbrot
examples/cmatrix/cmatrix
examples/lisp/lisp
examples/lisp/lisp_test
# Stage-0 binaries under bootstrap/<arch>/. Untracked by default —
# committing them is the v1.0 lock per PLAN.md (the new trust
# surface). `make bootstrap-snapshot` populates the dir from the
# current wwstage; `make nocc` verifies they self-reproduce.
# To ship, `git add -f bootstrap/amd64/{ww,w6c,w6a,w6l}` explicitly.
bootstrap/*/*