Skip to content

stage2 bug fixes #12084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 13, 2022
Merged

stage2 bug fixes #12084

merged 5 commits into from
Jul 13, 2022

Conversation

andrewrk
Copy link
Member

@andrewrk andrewrk commented Jul 11, 2022

See individual commits for more info.

Goal

stage2/bin/zig build test-std

Current status

andrewrk added 5 commits July 12, 2022 18:38
when instantiating a generic function and an error occurs in the
function prototype.
I mistakenly thought this was supposed to only be present for Dwarf.
LLVM does not properly handle debug info for f16 on the aarch64-windows
target, causing "fatal error: unknown codeview register H1". The
previous workaround checked only for f16 but was still vulnerable if a
type was a byval struct or tuple which had an f16 field in it.

Now I have filed an upstream issue (see
llvm/llvm-project#56484) and broadened the
workaround to always skip debug values for this target.
For some targets, Clang unconditionally adds some clobbers to all inline assembly.
While this is probably not strictly necessary, if we don't follow Clang's lead
here then we may risk tripping LLVM bugs since anything not used by Clang tends
to be buggy and regress often.
@andrewrk andrewrk merged commit 3708e26 into master Jul 13, 2022
@andrewrk andrewrk deleted the stage2-std branch July 13, 2022 02:00
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