Jacob Young
b26e732bd0
aarch64: fix error union constants
2025-07-27 08:01:07 -04:00
Jacob Young
771523c675
aarch64: implement var args
2025-07-27 06:59:38 -04:00
Andrew Kelley
da408bd6fc
Merge pull request #24585 from jacobly0/aarch64
...
aarch64: more progress
2025-07-27 00:17:19 -07:00
Andrew Kelley
de39c5f67f
Merge pull request #24587 from jacobly0/x86_64
...
x86_64: fix some bugs
2025-07-26 18:41:29 -07:00
Jacob Young
7894703ee7
aarch64: implement more optional/error union/union support
2025-07-26 21:39:50 -04:00
Jacob Young
69abc945e4
aarch64: implement some safety checks
...
Closes #24553
2025-07-26 17:31:04 -04:00
Jacob Young
1274254c48
aarch64: implement stack probing
2025-07-26 16:08:40 -04:00
Jacob Young
7c349da49c
aarch64: implement complex switch prongs
2025-07-26 16:08:40 -04:00
mlugg
c9ce1debe7
Sema: exclude sentinel from source array length in pointer cast to slice
...
Resolves : #24569
2025-07-26 14:54:04 +01:00
Jacob Young
3194a4d22b
x86_64: fix dst create alloc reg clobbering src
...
Closes #24390
2025-07-26 07:44:12 -04:00
Jacob Young
68cfa736df
x86_64: fix switch on mod result
...
Closes #24541
2025-07-26 06:24:03 -04:00
Andrew Kelley
3687eada6a
std: rework zstd for new I/O API
...
This passes tests but it doesn't provide as big a window size as is
required to decompress larger streams.
The next commit in this branch will work towards that, without
introducing an additional buffer.
2025-07-25 14:15:33 -07:00
Jacob Young
869ef00602
aarch64: more progress
...
- factor out `loadReg`
- support all general system control registers in inline asm
- fix asserts after iterating field offsets
- fix typo in `slice_elem_val`
- fix translation of argument locations
2025-07-25 14:20:23 -04:00
mlugg
bb71a18ede
init: replace '--strip' with '--minimal'
...
This option never worked properly (it emitted wrongly-formatted code),
and it doesn't seem particularly *useful* -- someone who's proficient
enough with `std.Build` to not need explanations probably just wants to
write their own thing. Meanwhile, the use case of writing your own
`build.zig` was extremely poorly served, because `build.zig.zon` *needs*
to be generated programmatically for a correct `fingerprint`, but the
only ways to do that were to a) do it wrong and get an error, or b) get
the full init template and delete the vast majority of it. Both of these
were pretty clunky, and `-s` didn't really help.
So, replace this flag with a new one, `--minimal`/`-m`, which uses a
different template. This template is trivial enough that I opted to just
hardcode it into the compiler for simplicity. The main job of
`zig init -m` is to generate a correct `build.zig.zon` (if it is unable
to do this, it exits with a fatal error). In addition, it will *attempt*
to generate a tiny stub `build.zig`, with only an `std` import and an
empty `pub fn build`. However, if `build.zig` already exists, it will
avoid overwriting it, and doesn't even complain. This serves the use
case of writing `build.zig` manually and *then* running `zig init -m`
to generate an appropriate `build.zig.zon`.
2025-07-25 16:24:02 +01:00
Ian Johnson
6dbcc3bd54
Autodoc: fix sources.tar generation
...
Closes #24565
2025-07-24 19:24:10 -07:00
Andrew Kelley
4236ca40cd
Merge pull request #24561 from linusg/serenity-fixes
...
Small fixes for SerenityOS
2025-07-23 23:04:52 -07:00
Alex Rønne Petersen
5fb36d2600
Merge pull request #24557 from pavelverigo/wasm-try-ptr
2025-07-24 07:44:08 +02:00
Andrew Kelley
b8955a2e0a
std.Io.poll: update to new I/O API
2025-07-23 21:25:34 -07:00
Linus Groh
bf4fda4db6
target: Add libc link flags for serenity
2025-07-24 00:54:40 +01:00
Pavel Verigo
fcd9f521d2
stage2-wasm: implement try_ptr + is_(non_)err_ptr
2025-07-24 01:18:02 +02:00
Andrew Kelley
bc8e1a74c5
Merge pull request #24523 from ziglang/fifno
...
std.tar: update to new I/O API
2025-07-23 10:02:52 +02:00
Andrew Kelley
e9b9a27a52
codegen: prevent AnyMir from bloating zig1.wasm
2025-07-22 19:43:47 -07:00
Jacob Young
5060ab99c9
aarch64: add new from scratch self-hosted backend
2025-07-22 19:43:47 -07:00
Matthew Lugg
687370237f
llvm: fix switch loop on larger than pointer integer
2025-07-22 14:50:22 -04:00
Andrew Kelley
91640f5f81
give the Reader API adapter a buffer
...
it needs one or else it always asserts
2025-07-22 09:41:44 -07:00
Andrew Kelley
1dcea220a4
std.tar: update to new I/O API
2025-07-22 09:41:44 -07:00
Andrew Kelley
f34b4780b7
Merge pull request #24521 from ziglang/fs-streaming
...
std.fs.File: delete writeFileAll and friends
2025-07-22 18:40:11 +02:00
Andrew Kelley
7d02b693be
Sema: fix missed block OPV
2025-07-21 16:43:30 -07:00
Andrew Kelley
85b997b346
Sema: fix missed error union OPV
2025-07-21 16:11:26 -07:00
Andrew Kelley
63f672d322
Sema: fix missed union access OPV
2025-07-21 16:07:20 -07:00
Andrew Kelley
cb6702f42d
Sema: fix missed union init OPV
2025-07-21 15:56:52 -07:00
Andrew Kelley
0958ea3391
Sema: fix missed slice access OPV
2025-07-21 15:45:17 -07:00
Andrew Kelley
71a9b35c0f
Sema: fix missed pointer access OPV
2025-07-21 15:34:57 -07:00
Andrew Kelley
f2a3ac7c05
std.fs.File: delete writeFileAll and friends
...
please use File.Writer for these use cases
also breaking API changes to std.fs.AtomicFile
2025-07-21 12:32:37 -07:00
antlilja
14bb533203
use stdout_buffer instead of stdio_buffer in main.zig
2025-07-20 18:27:01 +02:00
Andrew Kelley
8373788c4c
Merge pull request #24488 from ziglang/more
...
std.zig: finish updating to new I/O API
2025-07-20 11:24:41 +02:00
Andrew Kelley
e43617e686
Merge pull request #24505 from ziglang/json
...
update std.json and std.zon to new I/O API
2025-07-20 09:48:25 +02:00
Andrew Kelley
c40fb96ca3
std.Io.Writer: fix writeSliceSwap
...
tried to be too clever, wrote bad code
2025-07-19 22:12:37 -07:00
Jacob Young
b4fd57a9c1
llvm: workaround crashes in llvm loop optimizations
...
Workaround for #24383
2025-07-20 06:42:47 +02:00
Andrew Kelley
d396780925
Compilation: unrevert some stuff
2025-07-19 19:57:37 -07:00
Andrew Kelley
b956ae20af
frontend: align those stdio buffers
2025-07-19 19:57:37 -07:00
Andrew Kelley
bad836a69b
Compilation: revert some stuff
2025-07-19 19:57:37 -07:00
Andrew Kelley
93378e2e7b
std.zig: finish updating to new I/O API
2025-07-19 19:57:37 -07:00
Jacob Young
592f1043dc
cbe: fix comptime-known packed unions
2025-07-20 03:29:25 +02:00
Andrew Kelley
0fb7a0a94b
std.zon: better namespace for Serializer
2025-07-19 18:27:09 -07:00
Andrew Kelley
b956b02187
zig env: update std.json API
2025-07-19 16:24:37 -07:00
Andrew Kelley
6e55898661
Compilation: refactor std.fs -> fs
...
no functional change
2025-07-18 06:42:54 -07: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
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
Andrew Kelley
ad726587cc
zig fmt: update to new I/O API
2025-07-16 17:20:03 -07:00