diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-21 14:44:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-21 14:44:14 -0500 |
| commit | 1066004b79d014b4c3d10da19c84c679e21b88e5 (patch) | |
| tree | db8c1c83788a624d1fab720073255e8c556d59a0 /src/os.cpp | |
| parent | 2bb795dc455823e76ef3e0c9b3fcee6bcb15fddb (diff) | |
| download | zig-1066004b79d014b4c3d10da19c84c679e21b88e5.tar.gz zig-1066004b79d014b4c3d10da19c84c679e21b88e5.zip | |
better handling of arrays in packed structs
* Separate LoadPtr IR instructions into pass1 and pass2 variants.
* Define `type_size_bits` for extern structs to be the same as
their `@sizeOf(T) * 8` and allow them in packed structs.
* More helpful error messages when trying to use types in
packed structs that are not allowed.
* Support arrays in packed structs even when they are not
byte-aligned.
* Add compile error for using arrays in packed structs when the
padding bits would be problematic. This is necessary since
we do not have packed arrays.
closes #677
Diffstat (limited to 'src/os.cpp')
0 files changed, 0 insertions, 0 deletions
