Igor Anić
24304a4385
fetch: save syscall, and add comment
...
From review comments: https://github.com/ziglang/zig/pull/19111
2024-04-03 17:08:41 +02:00
Igor Anić
c4261bf562
fetch: find package root only for archives
2024-04-03 17:06:20 +02:00
Igor Anić
15ca0c9471
fix typo
2024-04-03 17:06:20 +02:00
Igor Anić
a5a928b966
package manager: don't strip components in tar
...
Unpack tar without removing leading root folder. Then find package root
in unpacked tmp folder.
2024-04-03 17:06:20 +02:00
Igor Anić
bc5076715b
fetch: fix failing test
...
Prior to
[this](ef9966c985 (diff-08c935ef8c633bb630641d44230597f1cff5afb0e736d451e2ba5569fa53d915R805) )
commit tar was not a valid extension. After that this one is valid case.
2024-04-03 17:06:20 +02:00
Igor Anić
b88ae8dbd8
std.tar: implement executable bit only
2024-04-02 14:02:43 -07:00
Michael Lynch
2a7cedfeb9
Refactor ArrayList replaceRange tests
2024-04-02 13:46:51 -07:00
Nguyễn Gia Phong
5835e5ec9a
grammar: fix ASCII range typo
2024-04-02 13:46:11 -07:00
Jacob Young
4794c6a526
Sema: fix crash accessing array of opv types
...
Closes #19499
2024-04-02 13:45:07 -07:00
Robin Voetter
d2be725e4b
Merge pull request #19490 from Snektron/spirv-dedup
...
spirv: deduplication pass
2024-04-01 09:51:04 +02:00
Andrew Kelley
3cb987f5a5
Merge pull request #19501 from ianic/io_uring_19451
...
io_uring: fix regression
2024-03-31 20:20:28 -07:00
Igor Anić
254c05a9e1
io_uring: simplify copy_cqe logic
...
First copy as much as we can in this cycle. If there is more needed
wrap and start from the buffer 0 position.
2024-03-31 23:57:16 +02:00
Igor Anić
704660c81a
io_uring: fix copy_cqes logic
2024-03-31 23:52:46 +02:00
Igor Anić
631c28c9e3
io_uring: add failing test
...
For issue: #19451
2024-03-31 23:51:40 +02:00
Andrew Kelley
a6ed3e6d29
Merge pull request #19470 from jacobly0/field-parent-ptr
...
Rework `@fieldParentPtr` to use RLS
2024-03-31 01:47:23 -07:00
Jacob Young
e5ba70bb5c
update zig1.wasm
...
Removes the first argument of `@fieldParentPtr`.
2024-03-30 20:54:53 -04:00
Jacob Young
fb192df4f2
cbe: fix uncovered bugs
2024-03-30 20:50:48 -04:00
Jacob Young
7580879e8b
x86_64: cleanup comptime mutable memory change
2024-03-30 20:50:48 -04:00
Jacob Young
eb723a4070
Update uses of @fieldParentPtr to use RLS
2024-03-30 20:50:48 -04:00
Jacob Young
17673dcd6e
AstGen: use RLS to infer the first argument of @fieldParentPtr
2024-03-30 20:50:48 -04:00
Jacob Young
e409afb79b
Update uses of @fieldParentPtr to pass a pointer type
2024-03-30 20:50:48 -04:00
Jacob Young
9b2345e182
Sema: rework @fieldParentPtr to accept a pointer type
...
There is no way to know the expected parent pointer attributes (most
notably alignment) from the type of the field pointer, so provide them
in the first argument.
2024-03-30 20:50:48 -04:00
Jacob Young
5a41704f7e
cbe: rewrite CType
...
Closes #14904
2024-03-30 20:50:48 -04:00
Jacob Young
6f10b11658
cbe: fix bugs revealed by an upcoming commit
...
Closes #18023
2024-03-30 20:50:48 -04:00
Robin Voetter
27b91288dc
spirv: disable failing tests
2024-03-30 19:47:56 +01:00
Robin Voetter
12350f53bf
spirv: clz, ctz for opencl
...
This instruction seems common in compiler_rt.
2024-03-30 19:47:55 +01:00
Robin Voetter
f5ab3c93c9
spirv: handle annotations in deduplication pass
2024-03-30 19:47:55 +01:00
Robin Voetter
b4960394ef
spirv: avoid copying operands in dedup pass
2024-03-30 19:47:52 +01:00
Robin Voetter
393a805741
spirv: deduplicate prototype
2024-03-30 10:16:18 +01:00
Marc Tiehuis
aff71c6132
implement ryu 64-bit backend
...
The 64-bit backend supports printing all floats up to 64-bits. The
128-bit continues to be used for larger values.
This backend is approximately ~3x faster. Code size is a little smaller
in the full table case and much smaller if using the samll tables.
The implementation uses the same code-paths, parameterized by a set of
tables and their pow5 implementations. We continue to use the same
rounding/formatting mechanisms. Initially I explored a separate
implementation, as upstream does this and has specific optimizations for
these paths but for simplicity we don't. The performance loss is small
enough at this point and keeping them combined keeps them in sync.
Closes #19264 .
2024-03-29 22:15:17 -07:00
Jakub Konka
fb9673f208
lib/std/coff: add ImportNameType.NAME_EXPORTAS variant
2024-03-29 20:34:28 +01:00
Sean
a2df84d0ff
std.math: rework modf
...
- Changed `modf_result` to `Modf` to better fit naming conventions
- Reworked `modf` to be far simpler and support all floating point types (as well as vectors) (I have done benchmarks and can confirm that the performance is roughly equivalent to the old implementation)
- Added more descriptive tests for modf
- Deprecated `modf32_result` and `modf64_result` in favor of `Modf(f32)` and `Modf(f64)` respectively
2024-03-29 09:33:57 +00:00
Veikka Tuominen
2d443cdabf
Sema: allow .ptr on pointer to array
2024-03-29 07:10:57 +02:00
Jakub Konka
fda9a32fef
macho: fix double free
2024-03-28 20:17:36 -07:00
Andrew Kelley
3661133f98
Merge pull request #19399 from ypsvlq/mingw
...
mingw: support -municode
2024-03-28 14:16:30 -07:00
Andrew Kelley
c808e546a7
Merge pull request #19461 from Vexu/tests
...
add tests for stage1 bugs; remove cbe.zig
2024-03-28 11:53:37 -07:00
Veikka Tuominen
9106fdffaf
Sema: check error union payload types in @errorCast
2024-03-28 15:39:47 +02:00
Veikka Tuominen
60614b2a85
add tests for fixed stage1 bugs
...
Closes #10357
Closes #11236
Closes #11615
Closes #12055
2024-03-28 15:24:01 +02:00
Veikka Tuominen
0588595128
std.PackedInt: remove workaround for stage1 bug
...
Closes #7635
2024-03-28 15:24:01 +02:00
Veikka Tuominen
2cdc48a632
remove test/cbe.zig
...
The C backend is far enough along for these tests to be redundant with all the other tests.
2024-03-28 15:24:01 +02:00
HydroH
7aa42f47b7
allow @errorcast to cast error sets to error unions
2024-03-28 10:23:32 +00:00
Andrew Kelley
17053887d0
Merge pull request #19458 from ianprime0509/all-module-docs
...
Autodoc: include all modules in output
2024-03-28 02:17:50 -07:00
Ian Johnson
3fb6bb1449
std-docs: include builtin module in sources.tar
...
Now that `-femit-docs` includes all modules, including the builtin
module, in the generated source tarball, it makes sense to apply the
same logic to the std-docs server. std-docs constructs its own tarball,
so a different approach is needed to achieve the same end result.
2024-03-28 00:30:42 -04:00
Ian Johnson
424dd17b6c
Autodoc: add all modules to sources.tar
...
Closes #19403
This commit adds all modules in the compilation to the generated
`sources.tar` when using `-femit-docs` (including `std` and `builtin`).
Additionally, it considers the main module when doing so, rather than
the root module, so the behavior when running `zig test -femit-docs
test.zig` is now correct.
2024-03-28 00:30:29 -04:00
Jakub Konka
9dac8db2df
Merge pull request #19430 from ziglang/dwarf-ub
...
link: fix undefined memory being written out in dwarf and codegen
2024-03-27 17:29:30 +01:00
Ryan Liptak
bad9efbcc1
Add standalone test for all possible MinGW exe entry points
2024-03-27 10:06:06 +00:00
Ryan Liptak
4e428415e5
Build.Step.Compile: Add mingw_unicode_entry_point field
...
Corresponds to the `-municode` CLI flag
2024-03-27 10:06:06 +00:00
Elaine Gibson
add74427b9
mingw: support -municode
2024-03-27 10:05:57 +00:00
Jacob Young
71d878ba50
std.zig: remove extraneous newlines in log messages
2024-03-27 01:55:42 -04:00
Jacob Young
77ff6bc656
haiku: fix poll definitions
2024-03-27 01:55:42 -04:00