WillLillis
18d412ab2f
fix: remove misleading error note for failed array coercions
2024-07-21 00:10:36 -07:00
Will Lillis
9b292c0949
fix: Add error notes for method calls on double pointers ( #20686 )
2024-07-21 00:03:23 -07:00
Andrew Kelley
93c546c8c9
Merge pull request #20692 from pavelverigo/stage2-wasm-overflow-ops
...
stage2-wasm: overflow ops improvement
2024-07-20 23:57:14 -07:00
Andrew Kelley
5f78e28899
test runner: disable stderr printing for riscv64
...
Make it a little easier for contributors to see CI failures in the logs.
2024-07-20 19:16:00 -07:00
Andrew Kelley
ff02bf403b
Merge pull request #20402 from alexrp/target-cleanup
...
std.Target: Remove some obsolete/dead specifiers.
2024-07-20 13:55:37 -07:00
Robin Voetter
6d7bbab740
Merge pull request #20696 from sobolevn/typos-fix
...
Fix typos in code comments in `src/`
2024-07-20 22:28:42 +02:00
Andrew Kelley
b5f3d12164
Merge pull request #20688 from ziglang/incr-test
...
introduce a new tool for testing incremental compilation
2024-07-20 13:04:49 -07:00
sobolevn
4c71d3f29e
Fix typos in code comments in src/
2024-07-20 20:23:18 +03:00
Jacob Young
ef3a746da1
Merge pull request #20691 from jacobly0/dev
...
dev: fix llvm backend checks
2024-07-20 10:44:49 -04:00
Pavel Verigo
a0795f11df
disable failing tests on stage2 backends
2024-07-20 14:58:41 +02:00
Jacob Young
5424239154
dev: add missing x86_64 backend checks
2024-07-20 07:43:53 -04:00
Jacob Young
2e65244cae
dev: fix llvm backend checks
2024-07-20 07:43:40 -04:00
Pavel Verigo
f5dd6fb71a
stage2-wasm: @mulWithOverflow fixes + 128 bit signed
2024-07-20 13:21:46 +02:00
Andrew Kelley
645ad1ef72
incr-check: support running the generated binary
2024-07-20 01:06:29 -07:00
Andrew Kelley
9f112ce868
incr-test: running an update
2024-07-20 01:06:29 -07:00
Andrew Kelley
ea2c45227a
init incremental compilation check tool
2024-07-20 01:06:29 -07:00
Andrew Kelley
7b1d3e7276
compiler server: detect when parent process pipe is broken
...
closes #18340
2024-07-20 01:06:29 -07:00
Andrew Kelley
397c9174cb
fix std.fmt.hex
2024-07-20 01:06:29 -07:00
Andrew Kelley
eb4028bf30
add std.fmt.hex
...
converts an unsigned integer into an array
2024-07-20 01:06:29 -07:00
Andrew Kelley
9d00f69be5
move std.zig.fatal to std.process.fatal
2024-07-20 01:06:28 -07:00
Jacob Young
4f742c4cfc
dev: introduce dev environments that enable compiler feature sets
2024-07-19 22:35:33 -07:00
Alex Rønne Petersen
5e82e90dbf
std.Target: Remove coreclr ABI specifier.
...
This was added to LLVM in 2015 for the LLILC project, which was discontinued in
~2018, and subsequently archived in 2022.
933b58d00f
2024-07-20 05:08:16 +02:00
Alex Rønne Petersen
af8205e25e
std.Target: Remove nacl OS specifier and le32/le64 arch specifiers.
...
Native Client is dead.
https://developer.chrome.com/docs/native-client
2024-07-20 05:08:16 +02:00
Alex Rønne Petersen
5a2f6acb44
std.Target: Remove kfreebsd OS specifier.
...
kFreeBSD is dead.
https://lists.debian.org/debian-devel/2023/07/msg00176.html
2024-07-20 05:08:14 +02:00
Alex Rønne Petersen
9939b116bf
std.Target: Remove the gnuf64 ABI specifier.
...
This was used for LoongArch64, where:
* `gnuf64` -> `ilp32d` / `lp64d` (full hard float)
* `gnuf32` -> `ilp32f` / `lp64f` (hard float for `f32` only)
* `gnusf` -> `ilp32` / `lp64` (soft float)
But Loongson eventually settled on just `gnu` for the first case since that's
what most people will actually be targeting outside embedded scenarios. The
`gnuf32` and `gnusf` specifiers remain in use.
2024-07-20 04:56:56 +02:00
YANG Xudong
b7e48c6bcd
std: Add loongarch support for elf. ( #20678 )
2024-07-19 16:32:20 -07:00
Andrew Kelley
0d1db794d5
Merge pull request #20679 from ziglang/std.c-reorg
...
std.c reorganization
2024-07-19 16:30:21 -07:00
Andrew Kelley
89e4c38fe3
CI: update tarballs to one that has LLVM assertions enabled
2024-07-19 15:43:35 -07:00
kcbanner
647a0c9b82
mem: handle Float and Bool cases in byteSwapAllFields
2024-07-19 14:09:51 -07:00
Andrew Kelley
01337e2093
fix regression of flock being called on wasi targets
...
* common symbols are now public from std.c even if they live in
std.posix
* LOCK is now one of the common symbols since it is the same on 100% of
operating systems.
* flock is now void value on wasi and windows
* std.fs.Dir now uses flock being void as feature detection, avoiding
trying to call it on wasi and windows
2024-07-19 11:35:22 -07:00
Techatrix
ebd9efa850
fix fanotify_mark on 32-bit
2024-07-19 01:40:16 -07:00
Jacob Young
40bab4df69
behavior: disable test that triggers an llvm assertion
...
Tracked by #20680
2024-07-19 04:35:11 -04:00
Andrew Kelley
7157189143
macos doesn't have pipe2
2024-07-19 00:40:00 -07:00
Andrew Kelley
8c4a2dc1df
move non-libc stuff out of std.c
2024-07-19 00:30:32 -07:00
Andrew Kelley
e8c4e79499
std.c reorganization
...
It is now composed of these main sections:
* Declarations that are shared among all operating systems.
* Declarations that have the same name, but different type signatures
depending on the operating system. Often multiple operating systems
share the same type signatures however.
* Declarations that are specific to a single operating system.
- These are imported one per line so you can see where they come from,
protected by a comptime block to prevent accessing the wrong one.
Closes #19352 by changing the convention to making types `void` and
functions `{}`, so that it becomes possible to update `@hasDecl` sites
to use `@TypeOf(f) != void` or `T != void`. Happily, this ended up
removing some duplicate logic and update some bitrotted feature
detection checks.
A handful of types have been modified to gain namespacing and type
safety. This is a breaking change.
Oh, and the last usage of `usingnamespace` site is eliminated.
2024-07-19 00:30:32 -07:00
Jakub Konka
16604a93b9
Merge pull request #20650 from ziglang/parallel-macho
...
The tale of parallel MachO: part 1
2024-07-18 22:23:30 +02:00
Andrew Kelley
e4f5dada61
Merge pull request #19641 from The-King-of-Toasters/windows-api-refactor
...
Windows: Rework kernel32 apis
2024-07-18 11:44:32 -07:00
mlugg
f5a941b3d6
Sema: return module-relative path for @src()
...
This is one possible approach to fixing an issue with reproducible
builds where the compiler's cwd changes the paths returned by `@src()`.
2024-07-18 18:45:07 +01:00
Pavel Verigo
56d535dd24
stage2-wasm: improve @shlWithOverflow for <= 128 bits
...
Additionally fixed a bug for shr on signed big ints
2024-07-18 18:01:06 +02:00
Pavel Verigo
dc3176d628
stage2-wasm: enhance add/subWithOverflow
...
Added behavior tests to verify implementation
2024-07-18 17:54:44 +02:00
Pavel Verigo
d1bd9518f9
stage2-wasm: fix big int comparison
...
Unexpected to be found only now
2024-07-18 17:18:17 +02:00
Jakub Konka
3bdbf81a3f
macho: fix emitting data-in-code entries
2024-07-18 09:13:09 +02:00
Jakub Konka
34f34dbe32
macho: reinstate duplicate definition checking
2024-07-18 09:13:09 +02:00
Jakub Konka
d19aab2e87
macho: bump max rss by a slight margin
2024-07-18 09:13:09 +02:00
Jakub Konka
b339a30680
macho: fix off-by-one when populating strtab
2024-07-18 09:13:09 +02:00
Jakub Konka
e9328e7da8
macho: fix 32bit compilation issues
2024-07-18 09:13:09 +02:00
Jakub Konka
3338813077
macho: use isec for working out getAtomData in ZigObject
2024-07-18 09:13:09 +02:00
Jakub Konka
a9e3088d9c
macho: extract testing logic for TLS into a helper
2024-07-18 09:13:08 +02:00
Jakub Konka
103c16c879
macho: clean up atom+symbol creation logic in ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
e117e05768
macho: ensure we always name decls like LLVM to avoid confusion
2024-07-18 09:13:08 +02:00