You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this PR, still to be verified and finished:
Starts with an old C bootstrap, builds it.
Then builds current with it. (output of step 1, of course)
Then builds current with self. (output of step 2, of course)
The first step is of course old ex_frame. The compiler was already mostly built, years ago, producing "semi-portable" C (64bit little endian Windows).
The second step of course is still ex_frame. It is running that old compiler.
The third step should be ex_stack, once the cpp_source function is defined.
What is missing then, is building a "distribution", of some sort.
Old make-dist.py stopped working at some point.
What would be reasonable though is to proceed to boot1 or boot1autotools various.
Those are enough of a distribution, arguably.
It depends on if users will run boot2.py.
Without such artifacts at the end, if we switch to ex_stack, "this" PR (3) would descend the few users into unusability.
The others can be commited asis.
There is the flakiness hanging over us as well.
Finishing that last step shouldn't be dificult.
We can even just proceed to concierge, which might work anyway to do all of this.
The first two PRs should be commitable roughly as is.
This last one will then rebase to about one line, but must wait for 1-2 things as stated:
The GitHub runners have VS2026 so this is using that. VS2022 will surely work. VS2019 will surely work.
Everything is very portable and very little has changed in 30 years, except to increase portability, C++ backend...
Jay, keying the switch on defined ("cpp_source") is a neat way to fold the two-phase upgrade into one run. Two things about where it sits:
It reaches more than AMD64_NT.NT.common is included by AMD64_NT, ARM64_NT and ARM32_NT, and by I386_NT through NT386.common. CI builds I386_NT with the C backend, so once cpp_source exists, I386_NT (c) moves to ex_stack too. That may be what you want, since 32-bit C++ EH works, but it should be deliberate and in the title. Otherwise the condition could also test TARGET.
No target can opt out. At the end of NT.common it overrides anything a target config sets before its include. A guard leaves the default to NT.common and lets a target decide:
ifnot defined ("M3_USE_STACK_WALKER")
M3_USE_STACK_WALKER = defined ("cpp_source") and equal (M3_BACKEND_MODE, "C")
end
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
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.
The goal of this PR, still to be verified and finished:
The first step is of course old ex_frame. The compiler was already mostly built, years ago, producing "semi-portable" C (64bit little endian Windows).
The second step of course is still ex_frame. It is running that old compiler.
The third step should be ex_stack, once the cpp_source function is defined.
What is missing then, is building a "distribution", of some sort.
Old make-dist.py stopped working at some point.
What would be reasonable though is to proceed to boot1 or boot1autotools various.
Those are enough of a distribution, arguably.
It depends on if users will run boot2.py.
There are three related overlapping PRs.
Without such artifacts at the end, if we switch to ex_stack, "this" PR (3) would descend the few users into unusability.
The others can be commited asis.
There is the flakiness hanging over us as well.
Finishing that last step shouldn't be dificult.
We can even just proceed to concierge, which might work anyway to do all of this.
The first two PRs should be commitable roughly as is.
This last one will then rebase to about one line, but must wait for 1-2 things as stated: