Tadeo Kondrak
65016dff32
Add test for implicit extern-allowed enum tag type in extern struct
2020-10-01 18:10:20 -06:00
Tadeo Kondrak
cae49b1b9d
Add tests for enums with explicit extern-allowed tag types in extern types
2020-10-01 18:09:47 -06:00
Tadeo Kondrak
61ce72a38c
Allow enums with explicit extern-allowed tag types in extern types
...
Closes https://github.com/ziglang/zig/issues/1467
2020-10-01 18:09:15 -06:00
Tadeo Kondrak
183d1d4ba1
Switch TypeInfo.Fn.alignment to comptime_int from u29
...
All integers in TypeInfo are intentionally comptime_int:
https://github.com/ziglang/zig/issues/1683
2020-10-01 18:01:41 -06:00
Tadeo Kondrak
96a151d4b8
Skip @Type/@typeInfo Fn/BoundFn tests on wasm32/wasm64
2020-10-01 18:01:40 -06:00
Tadeo Kondrak
e18fdc12b0
stage1: Implement @Type for Fn and BoundFn
2020-10-01 18:01:38 -06:00
Tadeo Kondrak
97ab720d84
stage1: Add alignment to TypeInfo.Fn
2020-10-01 17:59:42 -06:00
Alexandros Naskos
0228887b94
Merge pull request #6428 from tadeokondrak/alignment-typeinfo-struct-union
...
Add alignment field to TypeInfo.UnionField and TypeInfo.StructField
2020-10-02 02:56:18 +03:00
Nathan
84b6d2a80a
Resolved additional formatting issues.
2020-10-01 18:03:34 -04:00
Nathan
5e3ce11b18
Resolve name and format issues.
2020-10-01 17:47:32 -04:00
Alexandros Naskos
a4fe438d39
std.fmt.comptimePrint: bufPrint cannot return an error
2020-10-02 00:39:19 +03:00
Alexandros Naskos
49c0cd6e8e
Merge pull request #6481 from MasterQ32/stage1_error_return_trace
...
Adds error return trace printing to stage1
2020-10-02 00:22:24 +03:00
Tadeo Kondrak
362c87f1aa
Update std.meta.ArgsTuple for alignment in StructField/UnionField
2020-10-01 15:06:24 -06:00
Tadeo Kondrak
ec8f0777f2
Update std.meta.Tuple for alignment in StructField/UnionField
2020-10-01 15:06:23 -06:00
Tadeo Kondrak
e187ac09cb
Update compile error tests for alignment in StructField/UnionField
2020-10-01 15:06:21 -06:00
Nathan
1bc197bc02
Merge
2020-10-01 17:06:15 -04:00
Nathan Bourgeois
4566b27373
Patch in emit relocs support
2020-10-01 17:04:04 -04:00
Tadeo Kondrak
a12203d2be
Switch TypeInfo alignment fields from u29 to comptime_int
2020-10-01 15:01:28 -06:00
Tadeo Kondrak
70c507911a
Update @Type tests for alignment field in UnionField and StructFIeld
2020-10-01 15:01:27 -06:00
Tadeo Kondrak
c2ee66108c
Add tests for alignment field in UnionField and StructFIeld
2020-10-01 15:01:26 -06:00
Tadeo Kondrak
d81648ce8c
Add alignment field to TypeInfo.UnionField and TypeInfo.StructField
...
Closes https://github.com/ziglang/zig/issues/6122
2020-10-01 15:01:25 -06:00
Tadeo Kondrak
77df5dae7f
Make builtin.TypeInfo.Pointer.alignment u29 instead of comptime_int
2020-10-01 15:01:24 -06:00
Alexandros Naskos
5acf2a5068
Merge pull request #6419 from tadeokondrak/std.fmt.comptimePrint
...
std.fmt: add comptimePrint
2020-10-01 23:59:00 +03:00
Nathan Bourgeois
5c84f9dad4
Patch in emit relocs support
2020-10-01 15:57:19 -04:00
markfirmware
1296e4a857
Update build.zig
2020-10-01 15:27:08 -04:00
markfirmware
8acfcf4e0d
Update build.zig
...
Fixes #6477
2020-10-01 13:15:35 -04:00
Alexandros Naskos
bf0afaa876
std.event.Loop.runDetached should be pub
2020-10-01 16:50:05 +03:00
Alexandros Naskos
beda6f2299
Merge pull request #6455 from kristoff-it/event-loop-go
...
add runDetached to event loop
2020-10-01 15:57:02 +03:00
LemonBoy
212171643c
stage2: Add missing defines for building dllcrt2.o
...
Closes #6482
2020-10-01 11:39:22 +02:00
LemonBoy
1b2d50737a
mingw: Add user32.def for 32bit Windows
...
Closes #6479
2020-10-01 11:27:59 +02:00
Alexandros Naskos
b358c28171
Merge pull request #6461 from tadeokondrak/type-enum-invalid-tag-type
...
stage1: Fix @Type(.Enum) with invalid tag_type
2020-10-01 11:19:02 +03:00
Felix (xq) Queißner
2a3393eff8
Adds error return trace printing to stage1.
2020-10-01 09:40:03 +02:00
Frank Denis
97fd0974b9
ghash: add pclmul support on x86_64
2020-10-01 02:05:11 +02:00
Frank Denis
8161de7fa4
Implement ghash aggregated reduction
...
Performance increases from ~400 MiB/s to 450 MiB/s at the expense of
extra code. Thus, aggregation is disabled on ReleaseSmall.
Since the multiplication cost is significant compared to the reduction,
aggregating more than 2 blocks is probably not worth it.
2020-10-01 02:05:07 +02:00
Frank Denis
f1ad94437b
ghash & poly1305: use pointer to slices for keys and output
2020-10-01 02:04:30 +02:00
Frank Denis
58873ed3f9
std/crypto: add GHASH implementation
...
GHASH is required to implement AES-GCM.
Optimized implementations for CPUs with instructions for carry-less
multiplication will be added next.
2020-10-01 02:04:30 +02:00
Alexandros Naskos
4eb390b157
Merge pull request #6457 from Snektron/fix-arraylistunmanaged
...
Fix std.ArrayListUnmanaged + improve test coverage
2020-10-01 00:09:45 +03:00
Andrew Kelley
718a659773
std: skip some tests that stage1 leaks too much memory with
...
We can restore these when we have self-hosted available.
This is intended to address #6467
2020-09-30 12:37:00 -07:00
Alexandros Naskos
82f0ede3ad
Added some c_allocator.deallocate calls
2020-09-30 19:59:49 +03:00
Vexu
6d3858dc8a
stage2: use directory handles for imports
2020-09-30 18:03:10 +03:00
Alexandros Naskos
cb5d290f33
Added a few ZigList deinit calls
2020-09-30 17:09:18 +03:00
Vexu
d819da4350
stage2: support multiple files in tests
2020-09-30 17:00:57 +03:00
Vexu
e246fe0f5b
stage2: detect changes in imported files
2020-09-30 17:00:55 +03:00
Vexu
e2cf2e015b
stage2: struct type field access
2020-09-30 16:59:09 +03:00
Vexu
7d910b024b
stage2: very basic imports
2020-09-30 16:59:08 +03:00
Vexu
20ae15917c
stage2: add import builtin stub
2020-09-30 16:56:45 +03:00
Tadeo Kondrak
e903b00eec
stage1: Fix @Type(.Enum) with invalid tag_type
...
Fixes https://github.com/ziglang/zig/issues/6459
2020-09-30 07:02:38 -06:00
Andrew Kelley
7067764ed3
Merge remote-tracking branch 'origin/master' into llvm11
...
The changes to install_files.h needed to put into src/libcxx.zig
2020-09-30 02:55:41 -07:00
Andrew Kelley
fe117d9961
Merge pull request #6250 from ziglang/stage2-zig-cc
...
move `zig cc`, `zig translate-c`, `zig libc`, main(), and linking from stage1 to stage2
2020-09-30 04:28:19 -04:00
Andrew Kelley
3249e5d952
MachO: add the same workaround for no -r LLD flag support
...
This is the MachO equivalent for the code added to COFF for doing the
file copy when the input and output are both just one object file.
2020-09-30 01:04:30 -07:00