Commit graph

21093 commits

Author SHA1 Message Date
Jacob Young
6e30359894 zig.h: fix disastrous typo 2023-01-09 14:52:21 -07:00
Andrew Kelley
77c583b4c9 std.os.test: disable flaky timerfd test
See tracking issue #13721
2023-01-09 14:51:55 -07:00
Andrew Kelley
fb7ca1ad48 Sema: fix merge conflict regarding identifiers matching primitives 2023-01-09 14:51:03 -07:00
Veikka Tuominen
aa7e65d5ba Merge pull request #13719 from Vexu/debug
Improve debuggability of programs built by the self hosted compiler
2023-01-09 14:48:00 -07:00
Andrew Kelley
c2ad78922a std.os.windows.ReadLink: add missing alignment of local data buffer 2023-01-09 14:47:00 -07:00
Andrew Kelley
9d214f6f9d LLVM: fix canElideLoad behavior with loops
closes #13546
2023-01-09 14:46:40 -07:00
Jakub Konka
3b892f4316 libstd: skip problematic tests on aarch64-windows 2023-01-09 14:46:14 -07:00
Jakub Konka
fa30458e84 Merge pull request #13701 from ziglang/arm-win-more-features
Improve aarch64 feature detection based on the readouts from privileged system registers
2023-01-09 14:46:09 -07:00
Jakub Konka
0313426ce8 Merge pull request #13625 from kcbanner/windows_disable_symlink_tests
Skip linker tests requiring symlinks on Windows
2023-01-09 14:45:49 -07:00
Jakub Konka
970b7efec7 aarch64-windows: skip failing standalone tests 2023-01-09 14:45:40 -07:00
Jakub Konka
282c54a9c9 aarch64-windows: skip failing align behavior test 2023-01-09 14:45:26 -07:00
Jakub Konka
1f61a00a41 Merge pull request #13659 from ziglang/arm-win-cpu-features
windows: add native CPU and features detection for Armv8 chips
2023-01-09 14:45:21 -07:00
Veikka Tuominen
3357425b87 llvm: improve emitted debug info
* ensure parameter debug info is in the subroutine di scope
* slit sub file path into basename and dirname

Closes #12257
Closes #12665
2023-01-09 14:44:53 -07:00
Ryan Liptak
5404d06ea9 os.windows.OpenFile: Add USER_MAPPED_FILE as a possible error
Ran into this when using a program that uses CreateFileMapping and then trying to call `std.fs.createFile` on the mapped file. More info can be found here:

https://stackoverflow.com/questions/41844842/when-error-1224-error-user-mapped-file-occurs

Before:

```
error.Unexpected NTSTATUS=0xc0000243
C:\Users\Ryan\Programming\Zig\zig\lib\std\os\windows.zig:138:40: 0x7ff74e957466 in OpenFile (test.exe.obj)
        else => return unexpectedStatus(rc),
                                       ^
```

After:

```
FAIL (AccessDenied)
C:\Users\Ryan\Programming\Zig\zig\lib\std\os\windows.zig:137:30: 0x7ff7f5b776ea in OpenFile (test.exe.obj)
        .USER_MAPPED_FILE => return error.AccessDenied,
                             ^
```
2023-01-09 14:44:34 -07:00
zooster
f986cb1f90 std.Thread.Futex.PosixImpl.Address.from: fix alignment type
Fixes #13673
2023-01-09 14:44:14 -07:00
Jacob Young
2f11de4f51 std.big.int.Mutable: fix set(@as(DoubleLimb, 0))
Previously, this would set len to 1 but fail to initialize any limbs.
2023-01-09 14:44:09 -07:00
notcancername
e5d76176b9 document std.heap.StackFallbackAllocator 2023-01-09 14:44:05 -07:00
Igor Anić
76c729c967 stdlib: remove flaky test
fixes ziglang#13660
2023-01-09 14:43:43 -07:00
Andrew Kelley
82b8689122 CI: move some stuff to the website repo 2023-01-09 14:43:38 -07:00
Andrew Kelley
d824471489 disable spuriously failing std lib test case
see tracking issue #13660
2023-01-09 14:43:33 -07:00
Cody Tapscott
fff7f15fb8 std.os: Fix std.os.chdir for WASI
Test coverage was lacking for chdir() on WASI, allowing this to
regress.

