fix: pre-existing compiler V1 bugfixes (Lexer, Parser, RegAlloc, CodeGen, File)#128
Merged
Merged
Conversation
Release workflow fixes: - Extend S1→S2→S3 chain (was S1→S2 only) - Add S3==S4 determinism check - Add static binary verification (file, ldd, readelf -l) - Add packaged tar.gz validation step - Release artifact: S3 (self-hosted, static) not S2 (bootstrap, dynamic) CI test workflow: - Add file type checking at each self-host stage - Add S3 static verification step Env stubs regression: - Add test/env_stubs.arm: verifies Env.args(), Env.exePath(), Env.platform() do not SIGSEGV - IRLower stubs already present (commit 2786639) Self-host chain results: - S2 (bootstrap-built): dynamic 266KB, full Env.args() support - S3 (self-hosted): static 344KB, Env.args() stub → cannot compile S4 - S3→S4 determinism blocked on Env.args() startup ABI → V1.1 Root cause of v1.0 release dynamic binary: - Release packaged S2 (bootstrap-built via gcc without -static) - Should package S3 (self-hosted via arc native codegen) - S3 is static but Env.args() stub blocks CLI usage → real argc/argv in V1.1 Co-Authored-By: Egecan Akıncıoğlu <dev@egecanakincioglu.com>
Lexer: POST_INC field no-op fix (this.pos++ was no-op causing infinite loop) Parser: regex artifact fix (this.pos = pos + 1 → this.pos = this.pos + 1) RegAlloc: spill save mechanism for linear scan register reassignment X64Encoder: unresolved label hard-fail (hasError flag), prevents 0x400fff crash ELFWriter: _start entry, argc/argv BSS globals, static binary fixes CodeGen: emitRelease memoization (54GB→3MB compile RSS) ScopeFrame: borrow checker scope tracking fixes TypeChecker: type narrowing, method resolution fixes File.arm: File.exists fclose RAX corruption fix (fclose removed, return path corrected)
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.
Atomic commit of pre-existing V1 bugfixes applied before SafeRegAlloc work.
Changes
Verification