aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2025-09-18zig fmt help: mention that the argument can be a directoryFrank Denis
I’ve been typing `zig fmt **/.zig` for a long time, until I discovered that the argument can actually be a directory. Mention this feature explicitly in the help message.
2025-09-17fix handling of comptime-only union fields in `Type.getUnionLayout` (#25182)Silver
Fixes #25180
2025-09-17Elf: implement `linksection`Jacob Young
Closes #24330
2025-09-17Merge pull request #25201 from jacobly0/x86_64-addsatAndrew Kelley
x86_64: fix strictness edge cases in `+|`
2025-09-16llvm: fix tagged union payload size in debug infomlugg
Resolves: #24415
2025-09-15frontend: fix reference tracking through coerced function bodiesmlugg
This bug was manifesting for user as a nasty link error because they were calling their application's main entry point as a coerced function, which essentially broke reference tracking for the entire ZCU, causing exported symbols to silently not get exported. I've been a little unsure about how coerced functions should interact with the unit graph before, but the solution is actually really obvious now: they shouldn't! `Sema` is now responsible for unwrapping possibly-coerced functions *before* queuing analysis or marking unit references. This makes the reference graph optimal (there are no redundant edges representing coerced versions of the same function) and simplifies logic elsewhere at the expense of just a few lines in Sema.
2025-09-10x86_64: fix `@splat` typoJacob Young
2025-09-10x86_64: delete usages of avx2 `vpack?s??`Jacob Young
This instruction actually has fairly useless semantics, and even the cases that were semantically correct could save 1 cycle of latency by using a different sequnce involving the avx version instead. Closes #25174
2025-09-10x86_64: fix strictness edge cases in `+|`Jacob Young
Closes #25145
2025-09-10Merge pull request #24968 from ifreund/dequeAndrew Kelley
std: add a Deque data structure
2025-09-08fix linker code writing undefined memory to the output fileAndrew Kelley
missing `extern` on a struct. but also all these instances that call pwriteAll with a `@ptrCast` are endianness bugs. this should be changed to use File.Writer and call writeSliceEndian instead. this commit fixes one immediate problem but does not fix everything.
2025-09-07frontend: vectors and arrays no longer support in-memory coercionAndrew Kelley
closes #25172
2025-09-06Compilation: fix buildGlibcSharedObjects error handlingAndrew Kelley
Oops, this was supposed to be only a temporary troubleshooting patch.
2025-09-05Sema: forbid packed unions with mismatched field bit sizesAndrew Kelley
2025-09-04link.Elf: truncate st_other to u3 before converting to std.elf.STVAlex Rønne Petersen
See 6b6e336e07308fd23f3061b5be11407956b2a460 for context, but note that in gABI 4.3, 3 bits are reserved for the visibility, up from the previous 2.
2025-08-31Fix `-M` and `--dep` splitting on every = instead of just the firstRyan Liptak
Before this commit, -Mfoo=bar=baz would be incorrectly split into mod_name: `foo` and root_src_orig: `bar` After this commit, -Mfoo=bar=baz will be correctly split into mod_name: `foo` and root_src_orig: `bar=baz` Closes #25059
2025-08-31std.fmt: delete deprecated APIsAndrew Kelley
std.fmt.Formatter -> std.fmt.Alt std.fmt.format -> std.Io.Writer.print
2025-08-31zig_clang: fix ZigClangAPValueLValueBase struct layout to match Clang 21Alex Rønne Petersen
Fixes the compiler build for various targets, especially 32-bit.
2025-08-30Merge pull request #25077 from ziglang/GenericReaderAndrew Kelley
std.Io: delete GenericReader, AnyReader, FixedBufferStream; and related API breakage
2025-08-30upgrade more old API usesAndrew Kelley
2025-08-30rework std.Io.Writer.Allocating to support runtime-known alignmentAndrew Kelley
Also, breaking API changes to: * std.fs.Dir.readFileAlloc * std.fs.Dir.readFileAllocOptions
2025-08-30Revert "llvm: workaround crashes in llvm loop optimizations"Alex Rønne Petersen
This reverts commit b4fd57a9c114748afb9ba0a04bede61089a02ddf. https://github.com/llvm/llvm-project/pull/149743
2025-08-30compiler: remove medium code model workaround for loongarch64Alex Rønne Petersen
The default was changed in LLVM 21.
2025-08-30llvm: switch to native f16 IR type for all hexagon targetsAlex Rønne Petersen
This was fixed in LLVM 21, in particular for targets older than v68.
2025-08-30llvm: remove f16 special case for soft float aarch64Alex Rønne Petersen
2025-08-30llvm: switch to native f128 IR type for nvptxAlex Rønne Petersen
LLVM 21 added support for this.
2025-08-30llvm: switch to native f16 IR type for s390xAlex Rønne Petersen
LLVM 21 added support for this.
2025-08-30llvm: update data layout strings for LLVM 21Alex Rønne Petersen
2025-08-30zig cc: pass -mthumb to the assembler as necessaryAlex Rønne Petersen
2025-08-30zig cc: pass CPU features to Clang using the new -Xclangas when assemblingAlex Rønne Petersen
Unfortunately, we cannot yet remove the special-casing for RISC-V CPU features, so that code stays. Closes #10411.
2025-08-30zig cc: update options data to LLVM 21Alex Rønne Petersen
2025-08-30std.Target: add managarm OS tagAlex Rønne Petersen
2025-08-30compiler: respond to API changes in LLVM 21Alex Rønne Petersen
2025-08-30libtsan: update to LLVM 21Alex Rønne Petersen
2025-08-30zig cc: update driver files to LLVM 21Alex Rønne Petersen
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-29std.Io: delete CountingReaderAndrew Kelley
2025-08-29Merge pull request #25036 from ziglang/GenericWriterAndrew Kelley
std.Io: delete GenericWriter, AnyWriter, and null_writer
2025-08-29LLVM backend:fix align 1 sret parameter load returnedAndrew Kelley
closes #25067
2025-08-28fix not discarding delimiterAndrew Kelley
perhaps these APIs have the defaults backwards, eh?
2025-08-28link.MachO: code sig size grows when emitting itAndrew Kelley
2025-08-2832-bit fixesAndrew Kelley
2025-08-28update more to avoid GenericWriterAndrew Kelley
2025-08-28compiler: update not to use GenericWriterAndrew Kelley
2025-08-28aro: update to not use GenericWriterAndrew Kelley
2025-08-28more updates to not use GenericWriterAndrew Kelley
2025-08-28compiler: update to not use GenericWriterAndrew Kelley
2025-08-28link.Elf: update to not use GenericWriterAndrew Kelley
2025-08-28link.MachO: update to not use GenericWriterAndrew Kelley
2025-08-28link.Wasm: update for new writer APIAndrew Kelley