Andrew Kelley
93545fe74f
zig cc: detect more linker args
...
* --whole-archive, -whole-archive
* --no-whole-archive, -no-whole-archive
* -s, --strip-all
* -S, --strip-debug
2022-02-02 21:46:28 -07:00
Meghan
8ed432fe3c
std.crypto.random: Randoms are no longer passed by reference
2022-02-02 21:46:22 -07:00
Andrew Kelley
148b963a60
Merge pull request #10584 from ziglang/macho-rustc-fixes
...
zld: a couple of fixes which result in better rustc support
2022-02-02 21:45:44 -07:00
Sizhe Zhao
b713ce0249
Avoid duplicate TLS startup symbols
2022-02-02 21:25:40 -07:00
Pablo Santiago Blum de Aguiar
4d5a598599
readUntilDelimiter*: read only if buffer not full
...
Ref.: #9594
2022-02-02 21:25:03 -07:00
fifty-six
aa8112c847
std/fs: Support XDG_DATA_HOME
...
This is generally used for user-specific data on linux, with the
default being ~/.local/share
2022-02-02 21:24:40 -07:00
joachimschmidt557
3d52a322ab
std: Add some missing termios types to c/linux.zig and os.zig
2022-02-02 21:23:34 -07:00
Andrew Kelley
af844d865f
stage1: remove the "referenced here" error note
...
It's generally noise. The parts where it is useful will need to be
redone to not be annoying for the general case.
2022-02-02 21:22:57 -07:00
Jakub Konka
252fb642d5
macho: do not write out ZEROFILL physically to file
...
Prior to this change, `__DATA,__bss` and `__DATA,__thread_bss` would
get actually, physically written out to the output file, unnecessarily
filling the output file with 0s.
2022-02-02 21:22:15 -07:00
Daniel Saier
dcbab17b62
glibc: fix passing of __GNU_MINOR__
...
This was originally introduced in 4d48948b52
but broken immediately afterwards in c8af00c66e .
2022-02-02 21:19:42 -07:00
C-BJ
881e507ac5
Update CONTRIBUTING.md
...
Delete unavailable content!
2022-02-02 21:19:36 -07:00
Andrew Kelley
18fabd99cc
Merge pull request #10475 from lithdew/master
...
lld: allow for entrypoint symbol name to be set
2022-02-02 21:19:18 -07:00
John Schmidt
afd1f7ed47
Implement segfault handler for macOS x86_64
2022-02-02 21:18:45 -07:00
riverbl
2ac7aefe2f
stage2: do not interpret identifier containing underscores (eg: u3_2) as int primitive type
2022-02-02 21:17:25 -07:00
johnLate
bb9399cc5d
Fix os.rusage when linking with c library on Linux
...
Fixes ziglang#10543 on Linux.
2022-02-02 21:17:15 -07:00
riverbl
bc90a2a083
translate-c: Fix issues translating macro define of hex float constant
...
* Fix incorrect result when the first digit after the decimal point is not 0-9 - eg 0x0.ap0
* Fix compiler panic when the number starts with `0X` with a capital `X` - eg 0X0p0
* Fix compiler panic when the number has a decimal point immediately after `0x` - eg 0x.0p0
2022-02-02 21:15:15 -07:00
Jakub Konka
1e6de105c8
Merge branch 'Jarred-Sumner-patch-1'
2022-02-02 21:14:59 -07:00
Jakub Konka
385b7e4808
Merge pull request #10576 from schmee/macos-resolve-ip
...
Use libc if_nametoindex for macOS when parsing IPs
2022-02-02 21:12:24 -07:00
Jakub Konka
57d7ad9172
macho: code signature needs to be 16 bytes aligned
2022-02-02 21:10:23 -07:00
Andrew Kelley
e67e15a29a
Merge pull request #10587 from xxxbxxx/master
...
restore compatibility with glibc<=2.33 for global initializers
2022-02-02 21:10:05 -07:00
Marc Tiehuis
06ae13fe35
stage1: fix bigint_init_bigfloat for single-limb negative floats
...
Fixes #10592 .
2022-02-02 21:09:36 -07:00
Jakub Konka
dafbc6eb25
Merge branch 'Luukdegram-linker-eport-symbols'
2022-01-12 12:01:32 -07:00
Andrew Kelley
6f49233ac6
Merge pull request #10572 from Luukdegram/wasm-linker-stack
...
Stage2: wasm-linker - Place stack at the beginning of the linear memory
2022-01-12 12:00:03 -07:00
riverbl
bb8eef8d24
translate-c: Fix macro define of float constant using scientific notation
...
Fixes compiler attempting to use null value when translating macro define of float constant using scientific notation with no decimal point
2022-01-12 11:59:30 -07:00
afranchuk
511990c83b
Fix a bug in std.Thread.Condition and add a basic Condition test. ( #10538 )
...
* Fix FUTEX usage in std.Thread.Condition - It was using an old name.
2022-01-12 11:59:09 -07:00
Andrew Kelley
9fa55ae777
Merge pull request #10566 from fifty-six/master
...
std.os.uefi improvements/fixes
2022-01-12 11:59:02 -07:00
Evan Haas
53e41682ba
translate-c: Handle typedef'ed void return type for functions.
...
Fixes #10356
2022-01-12 11:58:42 -07:00
Jakub Konka
3542dcad33
zig cc: integration with sysroot arg ( #10568 )
...
Prior to this change, even if the use specified the sysroot on the
compiler line like so
```
zig cc --sysroot=/path/to/sdk
```
it would only be used as a prefix to include paths and not as a prefix
for `zig ld` linker.
2022-01-12 11:58:36 -07:00
djg
9b97edb012
std: hash_map: optimize isFree/isTombstone ( #10562 )
...
- Add an `Metadata.isFree` helper method.
- Implement `Metadata.isTombstone` and `Metadata.isFree` with `@bitCast` then comparing to a constant. I assume `@bitCast`-then-compare is faster than the old method because it only involves one comparison, and doesn't require bitmasking.
- Summary of benchmarked changes (`gotta-go-fast`, run locally, compared to master):
- 3/4 of the hash map benchmarks used ~10% fewer cycles
- The last one (project Euler) shows 4% fewer cycles.
2022-01-12 11:58:24 -07:00
Jakub Konka
1c61038255
Build fs/filesystem libcxx module when targeting GNU Win
2022-01-12 11:57:40 -07:00
Meghan Denny
73cbc13a97
std: fix zig.Ast being called Tree internally
2022-01-12 11:56:45 -07:00
r00ster
adf7c654d4
Add missing package to the langref that's always available
2022-01-12 11:56:10 -07:00
Ryan Liptak
2304dbaba4
Add CANNOT_DELETE as a possible error in os.windows.DeleteFile
...
Can happen when e.g. trying to delete a file with the Read Only flag set
2022-01-12 11:54:31 -07:00
Andrew Kelley
675590cd44
Merge pull request #10499 from paulsnar/paulsnar/stage1-packed-structs-cabi
...
stage1: Fix LLVM C ABI type resolution for small packed structs
2022-01-12 11:54:04 -07:00
Vincent Rischmann
4d38f456ea
io_uring: improve IO_Uring.copy_cqe
...
copy_cqes() is not guaranteed to return as many CQEs as provided in the
`wait_nr` argument, meaning the assert in `copy_cqe` can trigger.
Instead, loop until we do get at least one CQE returned.
This mimics the behaviour of liburing's _io_uring_get_cqe.
2022-01-12 11:53:42 -07:00
Andrew Kelley
8771ef897a
readme: dynamic logo light/dark
2022-01-12 11:53:28 -07:00
Jimmi Holst Christensen
1676729c66
fmt: Refactor parsing of placeholders into its own function
...
This saves on comptime format string parsing, as the compiler caches
comptime calls. The catch here, is that parsePlaceHolder cannot take the
placeholder string as a slice. It must take it as an array by value for
the caching to occure.
There is also some logic in here that ensures that the specifier_arg is
always them same slice when the items they contain are the same. This
makes the compiler stamp out less copies of formatType.
2022-01-12 11:53:07 -07:00
Vincent Rischmann
eee395287f
io_uring: fix version check in tests
...
For renameat, unlinkat, mkdirat, symlinkat and linkat the error code
differs between kernel 5.4 which returns EBADF and kernel 5.10 which returns EINVAL.
Fixes #10466
2022-01-12 11:52:11 -07:00
r00ster
419499b252
std.fmt: improve @compileError message
2022-01-12 11:51:26 -07:00
Marian Beermann
47e3deeeaa
stage1: fix @errorName null termination
2022-01-12 11:51:10 -07:00
Frank Denis
c4b4192d20
Y++
2022-01-12 11:50:57 -07:00
Tom Manner
64a2b14f26
Fixed typo in deprecation error for E format specifier where it would instead complain about a specifier of X.
2021-12-31 14:23:59 -07:00
Veikka Tuominen
9a0010b186
stage1: fix access of slice sentinel at comptime
2021-12-31 14:23:49 -07:00
Ali Chraghi
b86aadfa38
std: Skip comptime struct fields in mem.zeroes() ( #10406 )
...
closes #9934
2021-12-31 14:22:38 -07:00
Dante Catalfamo
4d9377923d
Add BSD Authentication constants ( #10376 )
2021-12-31 14:21:22 -07:00
Stephen Lumenta
cfc00e743e
fix expectStringEndsWith error output.
...
before it started outputting the actual starting, not ending characters.
2021-12-31 14:20:09 -07:00
Jonathan S
f5cb3fc688
Only check the file's length once in pdb.Msf.init
2021-12-31 14:20:02 -07:00
ominitay
acdb859644
Fix dead link
2021-12-31 14:19:36 -07:00
John Schmidt
20f073dcdd
Langref: replace mentions of c_void with anyopaque
2021-12-31 14:19:11 -07:00
Andrew Kelley
69e2b712bc
start the 0.9.1 release cycle
2021-12-31 14:17:52 -07:00