Mason Remaley
a1a8dd1b40
Filters out duplicate sites, outputs compile unit name
2026-04-12 04:01:29 -07:00
Mason Remaley
781bab193b
Iterates inline sites in the correct order
2026-04-12 04:01:29 -07:00
Mason Remaley
5c6885be53
Fixes bug that would stop iterating inline site syms early
...
This fix reveals another bug--we need to display the inline site syms in
the reverse of the encoded order. The parent/child relationships are
actually encoded on the inline sites, but it's likely a bit fragile to
try to trace those, and also more complex. As long as there aren't
multiple matches this is fine, and if there are, tracing the parent/child
chain won't work anyway.
2026-04-12 04:01:29 -07:00
Mason Remaley
156f54d8f0
Adds includes_inlined_frames option to builtin.StackTrace
...
This will be relevant once #31605 is merged.
In general, stack traces do *not* contain unique addresses for inlined
frames, but for error return traces, they will after the above PR. This
bool indicates that code printing the trace should not try to resolve
inline frames since they're explicitly encoded into the instruction
addresses.
This is set as state on stack trace rather than passed into the
formatting methods as an argument, as it's not really a formatting
option--whether or not it's correct to resolve inlines is decided at the
time of capture!
2026-04-12 04:01:29 -07:00
Mason Remaley
22f9592dc7
First pass at reading inline info from PDBs
2026-04-12 04:01:29 -07:00
Andrew Kelley
edfc4727e2
Merge pull request 'init objdump subcommand' ( #31827 ) from objdump into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31827
2026-04-12 10:38:19 +02:00
Andrew Kelley
8da2f93bd0
Merge pull request 'update aro and translate-c to latest' ( #31826 ) from aro-sync into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31826
2026-04-12 07:28:18 +02:00
Andrew Kelley
f7dabba561
objdump: recognize some file types
2026-04-11 18:56:51 -07:00
Andrew Kelley
1809a19c27
add objdump subcommand
...
does nothing so far
2026-04-11 18:56:51 -07:00
Andrew Kelley
2322d45d80
Merge pull request 'Implement variadic functions for Win64 in the x86_64 backend' ( #31672 ) from kcbanner/zig:win64_varargs into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31672
Reviewed-by: Andrew Kelley <andrew@ziglang.org >
2026-04-12 01:34:16 +02:00
Corentin Kerisit
07f05426fc
Support ld64.ldd STABS layout in MachOFile.load
...
Apple's ld emit N_BNSYM and N_ENSYM to mark the start and end of
functions, while ld64.lld doesn't.
This resulted in MachOFile.load bailing out on unsupported STABS
layout when the linker used is ld64.lld.
This commit supports both layouts.
2026-04-12 01:23:17 +02:00
Andrew Kelley
5149128d22
update translate-c to latest
...
upstream commit 46b5609b5ac4c0a896217d1d984f3ae50e4810b5
2026-04-11 15:17:46 -07:00
Ryan Liptak
67c6ac947a
Update resinator for latest aro
2026-04-11 15:17:46 -07:00
Andrew Kelley
68bf81432c
update aro to latest
...
upstream commit 5f5a050569a95ecc40a426f0c3666ae7ef987ede
2026-04-11 15:17:46 -07:00
Frank Denis
bc08199ef1
crypto TLS bundle: make AddCertsFromDirPathError compile
...
It's calling `addCertsFromDir`, which now requires a timestamp,
so it didn't compile any more.
Add a test by the way.
2026-04-12 00:13:59 +02:00
Carl Åstholm
81be7f62ec
Fix debug I/O color detection for most targets
...
On POSIX, start.zig did not reset the `environ_initialized` field, which
prevented the environment variables from ever actually getting scanned.
On Windows, environment variable scanning is allocation-free, so it's
okay for `std.Io.Threaded.init_single_threaded` to use the global
environment block.
2026-04-11 12:28:24 -07:00
Carl Åstholm
3223d3a1ac
Improve debug I/O color detection/handling for WASI and Emscripten
...
When linking libc, these targets can get their environment variables
from `std.c.environ`. Additionally, it's okay for WASI to use ANSI
escape sequences; nothing in the relevant specs claim otherwise.
2026-04-11 12:25:22 -07:00
Carl Åstholm
3d48264365
Fix -fwasmtime not inheriting environment variables
2026-04-11 12:23:49 -07:00
Luna Schwalbe
0bbf0461d9
std.http: reliably update reader state
...
Content length based reading would only set the reader state to `ready`
once it returned EOF, but wrapping readers (such as decompressors)
may stop reading from the underlying source without receiving EOF.
In such cases the http reader state would stay set to
`body_remaining_content_length`, even though the entire body had been
read.
Fixes #30060
Co-authored-by: Andrew Kelley <andre@ziglang.org >
2026-04-11 11:04:24 -07:00
Andrew Kelley
29225ae11b
Merge pull request 'x64_86 fix: RMI can accept imm16 only for imul r16,r/m16' ( #31234 ) from mathk/zig:x64_86-misscompfix-rmi16 into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31234
Reviewed-by: jacobly <jacobly@noreply.codeberg.org >
2026-04-11 18:08:07 +02:00
Andrew Kelley
cbe468a787
Merge pull request 'Sema: allow @round, @floor, @ceil, and @trunc to coerce to integer types' ( #30906 ) from adria/zig:sema-rounding-casts into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30906
2026-04-11 16:44:41 +02:00
Alex Rønne Petersen
d2e42fe9de
std.Target: default ABI to eabihf for psp
2026-04-11 12:55:45 +02:00
Alex Rønne Petersen
71e5ee9a51
std.Target: allegrex mips CPU can only be little endian
2026-04-11 12:48:58 +02:00
Alex Rønne Petersen
fa9caeba1b
std.Io.net.test: disable listen on a port, send bytes, receive bytes
...
Still happens: https://codeberg.org/ziglang/zig/issues/31388#issuecomment-12968295
2026-04-11 06:50:53 +02:00
Alex Rønne Petersen
d6f43caadf
Merge pull request 'audit: handle process.Child.Term exhaustively and give useful exit information on process exit' ( #31018 ) from murtaza/zig:child.term-audit into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31018
Reviewed-by: Alex Rønne Petersen <alex@alexrp.com >
2026-04-11 00:59:11 +02:00
Jacob Young
1552bc7ad0
x86_64: fix mir rmi signedness
2026-04-10 23:23:33 +02:00
Andrew Kelley
c3a862522b
std: remove managed array hash map variants
...
And deprecate all the API names except for:
* `std.array_hash_map.Auto`
* `std.array_hash_map.String`
* `std.array_hash_map.Custom`
2026-04-10 17:39:45 +02:00
Andrew Kelley
0606af509f
translate-c build step: remove use_clang field
...
This no longer does anything.
2026-04-09 14:05:45 -07:00
nekogirl
ac6fb0b59a
Correct Element and Tag in crypto.codecs.asn1 ( #31511 )
...
Previously, `std.crypto.codecs.asn1.der.decode` failed to compile because of `std.Io.Reader` usage in `Element.decode` and `Tag.decode` and `DecodeError` not being compatible with `std.Io.Reader.Error`.
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31511
Reviewed-by: Andrew Kelley <andrew@ziglang.org >
Co-authored-by: nekogirl <nekogirl@noreply.codeberg.org >
Co-committed-by: nekogirl <nekogirl@noreply.codeberg.org >
2026-04-09 17:59:16 +02:00
David Rubin
36e2eaf2bd
revert zig libc implementation of pow ( #31794 )
...
Partially reverts commit b5fbed986b .
Reverts commit 7aae7dd3f4 .
Closes #31207
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31794
Co-authored-by: David Rubin <david@vortan.dev >
Co-committed-by: David Rubin <david@vortan.dev >
2026-04-09 17:38:17 +02:00
Pavel Verigo
773def30c2
stage2-wasm: fix bug in big endian limb64 + tiny fixes
2026-04-09 00:15:33 +02:00
Pavel Verigo
ed9b0655f7
stage2-wasm: introduce __u?(div|mod)ei5, revert prev approach
...
Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com >
2026-04-09 00:14:09 +02:00
Pavel Verigo
aa7874657b
stage2-wasm: bigint div mod rem
2026-04-09 00:14:09 +02:00
Pavel Verigo
df79ea941b
stage2-wasm: bigint abs + test min/max
2026-04-09 00:14:09 +02:00
Pavel Verigo
0ebd270d90
stage2-wasm: bigint mulo
2026-04-09 00:14:08 +02:00
Pavel Verigo
58944586be
stage2-wasm: bigint support bitops and intcast
2026-04-09 00:14:08 +02:00
Andrew Kelley
5ccfeb9268
std.Io.net: add error.PortUnreachable to NetReceive
...
closes #31787
2026-04-08 22:58:22 +02:00
Jan200101
4bdbcfe95b
std.posix: handle ENOTCONN in getpeername
2026-04-08 20:11:25 +02:00
Neel
86853ba0a4
Add RISC-V ABI register alias names for inline asm clobbers
2026-04-08 14:37:48 +02:00
Ryan Liptak
cf0f6dd17f
Io.Threaded: Reduce dirRealPathFileWindows stack usage by 64KiB
...
This effectively reinstates the changes made in https://github.com/ziglang/zig/pull/23657 that were lost in the transition to std.Io
2026-04-08 14:30:28 +02:00
Jan200101
9fd63daff2
std.Build.Step.ConfigHeader: handle leading whitespace for cmake
2026-04-08 14:24:48 +02:00
Carl Åstholm
e2a6c74c9a
Remove Emscripten stack protector exports
...
Emscripten already supports SSP and exports the relevant
symbols since version 3.1.64 (2024-07-22).
2026-04-07 22:20:04 +02:00
murtaza
4a1383d987
process.Child: use std.posix.SIG instead of u32 for Child.Term stopped field
2026-04-07 10:27:21 +02:00
murtaza
07b49c61ff
audit: handle process.Child.Term exhaustively and give useful exit information
2026-04-07 10:27:01 +02:00
Techatrix
be878b87c2
std.EnumSet: add back deprecated initialization functions
2026-04-06 15:54:47 +02:00
Samuel Fiedler
5ec8e45f3d
Io: add failing io (Io.failing)
2026-04-06 14:25:44 +02:00
glowsquid
fd2718f82a
fix positional reader discarding ( #31593 )
...
closes #30151
closes #30126
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31593
Reviewed-by: Ryan Liptak <squeek502@noreply.codeberg.org >
Co-authored-by: glowsquid <sachabarsayuracko@gmail.com >
Co-committed-by: glowsquid <sachabarsayuracko@gmail.com >
2026-04-06 02:03:11 +02:00
Andrew Kelley
8bd0af5eb9
std.http.Client.receiveHead: avoid poisioning pool
...
closes #30165
2026-04-05 15:02:00 +02:00
Andrew Kelley
9292ded5a3
std.Io.Batch: fix add function
...
closes #31730
closes #31757
2026-04-05 02:17:53 -07:00
nektro
e73257dec2
lib/std: BitSet,EnumSet: replace initEmpty/initFull with decl literals ( #31469 )
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31469
Reviewed-by: Andrew Kelley <andrew@ziglang.org >
Co-authored-by: nektro <hello@nektro.net >
Co-committed-by: nektro <hello@nektro.net >
2026-04-05 05:12:13 +02:00