This change makes os.chdir() compile again, and improves the test
logic to use our standard CWD support for WASI.
2023-01-09 14:43:29 -07:00
Veikka Tuominen
b75197ef88 Merge pull request #13637 from Vexu/stage2-fixes
Stage2 bug fixes
2023-01-09 14:42:52 -07:00
Matt Chudleigh
ddfcf0246e Bug fix: Prevent uninitialized parse nodes
If a parse node is reserved but never set the node remains
uninitialized and can crash tools doing a linear scan of the nodes
(like ZLS) when switching on the tag.
2023-01-09 14:42:42 -07:00
Loris Cro
c4cac21b72 ci: remove manual run feature 2023-01-09 14:42:29 -07:00
Loris Cro
1d34eafe6c ci: windows: fetch before checking out specific commit 2023-01-09 14:42:26 -07:00
Loris Cro
71355ef0e2 ci: windows: unshallow repository before checking specific commit 2023-01-09 14:42:22 -07:00
Loris Cro
a6e7c43136 ci: give name to manually run workflows 2023-01-09 14:42:19 -07:00
Loris Cro
a10417ae00 ci: windows: prevent del errors when the directory doesn't exist 2023-01-09 14:42:16 -07:00
Loris Cro
708a936b88 ci: windows: use correct windows powershell syntax 2023-01-09 14:42:10 -07:00
Loris Cro
dac5189f31 ci: when running the workflow manually, preserve newer ci folder
This is the main way this feature is supposed to work:

1. you discover that a test started failing at some point
   but a misconfiguration in the CI script didn't catch that
   causing a bunch of false negative (ie false green) CIs
   over time
2. you fix the script and now want to figure out when the
   test started failing
3. you want to rebuild older commits, potentially only on specific
   targets, but with the new fixed CI script that correctly
   catches failures

This is what this commit enables
2023-01-09 14:42:06 -07:00
Loris Cro
b97fb48a6f ci: fix syntax error in workflow file 2023-01-09 14:42:01 -07:00
Loris Cro
7a70b22cfb ci: introduce support for manual runs on specific commit & targets 2023-01-09 14:41:57 -07:00
Loris Cro
e6d0edc888 ci: windows: add missing check to last test 2023-01-09 14:41:51 -07:00
sv99
26614d9dcc add arm-features.h from glibc source (#12346) 2023-01-09 14:41:47 -07:00
Loris Cro
8c94b98e9f ci: remove gh action job output as it's not used anymore 2023-01-09 14:41:37 -07:00
Andrew Kelley
05afb3f358 Merge pull request #13632 from ziglang/cbe 2023-01-09 14:40:44 -07:00
Loris Cro
703552e253 ci: cancel pending CI jobs when a PR gets updated 2023-01-09 14:40:32 -07:00
Loris Cro
3adbe0afa3 ci: fix zig executable path to obtain zig version 2023-01-09 14:40:27 -07:00
Andrew Kelley
99f2ce5e91 Merge pull request #13577 from ianic/issue-12877
stdlib: fix condition variable broadcast FutexImpl
2023-01-09 14:39:20 -07:00
Andrew Kelley
89a491a1d5 CI: fix wrong path name in x86_64-linux release script
I verified that the script will pass with this change.
2023-01-09 14:39:02 -07:00
Loris Cro
779674aaca ci: only run CI on pull requests and master branch pushes
To get the CI to run on branches other than master, create a corresponding PR.
2023-01-09 14:38:57 -07:00
Andrew Kelley
60242d6210 CI: disable building docs on x86_64-linux debug
See tracking issue #13546
2023-01-09 14:38:51 -07:00
Veikka Tuominen
7d812dc1c7 llvm: fix x86_64 sysV ABI of big vectors on avx512 enabled CPUs
Closes #13629
2023-01-09 14:38:35 -07:00
Andrew Kelley
6b1f99dd33 Merge branch 'ci-secure' 2023-01-09 14:38:28 -07:00
Andrew Kelley
090eb347a4 disable failing C ABI test
see tracking issue #13629
2023-01-09 14:38:19 -07:00
Jakub Konka
58d4d083ea value: account for undef value for ptr in slice in hashUncoerced 2023-01-09 14:38:04 -07:00
Andrew Kelley
30e09270fb CI: add missing backslash 2023-01-09 14:37:49 -07:00
Andrew Kelley
e1da555148 CI: fix wrong directory paths 2023-01-09 14:37:43 -07:00
Andrew Kelley
9dd1899e43 CI: fix wrong lib dir path 2023-01-09 14:37:39 -07:00
Andrew Kelley
5f23b65901 CI: build from old zig on x86_64-linux debug
This is to work around OOM on the CI server. Once #13560 is complete,
we can avoid having to replace the tarballs so often.
2023-01-09 14:37:35 -07:00