Commit Graph

34846 Commits

Author SHA1 Message Date
Alexandre 4e6a04929d Changed u64 to usize to fix #24208 2025-07-19 15:31:44 +02:00
mlugg 67e6df4313 tests: remove more old async tests
The rejection of #6025 indicates that if stackless coroutines return to
Zig, they will look quite different; see #23446 for the working draft
proposal for their return (though it will definitely be tweaked before
being accepted). Some of this test coverage was deleted in 40d11cc, but
because stackless coroutines will take on a new form if re-introduced, I
anticipate that essentially *none* of this coverage will be relevant. Of
course, if it for some reason is, we can always grab it from the Git
history.
2025-07-19 08:52:13 +02:00
AsmArtisan256 69cf40da60 std.os.uefi.protocol.file: fix getInfo() buffer alignment (#24496)
* std.os.uefi.protocol.file: use @alignCast in getInfo() method to fix #24480

* std.os.uefi.protocol.file: pass alignment responsabilities to caller by redefining the buffer type instead of blindly calling @alignCast
2025-07-18 19:07:05 +00:00
Andrew Kelley 6e55898661 Compilation: refactor std.fs -> fs
no functional change
2025-07-18 06:42:54 -07:00
Felix Koppe 3ae0ba096d test: Restore and fix deleted tests that relied on intern pool types (#24422) 2025-07-17 22:07:50 +00:00
Alex Rønne Petersen 32c9e5df89 ci: skip single-threaded module tests on riscv64-linux 2025-07-17 19:40:59 +02:00
Alex Rønne Petersen 7da4e30da7 ci: skip translate-c tests on riscv64-linux 2025-07-17 19:37:42 +02:00
Alex Rønne Petersen df92193941 ci: skip building docs on riscv64-linux 2025-07-17 19:34:46 +02:00
Andrew Kelley a35688b613 Merge pull request #20069 from LewisGaul/math-tests-simplified
Math tests simplified (exp and log functions) with bugfixes
2025-07-17 18:44:51 +02:00
John Benediktsson e62e42f0d9 std.io.Writer: remove requirement of a 2-byte buffer for extern unions (#24489)
closes #24486
2025-07-17 16:42:53 +00:00
Andrew Kelley a8dc32e4ec Merge pull request #24493 from ziglang/readSliceShort
std.Io.Reader: fix readSliceShort with smaller buffer than Reader
2025-07-17 18:35:38 +02:00
Andrew Kelley 155ab56cc6 std.zig.readSourceFileToEndAlloc: avoid resizing
+1 on the ensure total capacity to account for the fact that we add a
null byte before returning.

thanks matklad
2025-07-17 09:33:25 -07:00
Andrew Kelley 5784500572 std.Io.Reader: fix readSliceShort with smaller buffer than Reader
closes #24443
2025-07-17 09:26:31 -07:00
Andrew Kelley 86699acbb9 std.Io.Reader: update OneByteReader usage to std.testing.Reader 2025-07-17 09:26:31 -07:00
kcbanner b7d7446fbb compiler_rt: export all the chkstk variations on MinGW 2025-07-17 14:36:52 +02:00
Alex Rønne Petersen 33041fdbe5 ci: increase max rss for riscv64-linux back to 64G 2025-07-17 14:12:05 +02:00
John Benediktsson 6e86910e19 std.Io: Fix GenericReader.adaptToNewApi; add DeprecatedReader.adaptToNewApi (#24484) 2025-07-17 11:29:22 +00:00
Andrew Kelley c82403020d Merge pull request #24472 from ziglang/zig-fmt
zig fmt: update related functionality to new I/O API
2025-07-17 12:06:40 +02:00
kcbanner 9af076615e std.Progress: reset end when failing to flush stderr 2025-07-17 09:05:29 +02:00
Andrew Kelley 27212a3e6b LLD: don't default allow_shlib_undefined when cross compiling
prevents e.g. lld-link: warning: undefined symbol: SystemFunction036
from being only a warning
2025-07-17 08:26:24 +02:00
Tristan Ross 5ef07302d7 std.Build.Step.ConfigHeader: add the lazy file styled input as a dependency 2025-07-17 05:20:24 +02:00
Lewis Gaul 03dfd2ecc3 Make sure to test the sign of the zero results 2025-07-17 05:04:59 +02:00
Lewis Gaul 7abb170f59 Add tests for math.expm1(), fixing bug in 32-bit function 2025-07-17 05:04:59 +02:00
Lewis Gaul f34b26231e Add tests for math.log1p() 2025-07-17 05:04:59 +02:00
Lewis Gaul 36d5392f03 Add tests for log10() 2025-07-17 05:04:59 +02:00
Lewis Gaul 650e358220 Add tests for log2() 2025-07-17 05:04:59 +02:00
Lewis Gaul 936cf57a38 Add tests for log(), with bugfix for 64-bit boundary case 2025-07-17 05:04:59 +02:00
Lewis Gaul da8974e57f Add tests for exp(), noting last-bit discrepancy for exp(1.0) with math.e 2025-07-17 05:04:59 +02:00
Lewis Gaul 9da19e51ea Add tests for exp2(), with bugfix for 64-bit boundary case 2025-07-17 05:04:59 +02:00
Andrew Kelley 741569d5a7 std.Ast.Render: fix conflicts with master branch 2025-07-16 17:58:06 -07:00
Andrew Kelley 70f514f1ba std.Io.Reader: fix appendRemaining harder
ensure that it issues a stream call that includes the buffer to detect
the end when needed, but otherwise does not offer Reader buffer to
append directly to the list.
2025-07-16 17:20:03 -07:00
Andrew Kelley ad726587cc zig fmt: update to new I/O API 2025-07-16 17:20:03 -07:00
Andrew Kelley aac301a655 update aro 2025-07-16 17:20:03 -07:00
Andrew Kelley 1f93f61958 std.zig.readSourceFileToEndAlloc: add file size heuristic 2025-07-16 17:20:03 -07:00
Andrew Kelley 73cfba4d0d std.Io.Writer: fix writeStruct 2025-07-16 17:20:03 -07:00
Andrew Kelley e7a639967e std.Io.Reader: fix appendRemaining
it calls readVec which is a higher level function than was expected in
the previous implementation
2025-07-16 17:20:03 -07:00
Andrew Kelley 9222d201d7 add a happy little main function to src/fmt.zig
Provided for debugging/testing purposes; unused by the compiler.
2025-07-16 17:20:02 -07:00
Andrew Kelley c4776d66af update compiler 2025-07-16 17:20:02 -07:00
Andrew Kelley b3ee5a6c30 update cmake file listing 2025-07-16 17:20:02 -07:00
Andrew Kelley 2d5d2ba4f5 std.zig.Render: update it and references 2025-07-16 17:20:02 -07:00
Andrew Kelley 0389b4c7b9 move a file without changing it 2025-07-16 17:20:02 -07:00
Andrew Kelley 6c4a104822 std.zig.Ast: update to new I/O API 2025-07-16 17:20:02 -07:00
Andrew Kelley 1a20b467ea std.zig: update to new I/O API 2025-07-16 17:20:02 -07:00
Andrew Kelley 680358767e Merge pull request #24419 from ziglang/asm-clobbers
inline assembly: use types for clobbers
2025-07-17 02:14:18 +02:00
Silver d772c06272 fix splatBytesAll and writeSplatAll 2025-07-16 20:37:38 +02:00
Andrew Kelley af084e537a add lr register to mips 2025-07-16 10:27:40 -07:00
Andrew Kelley c2fa961b63 update docs 2025-07-16 10:27:40 -07:00
Andrew Kelley 8a478b4e9e fix sparc ccr regs 2025-07-16 10:27:40 -07:00
Andrew Kelley 5aa50bcbff fix mips clobbers 2025-07-16 10:27:40 -07:00
Andrew Kelley 8a19eeb8af canonicalize loongarch clobbers 2025-07-16 10:27:40 -07:00