Jacob Young
08a8aa100d
cbe: fix local aliasing issues in atomic ops
2023-04-21 23:08:48 -04:00
Jacob Young
5feb27c126
zig.h: fix float negation
2023-04-21 23:08:48 -04:00
Krzysztof Wolicki
428f745270
autodoc: Change html file destination dirs
...
Each file is now saved with its package index in data.json
2023-04-22 02:36:19 +02:00
Manlio Perillo
4374ce51b0
std.Build.RunStep: fix captureStdOut function return type
...
The return type of the captureStdOut function is incorrect.
Replace *std.Build.GeneratedFile with std.Build.FileSource.
2023-04-21 15:24:23 -07:00
Jakub Konka
14dfbbc213
macho: rebase lazy pointers and apply corrected base offset
2023-04-21 22:44:28 +02:00
Jakub Konka
9a181f367d
macho: mark relocs dirty by target when updating GOT/stubs
2023-04-21 22:44:28 +02:00
Jakub Konka
a596e48d8f
coff: mark relocs dirty by target when updating GOT
2023-04-21 22:44:28 +02:00
Jakub Konka
dd300d92e1
coff: treat vmaddr of 0 as unallocated when checking if resolvable
2023-04-21 22:44:28 +02:00
Jakub Konka
bee35fe3f0
coff: add image base to GOT relocations
...
Sort base relocations by address for deterministic debugging.
2023-04-21 22:44:28 +02:00
Jakub Konka
ae8fb21514
coff: use TableSection for GOT
2023-04-21 22:44:28 +02:00
Jakub Konka
d6e66cff12
macho: fix dirtying of GOT entries
2023-04-21 22:44:28 +02:00
Jakub Konka
f9e9974c8f
macho: skip GOT for TLVs; handle them separately when lowering
2023-04-21 22:44:27 +02:00
Jakub Konka
9530b95afe
macho: refactor common codepath for collecting bindings from TableSection
2023-04-21 22:44:27 +02:00
Jakub Konka
cec4755310
macho: do not allocate atom for __stub_helper preamble
2023-04-21 22:44:27 +02:00
Jakub Konka
fa40267b04
macho: do not allocate atoms for stub entries
2023-04-21 22:44:27 +02:00
Jakub Konka
c55e821df6
macho: resolve relocs before writing to memory (fixes HCS)
2023-04-21 22:44:27 +02:00
Jakub Konka
91bb9302e5
macho: correctly dirty the GOT table after memory realloc
2023-04-21 22:44:27 +02:00
Jakub Konka
c6e916d7fe
macho: fix runtime panics
2023-04-21 22:44:27 +02:00
Jakub Konka
711bc2cf39
macho: use generic TableSection for GOT mgmt
2023-04-21 22:44:27 +02:00
Jakub Konka
8e3100ae02
elf: make TableSection a generic construct
2023-04-21 22:44:27 +02:00
Jakub Konka
8a3ad3f620
elf: do not reserve a GOT slot for every Atom
2023-04-21 22:44:25 +02:00
Jacob Young
d56c6c7791
cbe: implement 128-bit atomics support
...
* Disable 128-bit atomics for x86_64 generic (currently also baseline)
because they require heavy abi agreement to correctly lower.
** This is a breaking change **
* Enable 128-bit atomics for aarch64 in Sema since it just works.
2023-04-21 16:36:31 -04:00
Jacob Young
5afaaf865f
zig.h: fix msvc abi for f128 with a gnu compiler
2023-04-21 16:36:31 -04:00
Jacob Young
7ca9b835a1
std: disable failing test
...
Tracked by #15381
2023-04-21 16:36:31 -04:00
Jacob Young
6b23a7b61a
behavior: enable a bunch of disabled tests
2023-04-21 16:36:31 -04:00
Jacob Young
a519c9dace
cbe: fix atomic float min/max
...
These need `zig_atomic`, unlike int min/max.
2023-04-21 16:36:31 -04:00
Jacob Young
e364627e3e
cbe: fix float casts involving f16
...
Fixes bugs with a previous fix to the f16 abi on x86 darwin.
2023-04-21 16:36:31 -04:00
Jacob Young
b45bcd6420
cbe: fix f128 and c_longdouble abi
...
Fixes the abi of `f128` on darwin and/or aarch64. Also, when `double`
and `long double` were the same size, we used to incorrectly define
`zig_c_longdouble` as `zig_f128`.
2023-04-21 16:36:31 -04:00
Jacob Young
d9596a128f
zig.h: fix typos affecting msvc
2023-04-21 16:36:31 -04:00
Jacob Young
871d29b1a4
std: add more missing windows libraries when running tests
2023-04-21 16:36:31 -04:00
Jacob Young
ee9ef86d89
test: exclude the last warning from cbe tests
2023-04-21 16:36:31 -04:00
Jacob Young
a1ed4bd796
cbe: fix remaining aarch64 issues
2023-04-21 16:36:31 -04:00
Jacob Young
d98974e826
cbe: fix issues with atomic floats
...
Since the Zig language documentation claims support for `.Min` and
`.Max` in `@atomicRmw` with floats, allow in Sema and implement for both
the llvm and C backends.
2023-04-21 16:36:30 -04:00
Jacob Young
c5cf611516
std: add missing windows libraries when running tests
...
Thanks to @kcbanner for diagnosing this.
2023-04-21 16:36:11 -04:00
Jacob Young
bf6fd9ae3f
cbe: enable CI for std tests
2023-04-21 16:36:10 -04:00
Andrew Kelley
528b66f6ec
Merge pull request #15355 from mlugg/feat/liveness-control-flow
...
Liveness: control flow analysis and other goodies
2023-04-21 13:32:25 -07:00
Frank Denis
391663e497
AEGIS MAC: add support for 128-bit tags ( #15379 )
...
When used as a MAC, 256-bit tags are recommended.
But in interactive protocols, 128 bits may be acceptable.
2023-04-21 19:52:33 +00:00
David CARLIER
83970b6d91
std: adding freebsd's elf_aux_info api
2023-04-21 11:42:49 -07:00
Krzysztof Wolicki
7e18bd7f71
autodoc: Handle calling conventions better
...
special case inline cc in exprName
2023-04-21 11:52:07 +02:00
Eric Rowley
a774f93344
Do not use -fPIC when compiling a UEFI application
2023-04-21 08:22:27 +03:00
Ryo Ota
afebef2465
create std.http.Server.Response.deinit to handle keepalive connections
2023-04-21 10:17:16 +09:00
Ryo Ota
06763c4c8c
move the HTTP test to lib/std/http/test.zig
2023-04-21 09:51:23 +09:00
Andrew Kelley
a86759984c
Merge pull request #15316 from xEgoist/fileDisposition
...
windows: use NtSetInformationFile in DeleteFile.
2023-04-20 16:30:27 -07:00
Jan Philipp Hafer
8674418454
compiler_rt: README stubs for arbitrary precision big integer library routines
...
Document current status of exports and intended design being inspired by
Integer Operations.
2023-04-20 16:04:10 -07:00
Andrew Kelley
a1f7c8d860
Merge pull request #14696 from r00ster91/thread
...
std.Thread: use dead code
2023-04-20 16:03:12 -07:00
Stevie Hryciw
e8fdb249b6
std.math.big.int: Initialize limbs in addWrap
...
When a big.Int.Mutable had more than two limbs, it was possible for
this function to change the `len` field without zeroing limbs in the
active range. These uninitialized limbs would then be used in
`truncate()` and could cause invalid results.
Closes #13571
2023-04-20 16:00:37 -07:00
zooster
7d90410b96
std.math: add lerp ( #13002 )
2023-04-20 18:52:44 -04:00
zooster
b7c00999be
std.fs: add linking docs to makeDir*
...
Docs that link back to the other similar functions.
2023-04-20 15:47:39 -07:00
Andrew Kelley
304e4082a0
Merge pull request #15193 from davidgm94/dwarf-64-bit-format
...
Expose an option for producing 64-bit DWARF format
2023-04-20 15:20:12 -07:00
Andrew Kelley
ceff278202
fixes to the previous commit
...
* CompileStep: Avoid calling producesPdbFile() to determine whether the
option should be respected. If the user asks for it, put it on the
command line and let the Zig CLI deal with it appropriately.
* Make the namespace of `std.dwarf.Format.dwarf32` no longer have a
redundant "dwarf" in it.
* Add `zig cc` integration for `-gdwarf32` and `-gdwarf64`.
* Toss in a bonus bug fix for `-gdwarf-2`, `-gdwarf-3`, etc.
* Avoid using default init values for struct fields unnecessarily.
* Add missing cache hash addition for the new option.
2023-04-20 15:17:07 -07:00