Skip to content

[pull] master from ziglang:master#370

Merged
pull[bot] merged 5 commits intoMu-L:masterfrom
ziglang:master
Aug 24, 2022
Merged

[pull] master from ziglang:master#370
pull[bot] merged 5 commits intoMu-L:masterfrom
ziglang:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Aug 24, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

yyny and others added 4 commits August 23, 2022 19:44
This constant returns an invalid `socket_t` that can be used as a sentinel
value.
handle str_offsets_base and addr_base correctly.
handle data16
fix compilation on 32-bit hosts
remove stray debug print statement

closes #12120
This reverts 6d679eb and additionally
changes the command line parameters passed to Clang to match.

Clang 14 defaults to DWARFv5 which is an interesting choice. v5 has been
out for 5 years and yet Valgrind does not support it, and apparently
neither does either GDB or LLD, I haven't determined which, but I wasn't
able to use GDB to debug my LLVM-emitted dwarf 5 zig code that was linked
with LLD.

A couple years ago when I was working on the self-hosted ELF linker, I
emitted DWARFv5 but then downgraded to v4 when I realized that third
party tools were stuck in the past. Years later, they still are.

Hopefully, Clang 14's bold move will inspire third party tools to get
their shit together, however, in the meantime, everything's broken, so
we're passing `-gdwarf-4` to clang and instructing LLVM to emit DWARFv4.

Note that Zig's std.debug code *does* support DWARFv5 already as of a
previous commit that I made today.
This reverts commit 0f01e81.

This does not belong in `std.posix`, and it is already provided at
`std.os.windows.ws2_32.INVALID_SOCKET`.

See related issue #5019.
@pull pull bot added the ⤵️ pull label Aug 24, 2022
@pull pull bot merged commit 5696cc8 into Mu-L:master Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants