LemonBoy
ce65533985
std: Properly fix the TLS alignment problem
...
ad05509 introduced a fix for the wrong problem, the logic to align the
start of main_thread_tls_buffer was already there but was flawed.
Fix it for good and avoid wasting too many bytes for alignment purposes.
2020-12-18 14:22:30 -05:00
Andrew Kelley
ad05509930
std: align(16) main_thread_tls_buffer
...
Before this change, thread local variables were landmines if LLVM
decided to optimize any writes to them using vector instructions.
2020-12-17 22:58:56 -07:00
Alexandros Naskos
16144a7a37
Add EV_ERROR to FreeBSD bits
2020-12-17 22:58:05 +02:00
Isaac Freund
fa09c3a5e7
stage2: print package path on --pkg-begin failure
...
This makes it much easier for the user to figure out what has gone wrong
than dumping an error return trace.
2020-12-17 20:03:15 +01:00
Isaac Freund
c102eb83e6
stage2: free Package resources
...
Without this commit we leak file descriptors and memory
2020-12-17 19:32:40 +01:00
Tau
9b86dde7b9
Add baudrate constants
...
This adds the missing baudrate constants for linux where I've used them
directly.
2020-12-17 19:17:10 +02:00
Luuk de Gram
d73f46b57c
Fix StackFallbackAllocator
2020-12-17 19:09:29 +02:00
Josh Holland
e93cb22541
Improve documentation for string slices.
...
Closes #7454 .
2020-12-17 19:01:13 +02:00
Dmitry Atamanov
e16997a66c
Add process_madvise to Linux syscalls ( #7450 )
2020-12-17 18:58:09 +02:00
LemonBoy
135f4791e5
std: Don't hash undefined bits
...
auto_hash must be extra careful when hashing integers whose bit size is
not a multiple of 8 as, when reinterpreted with mem.asBytes, may contain
undefined non-zero bits too.
2020-12-17 12:00:48 +01:00
Alexandros Naskos
85cc3f24a0
Only check for evented mode in windows.OpenFile when in async mode
2020-12-17 11:08:21 +02:00
Jakub Konka
b42ef0e6ea
macho: refactor calculating LEB128 sizes
2020-12-17 10:04:53 +01:00
Jakub Konka
3e9e79378d
macho: deduplicate libc headers between macos arch
2020-12-17 10:04:53 +01:00
Jakub Konka
2d5d661703
macho: no need to parse symbol/string tables
2020-12-17 10:04:53 +01:00
Jakub Konka
ae535111a4
macho: cleanup (lazy) binding info tables
2020-12-17 10:04:53 +01:00
Jakub Konka
5e913c9c2c
macho: move (lazy)binding tables into imports module
2020-12-17 10:04:53 +01:00
Jakub Konka
46b2a08d06
macho: parse binding info into a table of entries
2020-12-17 10:04:53 +01:00
Jakub Konka
77e545892e
macho: do not error out on unknown load commands
...
Also, do not try to fixup missing libSystem for dylibs.
2020-12-17 10:04:53 +01:00
Jakub Konka
b099fdff93
macho: parse symbol and string tables
2020-12-17 10:04:53 +01:00
Jakub Konka
f5a0b9315b
macho: calculate next available dylib ordinal
2020-12-17 10:04:53 +01:00
Jakub Konka
cc2592969d
macho: clean up formatting
2020-12-17 10:04:53 +01:00
Jakub Konka
3971522fee
macos: add unfiltered aarch64 libc headers
2020-12-17 10:04:53 +01:00
Jakub Konka
2e7883c597
lld+macho: lld xcomp to x86_64 macos now works
2020-12-17 10:04:53 +01:00
Jakub Konka
eb528a9cbc
lld+macho: add missing LC_LOAD_DYLIB cmd
2020-12-17 10:04:53 +01:00
Andrew Kelley
6dfe9cc83e
zig cc: default to a.exe on windows
...
This matches Clang. Thanks to Abner Coimbre for pointing this out.
2020-12-16 21:37:15 -07:00
Andrew Kelley
8975fa5b38
stage2: add test_evented_io to cache hash
2020-12-16 19:22:48 -07:00
data-man
d877eb0e8d
Fix typo in math.order
2020-12-16 12:14:44 +02:00
Veikka Tuominen
d3a57b96a9
translate-c: detect parenthesized string literals
2020-12-16 12:13:23 +02:00
Alexandros Naskos
aa6654a4b3
Fix compilation for MacOS
2020-12-16 00:47:41 +02:00
Andrew Kelley
b3c1ced2c3
Merge pull request #7431 from LemonBoy/fix-7426
...
stage1: Fix crash in can_mutate_comptime_var_state
2020-12-15 15:07:49 -05:00
Christian Wesselhoeft
b3f4802aa0
mingw-w64: add .def files for xaudio2_8
2020-12-15 15:00:39 -05:00
luna
0c33624a45
create SendToError ( #7417 )
...
* add SendToError
* remove error catch
* add missing SendToError entries
* add mappings to new errors for posix
* map windows sendto() errors
2020-12-15 14:56:42 -05:00
LemonBoy
5f7352b5b5
stage2: Add -include libc-symbols.h when building crtn.S
...
This -include is added for nearly every file in glibc's makefiles.
2020-12-15 14:53:46 -05:00
Sébastien Marie
96e3222796
openbsd: crt0.o file is different when build static or dynamic mode
...
it is a first step for support static *and* dynamic mode for openbsd
2020-12-15 14:53:23 -05:00
Sébastien Marie
8bf5a3a5c1
openbsd: correct few structs
...
- addrinfo: addr and canonname are switched (wrong layout)
- addrinfo, Flock, msghdr struct: use proper c_xxx type instead of fixed size. it should help using struct on all architectures supported by openbsd
2020-12-15 14:49:42 -05:00
Sebastien Marie
7cd6c25c8f
openbsd: link with required system libraries ( #7380 )
...
* openbsd: use -lpthread when linking
and while compiling zig stage2, use c++ and c++abi too
2020-12-15 14:45:48 -05:00
LemonBoy
8a2ab60fca
stage1: Don't skip steps when analyzing union types
...
Don't cut any corner and properly run the type trough every single step
even though it has no fields (or, better, the sum of the size of all its
fields is zero).
Fix the logic to consider an explicit non-zero-sized tag enough to treat
the type as sized.
Closes #7451
2020-12-15 14:40:21 -05:00
LemonBoy
9e5869262a
std: Bool has no definite representation too
...
The padding bits are undefined.
2020-12-14 20:06:46 +01:00
LemonBoy
44556bfebe
std: non-byte-multiple sized integers have no definite representation
...
Closes #7445
2020-12-14 20:06:46 +01:00
Alexandros Naskos
da007f318b
Implement std.fs.Watch on Windows
...
Use unmanaged containers in std.fs.Watch
2020-12-14 21:03:50 +02:00
Alexandros Naskos
5112ab8233
Fixed std.fs.Watch implementation on Linux
...
Added .Deleted event to std.fs.Watch on Linux
2020-12-14 21:00:54 +02:00
LemonBoy
bbfa3550a0
Add a test case
...
Co-authored-with: Vexu <git@vexu.eu>
2020-12-14 17:39:35 +01:00
data-man
8591f30b0d
Add missed Linux syscalls
2020-12-14 18:22:28 +02:00
Jakub Konka
91e8be385c
Merge pull request #7411 from LemonBoy/sigaction-smoke
...
std: Improve sigaction interface
2020-12-14 17:16:55 +01:00
LemonBoy
a471a57560
std: Fix formatting of type values
...
Closes #7429
2020-12-13 23:21:23 -05:00
Isaac Freund
343249efd8
stage2: use %type not @type for libc stubs
...
Apparently ARM uses @ for comments. Everything seems to accept % here
though.
2020-12-13 23:19:23 -05:00
Andrew Kelley
481ce7361e
bump version to 0.7.0 => 0.7.1
...
The official tag is in the 0.7.x branch.
2020-12-13 12:53:31 -07:00
LemonBoy
d9e9390550
Fix compilation error on OpenBSD
2020-12-13 20:36:47 +01:00
LemonBoy
bb72b0e800
Fix compilation error on FreeBSD
2020-12-13 20:36:34 +01:00
LemonBoy
561565fa81
stage1: Fix crash in can_mutate_comptime_var_state
...
No lazy value can mutate global state, no need to resolve them.
Closes #7426
2020-12-13 20:27:04 +01:00