Alex Rønne Petersen
a382b7bfc5
std.simd: suggest 1024-bit vectors for kvx
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
39b5c8ee8a
std.debug.Dwarf: add kvx ip/fp/sp register mappings
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
94b6c7ce5f
std.debug.cpu_context: add kvx context implementation
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
80e567b6bd
std.pie: add kvx support
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
8fae6630c4
std.start: add kvx support
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
f5d31cff71
zig.h: add kvx support
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
4ff6e290dd
cbe: kvx uses $-prefixed registers
2025-11-10 09:40:44 +01:00
Alex Rønne Petersen
350eaa5bac
std.builtin.assembly: add Clobbers for kvx
2025-11-10 09:40:42 +01:00
Alex Rønne Petersen
1e2c216156
compiler: kvx requires 8-byte aligned functions
2025-11-10 08:20:24 +01:00
Alex Rønne Petersen
378eec95b8
std.Target: kvx requires 32-byte aligned stacks
2025-11-10 08:20:24 +01:00
Alex Rønne Petersen
2c470d24b3
std.Target: add Arch tag and info for kvx
2025-11-10 08:20:21 +01:00
Ryan Liptak
5358af7ba4
incr-check: Kill child process on error
...
Since the child process is spawned with the tmp directory as its CWD, the child process opens it without DELETE access. On error, the child process would still be alive while the tmp directory is attempting to be deleted, so it would fail with `.SHARING_VIOLATION => return error.FileBusy`.
Fixes arguably the least important part of #22510 , since it's only the directory itself that would fail to get deleted, all the files inside would get deleted just fine.
2025-11-09 07:45:31 +00:00
Ryan Liptak
b31a03f134
Let CRT take care of the entry point for wWinMain if libc is linked
...
Fixes #7852
Before, the modified test would fail with:
```
error: lld-link: undefined symbol: wWinMain
note: referenced by C:\Users\Ryan\Programming\Zig\zig-x86_64-windows-0.15.1\lib\libc\mingw\crt\crtexewin.c:66
note: libmingw32.lib(ucrtexewin.obj):(wmain)
```
2025-11-08 17:11:12 -08:00
Ryan Liptak
be4eaed7c4
Merge pull request #25860 from squeek502/coalesce-to-std-zig
...
Move/coalesce `CompressDebugSections` and `RcIncludes` enums to `std.zig`
2025-11-08 02:34:44 -08:00
Carl Åstholm
43eb9b52cc
link.Elf: Ensure archive header fields are not left blank
...
ld.lld fails with "truncated or malformed archive" errors when reading
archive header field values that are not valid numbers.
2025-11-08 02:11:52 -08:00
Petr Pučil
38d44404a5
Fix param name in doc comment for std.Io.Reader.peek()
...
The old doc comment mentioned a parameter `len` three times, but the
function does not accept such a parameter - it is actually called `n`.
2025-11-08 00:34:41 -08:00
Ryan Liptak
da77d306b6
Move/coalesce RcIncludes enum to std.zig.RcIncludes
2025-11-07 19:16:52 -08:00
Ryan Liptak
f587209e04
Move/coalesce CompressDebugSections enum to std.zig.CompressDebugSections
2025-11-07 19:15:55 -08:00
Ryan Liptak
74d2536715
Merge pull request #25158 from castholm/subsystem
...
Misc. Windows subsystem refactorings
2025-11-07 18:56:52 -08:00
Alex Rønne Petersen
bf15c791fa
Merge pull request #25820 from GiuseppeCesarano/process
...
Child.start_suspended ported to posix
2025-11-07 23:17:55 +01:00
Lukas Lalinsky
852a1f718a
Fix kqueue definitions on NetBSD
...
EVFILT_USER and NOTE_TRIGGER were wrong.
Added missing ones along the way.
2025-11-07 22:23:46 +01:00
xdBronch
92f64899c1
sema: disallow slices of opaque types
2025-11-07 12:12:32 +00:00
Alex Rønne Petersen
19af9fa488
Merge pull request #25848 from Rexicon226/llvm-valgrind-clobber
...
llvm: fix up clobbers for valgrind requests
2025-11-07 11:55:09 +01:00
Giuseppe Cesarano
f4159eff92
std.Child: start_suspended ported to posix
2025-11-07 08:53:43 +01:00
Giuseppe Cesarano
5c0309a9e5
std.posix: implemented getpid and getppid
2025-11-07 08:52:35 +01:00
Frank Denis
4b593a6c24
std.crypto: improve KT documentation, use key_length for B3 key length ( #25807 )
...
It was not obvious that the KT128/KT256 customization string can be
used to set a key, or what it was designed to be used for at all.
Also properly use key_length and not digest_length for the BLAKE3
key length (no practical changes as they are both 32, but that was
confusing).
Remove unneeded simd_degree copies by the way, and that doesn't need
to be in the public interface.
2025-11-07 08:20:04 +01:00
marximimus
2e8f8afc83
Base64DecoderWithIgnore.calcSizeUpperBound cannot return an error ( #25834 )
...
* std: Base64DecoderWithIgnore.calcSizeUpperBound cannot return an error
* std: update doc comment of Base64DecoderWithIgnore.calcSizeUpperBound
2025-11-07 08:16:34 +01:00
David Rubin
483f9bd367
llvm: add extra clobbers to valgrind requests
...
This seems to work around a very puzzling miscompilation first
present in LLVM 21.x. We already unconditionally add these
clobbers to inline assembly that came from the source, the
valgrind requests should also contain them.
2025-11-06 20:27:38 -08:00
David Rubin
09e4035e79
llvm: clobber rdx instead of edx for x86-64 valgrind request
2025-11-06 20:12:35 -08:00
Mateusz Poliwczak
40132af3ad
std.zig.AstRlAnnotate: remove pointless switch
...
This switch has the same cases as the outer one.
2025-11-06 23:57:16 +00:00
Ryan Liptak
4937aeff84
Merge pull request #25714 from snoire/enum-literal-format-support
...
std.Io.Writer.print: support .enum_literal in 't' format specifier
2025-11-06 14:40:34 -08:00
Mateusz Poliwczak
b2895f356f
std.ArrayList: actaully memset to undefined in shrinkRetainingCapacity and clearRetainingCapacity
...
See #25810
2025-11-06 05:30:41 -08:00
Alex Rønne Petersen
e639602569
ci: update to Wasmtime 38.0.3
2025-11-06 14:08:16 +01:00
Ryan Liptak
e0898f4e05
Step.Run: Fix for convertPathArg when cwd and path args are on different drives
...
Fixes #25805
2025-11-06 03:40:33 -08:00
snoire
b4b54b597d
test: add test case for enum-literal with '{t}' format
...
Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
2025-11-06 13:45:21 +08:00
snoire
ffb0050d81
std.Io.Writer.print: support .enum_literal in 't' format specifier
2025-11-06 13:45:21 +08:00
Mateusz Poliwczak
416bf1de47
std.ArrayList: memset to undefined in shrinkRetainingCapacity and clearRetainingCapacity
...
Fixes #25796
2025-11-05 19:31:19 -08:00
skewb1k
26db54d69b
zig fmt: fix extra whitespace in StructInit with multiline strings
...
68d2f68ed introduced special handling for StructInit fields
containing multiline strings to prevent inserting whitespace after =.
However, this logic didn't handle cases without a trailing comma,
which resulted in unwanted trailing whitespace.
2025-11-05 14:07:30 +02:00
Jacob Young
a6d444c271
x86_64: implement split vector stores
...
Closes #25809
2025-11-04 22:45:54 -05:00
Carl Åstholm
54f2a7c833
Move std.Target.SubSystem to std.zig.Subsystem
...
Also updates the field names to conform with the rest of std.
2025-11-05 01:31:26 +01:00
Carl Åstholm
075d300342
Remove std.builtin.subsystem
...
The subsystem detection was flaky and often incorrect and was not
actually needed by the compiler or standard library. The actual
subsystem won't be known until at link time, so it doesn't make
sense to try to determine it at compile time.
2025-11-05 01:29:00 +01:00
Alex Rønne Petersen
74900e938a
Merge pull request #25813 from linusg/bump-macos-libc
...
libc: Update macOS headers to SDK 26.1
2025-11-04 23:05:14 +01:00
Linus Groh
f55eb18abb
libc: Add mach-o/getsect.h and mach/exception.h macOS headers
...
Closes #18257 .
2025-11-04 21:51:48 +00:00
Linus Groh
e2fb103ce1
libc: Add all macOS CommonCrypto headers
...
Closes #23795 .
2025-11-04 21:48:06 +00:00
Linus Groh
abca5bd588
libc: Update macOS headers to SDK 26.1
2025-11-04 21:40:21 +00:00
Jacob Young
459f3b7ede
codegen: fix tuple padding
...
Closes #25797
2025-11-04 06:04:30 -05:00
Jacob Young
ea76946d2a
Io.Queue: fix empty and full states being indistinguishable.
2025-11-04 04:24:32 -05:00
kbz_8
c603d27f90
Fixing SPIR-V header generator magic + Adding Zig compiler version to SPIR-V OpSource ( #25435 )
...
* fixing Zig generator magic in SPIR-V header; adding zig compiler version to SPIR-V OpSource
* Update src/codegen/spirv/Module.zig
Co-authored-by: rpkak <67059904+rpkak@users.noreply.github.com>
---------
Co-authored-by: rpkak <67059904+rpkak@users.noreply.github.com>
2025-11-04 04:40:29 +00:00
Frank Denis
ee4df4ad3e
crypto - threaded K12: separate context computation from thread spawning ( #25793 )
...
* threaded K12: separate context computation from thread spawning
Compute all contexts and store them in a pre-allocated array,
then spawn threads using the pre-computed contexts.
This ensures each context is fully materialized in memory with the
correct values before any thread tries to access it.
* kt128: unroll the permutation rounds only twice
This appears to deliver the best performance thanks to improved cache
utilization, and it’s consistent with what we already do for SHA3.
2025-11-03 17:09:00 +01:00
Linus Groh
afdd04356c
std: serenity has preadv now
...
2a9154e77c
2025-11-02 14:45:32 -08:00