Luuk de Gram
b2718e213e
wasm-linker: use Atoms for zig debug info
...
Previously we used single arraylists for each debug section for debug
information that was generated from Zig code. (e.i. `Module` is available).
This information is now stored in Atoms, similarly to debug information
from object files. This will allow us to link them together and resolve
debug relocations.
2022-09-07 18:53:16 +02:00
Luuk de Gram
46c932a2c9
wasm-linker: perform debug relocations
...
This correctly performs a relocation for debug sections.
The result is that the wasm-linker can now correctly create
a binary from object files while preserving all debug information.
2022-09-07 18:53:16 +02:00
Luuk de Gram
c347751338
wasm-linker: write debug sections from objects
...
We now link relocatable debug sections with the correct
section symbol and then allocate and resolve the debug atoms
before writing them into the final binary.
Although this does perform the relocation, the actual relocations
are not done correctly yet.
2022-09-07 18:53:16 +02:00
Luuk de Gram
f060edb0f3
wasm-linker: create atoms from debug sections
2022-09-07 18:53:16 +02:00
Luuk de Gram
9a92f3d290
wasm/Object: parse debug sections into reloc data
...
Rather than storing the name of a debug section into the structure
`RelocatableData`, we use the `index` field as an offset into the
debug names table. This means we do not have to store an extra 16 bytes
for non-debug sections which can be massive for object files where each
data symbol has its own data section. The name of a debug section
can then be retrieved again when needed by using the offset and
then reading until the 0-delimiter.
2022-09-07 18:53:12 +02:00
Dan Ellis Echavarria
924679abc4
std.simd: change T to u16
...
The `element_bit_size` would break if `T` was signed due to `ceilPowerOfTwo` only working on unsigned numbers.
2022-09-07 15:22:30 +03:00
bfredl
e02b9f458d
build-exe: allow combination of -fno-emit-bin and --verbose-air
...
Currently, `zig build-exe -fno-emit-bin --verbose-air src/main.zig`
results in no output at all. With this refactor, it dumps AIR
and then exits without invoking LLVM, as expected
2022-09-07 14:53:31 +03:00
Evan Haas
e283a40d17
translate-c: convert tabs to \t in object-like macro string literals
...
Closes #12549
2022-09-07 14:46:58 +03:00
Loris Cro
e2bb92b2e2
Merge pull request #12736 from alichraghi/patch-2
...
autodoc: fix highlighted line in light mode
2022-09-05 17:37:12 +02:00
Loris Cro
201dca323e
autodoc: improve rendering of long fn signatures
2022-09-05 17:26:59 +02:00
Loris Cro
3deb33fffa
Merge pull request #12738 from der-teufel-programming/autodoc-opaque-types
...
autodoc: Opaque now handled like other container types
2022-09-04 22:51:03 +02:00
Der Teufel
b8001335c4
autodoc: Opaque now handled like other container types
2022-09-04 22:47:58 +02:00
Loris Cro
dbd60e3d29
autodoc: add support for doc tests
2022-09-04 22:45:57 +02:00
Veikka Tuominen
9ce841a0f0
stage2 llvm: implement aarch64 C ABI
...
... at least enough to pass all the current tests.
2022-09-04 18:46:56 +03:00
Yujiri
ae3a5ff7f9
Fix #12440 : std.math.big.Rational order/orderAbs
2022-09-04 18:45:20 +03:00
riChar
349cf54b32
llvm: fix the type parameter of GlobalAlias
...
Closes 12680
2022-09-04 18:44:45 +03:00
Ali Chraghi
5b3ca4bb53
autodoc: fix highlighted line in light mode
2022-09-04 14:13:47 +04:30
Veikka Tuominen
b7d5582ded
Merge pull request #12723 from Vexu/stage2-fixes
...
Stage2 fixes
2022-09-03 15:48:28 +03:00
Veikka Tuominen
c7884af063
translate-c: do not translate packed C structs as packed Zig structs in stage2
...
Zig's integer backed packed structs are not compatible with C's packed structs.
2022-09-03 03:42:42 +03:00
Veikka Tuominen
0f61d1f0df
stage2 llvm: improve handling of i128 on Windows C ABI
2022-09-03 03:42:42 +03:00
Veikka Tuominen
b83c037f9f
Sema: only ABI sized packed structs are extern compatible
2022-09-03 01:04:46 +03:00
yujiri8
10e11b60e5
zig fmt: don't delete container doc comments
...
Fixes #12617
2022-09-02 20:12:20 +02:00
Veikka Tuominen
6aee07c144
Sema: remove unused src param from typeRequiresComptime
2022-09-02 19:49:11 +03:00
Loris Cro
4a08c6dd51
autodoc: fix stage2 compile error
2022-09-02 18:13:17 +02:00
Loris Cro
e72a8ed5a1
autodoc: fix merge mistake
2022-09-02 17:59:37 +02:00
Loris Cro
907c60aaa7
Merge pull request #12705 from der-teufel-programming/autodoc-big-int
...
Autodoc big_int
2022-09-02 17:48:17 +02:00
Loris Cro
a77d7b740f
autodoc: simplify int_big json stringify procedure
2022-09-02 17:47:04 +02:00
Loris Cro
70b96169ae
Merge pull request #12709 from der-teufel-programming/autodoc-compare-operators
...
autodoc: Compare operators
2022-09-02 17:38:00 +02:00
Loris Cro
0b11d8ec4d
codeowners: mark myself as the codeowner of /src/autodoc/
2022-09-02 17:35:41 +02:00
Loris Cro
081d5a9690
autodoc: correct line number implementation
...
we also correctly take advantage of the starting byte offset of the
parent decl when calling `tree.tokenLocation()`!
2022-09-02 17:28:12 +02:00
Veikka Tuominen
f281f3d10e
Sema: improve behavior of comptime_int backed enums
2022-09-02 17:57:11 +03:00
Veikka Tuominen
a9cdacff95
Sema: add error for enum tag value overflow
...
Closes #12291
2022-09-02 17:57:11 +03:00
Veikka Tuominen
7a51e0befe
Sema: fix noalias coercion error message
...
Closes #11769
2022-09-02 17:57:11 +03:00
Veikka Tuominen
1c4c68e6ba
AstGen: use reachableExpr for try operand
...
Closes #12248
2022-09-02 17:57:10 +03:00
Veikka Tuominen
db54cd247d
Sema: do not emit dbg_inline_end after NoReturn
...
Closes #12698
2022-09-02 17:57:10 +03:00
Veikka Tuominen
8b58dab78b
Sema: resolve lazy value before intToFloat
...
Closes #12698
2022-09-02 17:57:10 +03:00
Veikka Tuominen
7a8d9af4a9
stage2 llvm: correct handling of zero-bit types in unionFieldPtr
...
Pointers to zero-bit types are not zero-bit types so the function should
return something.
Closes #12716
2022-09-02 17:57:10 +03:00
Veikka Tuominen
4462d08224
stage2 llvm: fix passing packed structs to callconv(.C) functions
...
Closes #12704
2022-09-02 17:57:10 +03:00
Loris Cro
5581b60393
Merge pull request #12724 from alichraghi/patch-2
...
autodoc: highlight target line
2022-09-02 16:49:56 +02:00
Ali Chraghi
30e85c9c80
autodoc: highlight target line
2022-09-02 19:11:34 +04:30
riChar
f7784a081f
stage2: fix panic when the dependency is missing
2022-09-02 12:53:48 +03:00
riChar
0d96f1f4fb
zig fmt: remove trailing comma at the end of assembly clobber
2022-09-02 12:52:33 +03:00
Der Teufel
4c033eb35c
autodoc: int_big cleanup
2022-09-02 11:01:46 +02:00
Der Teufel
0d3c6b7aa8
autodoc: Added int_big support
2022-09-02 11:01:46 +02:00
John Schmidt
36f4f32fad
Add AFNOSUPPORT error to bind ( #12560 )
2022-09-01 15:13:07 -05:00
Andrew Kelley
7c91a6fe48
CI: fix CLI usage of s3cmd regarding mime types for autodocs
2022-09-01 12:57:06 -07:00
Der Teufel
3bbf08e98a
autodoc: Compare operators
2022-09-01 15:17:14 +02:00
Veikka Tuominen
2cd3989cb3
Sema: add more validation to coerceVarArgParam
...
Closes #12706
2022-09-01 13:16:33 +03:00
Jason Ho
2b92c5a23e
langref: tweak description of []T ( #12319 )
...
saying []T is a pointer is confusing because zig docs say there are two types of pointers (*T and [*]T). It is more clear to say that []T is a slice type which contains a [*]T pointer and a length.
Co-authored-by: Philipp Lühmann <47984692+luehmann@users.noreply.github.com>
2022-08-31 21:53:00 -04:00
Andrew Kelley
7a733b9385
CI: macos: skip non native
...
We already test cross compiling on x86_64-linux; no need to additionally
test it in the macOS script.
2022-08-31 16:07:08 -07:00