Jacob Young
ef3a746da1
Merge pull request #20691 from jacobly0/dev
...
dev: fix llvm backend checks
2024-07-20 10:44:49 -04: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
Jacob Young
4f742c4cfc
dev: introduce dev environments that enable compiler feature sets
2024-07-19 22:35:33 -07: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
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
Jakub Konka
91de8dc8ab
macho: fix unresolved symbols error reporting
2024-07-18 09:13:08 +02:00
Jakub Konka
521933e1c0
macho: do not randomly append non-incr atoms in ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
f9fbd6302f
macho: test TLS in Zig with x86_64 backend
2024-07-18 09:13:08 +02:00
Jakub Konka
234aa86802
macho: update non-incremental section sizes for ZigObject sections
2024-07-18 09:13:08 +02:00
Jakub Konka
387a71fa5b
macho: re-enable writing out static archive with ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
84189f9d56
macho: skip resizing incremental Zig sections in r mode
2024-07-18 09:13:08 +02:00
Jakub Konka
129fe8668c
macho: write non-incremental atoms in ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
e5a66184ed
macho: pretty print relocation types in logs and errors
2024-07-18 09:13:08 +02:00
Jakub Konka
01fc33c949
macho: emit relocs for non-zig-sections in ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
853ca403c4
macho: bring back relocatable mode for ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
cba04ff244
macho: re-enable calculating num of relocs for ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
2579c55d49
macho: adjust global creation in ZigObject to new model
2024-07-18 09:13:08 +02:00
Jakub Konka
4aff0ec394
macho: move relocs re-resolution logic to ZigObject
2024-07-18 09:13:08 +02:00
Jakub Konka
b62281a9c8
macho: re-enable relocatable mode
2024-07-18 09:13:08 +02:00
Jakub Konka
90c54f1eb6
macho: fix symbol visibility merging logic
2024-07-18 09:13:08 +02:00
Jakub Konka
3d58faed12
macho: we do not yet support interposable symbols
2024-07-18 09:13:08 +02:00
Jakub Konka
b4e6b3c53c
macho: bring back parts of r mode
2024-07-18 09:13:08 +02:00
Jakub Konka
05a790d784
macho: link hello world in zig compiled with llvm
2024-07-18 09:13:08 +02:00
Jakub Konka
18778e2a0a
macho: bring back parts of ar
2024-07-18 09:13:08 +02:00
Jakub Konka
174de37cef
macho: fix compile errors
2024-07-18 09:13:08 +02:00
Jakub Konka
5b4c0cc1f9
macho: update ZigObject to use new ownership model
2024-07-18 09:13:08 +02:00
Jakub Konka
f8b5466aef
macho: migrate UnwindInfo
2024-07-18 09:13:08 +02:00
Jakub Konka
882ff3ae31
macho: migrate eh_frame module
2024-07-18 09:13:08 +02:00
Jakub Konka
b96339f6f6
macho: migrate Relocation struct
2024-07-18 09:13:08 +02:00