Veikka Tuominen
0fa80e66b7
Sema: correct types in @memset
and @memcpy
...
Closes #12750
2022-09-08 00:37:11 +03: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
Andrew Kelley
77f31ebbbe
CI: fix content type of autodocs source listings
2022-08-31 15:27:09 -07:00
Andrew Kelley
368a20a051
CI: include source listings for autodocs
2022-08-31 14:22:01 -07:00
Andrew Kelley
c5f1b3224f
CI: update_download_page: change docs deployment
...
The original impetus for making a change here was a typo in --add-header
causing the script to fail. However, upon inspection, I was alarmed that
we were making a --recursive upload to the *root directory* of
ziglang.org. This could result in garbage files being uploaded to the
website, or important files being overwritten. As I addressed this concern,
I decided to take on file compression as well.
Removed compression prior to sending to S3. I am vetoing pre-compressing
objects for the following reasons:
* It prevents clients from working which do not support gzip encoding.
* It breaks a premise that objects on S3 are stored 1-to-1 with what is
on disk.
* It prevents Cloudflare from using a more efficient encoding, such as
brotli, which they have started doing recently.
These systems such as Cloudflare or Fastly already do compression on
the fly, and we should interop with these systems instead of fighting them.
Cloudfront has an arbitrary limit of 9.5 MiB for auto-compression. I looked
and did not see a way to increase this limit. The data.js file is currently
16 MiB. In order to fix this problem, we need to do one of the following things:
* Reduce the size of data.js to less than 9.5 MiB.
* Figure out how to adjust the Cloudfront settings to increase the max size
for auto-compressed objects.
* Migrate to Fastly. Fastly appears to not have this limitation. Note
that we already plan to migrate to Fastly for the website.
2022-08-31 13:15:42 -07:00
Andrew Kelley
9a0cb34c73
CI: namespace manifest json files to avoid clobbering
2022-08-31 13:15:21 -07:00