21032 Commits

Author SHA1 Message Date
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
Andrew Kelley
8bbb4a2f81 disable failing arm-linux non-llvm backend tests
See #13623
2023-01-09 14:37:30 -07:00
Andrew Kelley
8f2bb38a09 CI: fix wrong tarball name for aarch64-linux 2023-01-09 14:37:26 -07:00
Andrew Kelley
d27007cd7e CI: switch to GitHub Actions
This is a merge commit.
2023-01-09 14:37:20 -07:00
Andrew Kelley
2bbaf95ebe Merge pull request #11828 from devins2518/arm-atomics
compiler_rt: aarch64 outline atomics
2023-01-09 14:36:40 -07:00
Veikka Tuominen
a3232c6764 Merge pull request #13585 from Vexu/stage2-fixes
Stage2 bug fixes
2023-01-09 14:35:42 -07:00
joachimschmidt557
10a660ebea stage2 ARM: misc fixes
- remove redundant `new` from `binOpRegisterNew` name
- fix mul_with_overflow
2023-01-09 14:35:32 -07:00
David Gonzalez Martin
9498c95faf uefi: Delete unneeded alignment and use default 4K
Closes #7484. Right now for UEFI targets an alignment
of 32 is being used for no reason other than support
a rare bytecode. As this is far from the standard case,
removing this alignment and using the default one,
as most toolchains do, should be the desired behavior.
2023-01-09 14:35:21 -07:00
Andrew Kelley
06dfa88d3f fix CPU model detection for neoverse_n1 on aarch64-linux
see #10086
2023-01-09 14:34:40 -07:00
Veikka Tuominen
da418ee0af translate-c: cast unsuffixed floats to f64 2023-01-09 14:34:05 -07:00
Guillaume Wenzek
58ac0082d2 compute LLVMTypes in ParamTypeIterator (#13592)
follow up on #13376 - fixes a bug in the x86_64 C ABI. 

Co-authored-by: Veikka Tuominen <git@vexu.eu>
2023-01-09 14:33:43 -07:00
Guillaume Wenzek
4428e3837c add C ABI tests with double
const DC = extern struct { v1: f64, v2: u8 };
const CFF = extern struct { v1: u8, v2: f32, v3: f32 };
const PD = extern struct { v1: ?*anyopaque, v2: f64 };

Signed-off-by: Guillaume Wenzek <gwenzek@users.noreply.github.com>
2023-01-09 14:33:27 -07:00