Andrew Kelley
f47e92ca0d
mingw-w64: update to latest master
...
upstream commit 0bac2d3cdb122dadcdee90009f7e24a69d56939f
2024-03-20 11:26:09 -07:00
Andrew Kelley
869c2a03f3
mingw-w64 updater: don't include windowsapp or onecore APIs
2024-03-20 11:25:54 -07:00
Andrew Kelley
25fb6de83c
mingw-w64: update to reflect latest tool changes
...
upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80
closes #18968
2024-03-20 11:23:51 -07:00
Andrew Kelley
43f240803d
mingw-w64 updater: don't omit win32 def files
...
see #18968
2024-03-20 11:23:48 -07:00
Ryan Liptak
5005c6243a
Fix CODEOWNERS path to resinator source files
...
The resinator files were moved during #19174
2024-03-20 15:35:15 +02:00
Andrew Kelley
7ecbb6f3a0
Merge pull request #19360 from ziglang/no-byos-posix
...
std: don't do BYOS at the POSIX API layer
2024-03-20 00:39:09 -07:00
Andrew Kelley
cba1555104
std: don't do BYOS at the POSIX API layer
...
This was a mistake from day one. This is the wrong abstraction layer to
do this in.
My alternate plan for this is to make all I/O operations require an IO
interface parameter, similar to how allocations require an Allocator
interface parameter today.
2024-03-20 00:38:44 -07:00
Andrew Kelley
5d389535e8
std: fix inconsistent errno size on linux
...
Now it's always u16
2024-03-20 00:36:41 -07:00
Andrew Kelley
3a836b4800
Merge pull request #19354 from ziglang/std.posix
...
extract std.posix from std.os
2024-03-20 00:34:28 -07:00
Andrew Kelley
8c94950c24
fix compilation failures found by CI
2024-03-19 16:18:18 -07:00
Andrew Kelley
6b2899df2a
compiler: fix wrong detection of rlimit
...
related to #19352
2024-03-19 11:45:10 -07:00
Andrew Kelley
cd62005f19
extract std.posix from std.os
...
closes #5019
2024-03-19 11:45:09 -07:00
Robin Voetter
7057bffc14
Merge pull request #19337 from Snektron/spirv-globals
...
spirv: rework generic global
2024-03-19 09:34:59 +01:00
Andrew Kelley
c52a2c338d
std.Build.Step.Run: documentation for addFileArg and friends
...
Someone on IRC got these functions mixed up, and it sure would have been
helpful to have these docs in the first place, eh?
2024-03-18 23:52:52 -07:00
Andrew Kelley
fb812fc1fc
langref: add naming guide
2024-03-18 23:52:52 -07:00
Linus Groh
d100a8e2dc
langref: Rename std.fs.wasi.{PreopenList => Preopens}
2024-03-19 07:22:50 +02:00
Robin Voetter
2f9e37ade0
spirv: enable passing tests
2024-03-18 19:13:51 +01:00
Robin Voetter
4020b91f21
spirv: skip test that miscompiles on Intel
2024-03-18 19:13:51 +01:00
Robin Voetter
335ff5a5f4
spirv: fix optional comparison
2024-03-18 19:13:50 +01:00
Robin Voetter
8ed134243a
spirv: unused instruction pruning linker pass
2024-03-18 19:13:50 +01:00
Robin Voetter
9b18125562
spirv: make generic globals invocation-local
2024-03-18 19:13:50 +01:00
Robin Voetter
20d7bb68ac
spirv: add zig-specific ext inst
...
This may be removed again in the future...
2024-03-18 19:13:49 +01:00
Robin Voetter
e566158acf
spirv: make IdResult an enum
2024-03-18 19:13:49 +01:00
Robin Voetter
9b058117f0
spirv: update assembler with new spec
2024-03-18 19:13:48 +01:00
Robin Voetter
028f532dc0
spirv: update spec to SPIRV-Headers/8b246ff
...
We need this "unstable" version to get the Zig identifiers.
2024-03-18 19:13:47 +01:00
Robin Voetter
3d5721da23
spirv: update spec generator
...
For module parsing and assembling, we will also need to know
all of the SPIR-V extensions and their instructions. This commit
updates the generator to generate those. Because there are
multiple instruction sets that each have a separate list of Opcodes,
no separate enum is generated for these opcodes. Additionally, the
previous mechanism for runtime instruction information, `Opcode`'s
`fn operands()`, has been removed in favor for
`InstructionSet.core.instructions()`.
Any mapping from operand to instruction is to be done at runtime.
Using a runtime populated hashmap should also be more efficient
than the previous mechanism using `stringToEnum`.
2024-03-18 19:13:46 +01:00
SuperAuguste
8e7d9afdac
Add 64bit byteswap case, use fewer locals
2024-03-18 12:40:41 +01:00
Andrew Kelley
cbeab678a5
Merge pull request #19325 from Vexu/dynlib
...
std: adjust DynLib API
2024-03-17 20:19:51 -07:00
Reokodoku
1206604262
Implementing structs and better enums in build options
2024-03-18 02:46:54 +00:00
Veikka Tuominen
64173dadca
Merge pull request #19334 from antlilja/llvm-fast-math
...
Fix setFloatMode in LLVM backend
2024-03-18 04:27:39 +02:00
kcbanner
54f6e74cda
cbe: rework StringLiteral to decide between string literal or array initializator syntax
...
This fixes an issue with boostrapping the compiler using MSVC. There is a CircularBuffer with
an array of length 65536 initialized to undefined, and because the undefined path of `renderValue`
was using `StringLiteral` to render this, the resulting zig2.c would fail to compile using MSVC.
The solution was to move the already-existing array initializer path (used in the non-undefined path)
into StringLiteral, and make StringLiteral aware of the total length so it could decide between which
style of initialization to use. We prefer to use string literals if we can, as this results in the least
amount of emitted C source.
2024-03-17 16:17:04 -07:00
Andrew Kelley
95cb939440
Merge pull request #19333 from Vexu/fixes
...
Miscellaneous error fixes
2024-03-17 15:26:55 -07:00
Jacob Young
c11b6adf13
Ast: fix comptime destructure
...
A preceding `comptime` keyword was being ignored if the first
destructure variable was an expression.
2024-03-17 15:23:16 -07:00
Andrew Kelley
d981549d65
Merge pull request #19323 from jacobly0/rm-fn-type-align
...
AstGen: disallow alignment on function types
2024-03-17 15:19:54 -07:00
Veikka Tuominen
aa03ec8001
add behavior test for optimized float math
...
Closes #19178
2024-03-17 22:23:16 +02:00
antlilja
8ac5eb0893
LLVM: Add test for calling reduce with float mode set to optimized
2024-03-17 16:34:36 +01:00
antlilja
79b868d504
LLVM: Use fast math when requested
2024-03-17 16:26:28 +01:00
antlilja
b20cee586c
LLVM: Fix incorrect fast constant in FastMath packed struct
2024-03-17 16:25:59 +01:00
antlilja
37a4d9391f
LLVM: Fix reaching unreachable code when emitting fast call
2024-03-17 16:23:14 +01:00
Robin Voetter
3bffa58012
Revert "spirv: merge construct(Struct/Vector/Array) into constructComposite"
...
This reverts commit eb2d61d02e503f01070c05e2e1fc87e827124d94.
2024-03-17 14:17:26 +01:00
Veikka Tuominen
436c72e89a
Sema: allow param instructions to clobber inst_map
...
Closes #18840
2024-03-17 14:42:12 +02:00
Veikka Tuominen
fec4b7ef5c
Sema: fix spurious type has no namespace error
...
Closes #19232
2024-03-17 14:42:12 +02:00
Veikka Tuominen
f983adfc10
Sema: fix printing of inferred error set of generic fn
...
Closes #19332
2024-03-17 13:33:05 +02:00
Anton Lilja
294f51814f
LLVM lowerDebugType: Lower union types without a layout into an empty namespace
2024-03-17 13:25:09 +02:00
Veikka Tuominen
e6f74b78ef
std: define error set of toPosixPath
2024-03-17 09:06:54 +02:00
Jacob Young
edeed592ee
update zig1.wasm
...
Removes `std.builtin.Type.Fn.alignment`.
2024-03-17 03:25:56 +01:00
Jacob Young
e646e01161
Revert "back out the build_runner.zig moving change"
...
This reverts commit 1a01151a4e1e83826d6911c929210aabcaed36e9 in
preparation for a zig1.wasm update.
2024-03-17 03:06:39 +01:00
Jacob Young
d10c52c194
AstGen: disallow alignment on function types
...
A pointer type already has an alignment, so this information does not
need to be duplicated on the function type. This already has precedence
with addrspace which is already disallowed on function types for this
reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and
alignment.
2024-03-17 03:06:17 +01:00
Leo Emar-Kar
f88a971e4f
std.fmt: fix incorrect rounding on 0 precision of a decimal
2024-03-16 23:38:46 +00:00
Veikka Tuominen
ec2465542c
std: adjust DynLib API
...
The cross-platform functions now use an error set that contains all possible errors on every platform.
2024-03-17 01:20:08 +02:00