Commit Graph

184211 Commits

Author SHA1 Message Date
Mishal Shah
d0b0592c74 Merge pull request #85285 from swiftlang/maxd/xfail-wasilibc-al2023
[6.2.1] disable `wasilibc_function.swift` as failing on AL2023
2025-11-03 16:44:12 -08:00
Mishal Shah
1cc9dcd57b Merge pull request #85278 from al45tair/add-fatal-error-6.2.1
[Observation] Add threading fatal error handler.
2025-11-03 16:40:08 -08:00
Max Desiatov
a9a72744d9 Delete test/embedded/wasm/wasilibc_functions.swift 2025-11-03 19:31:02 +00:00
Max Desiatov
26295c88c1 Mark the test as UNSUPPORTED 2025-11-03 16:23:41 +00:00
Max Desiatov
a031b3e8ee XFAIL wasilibc_function.swift as failing on Amazon Linux 2023 2025-11-03 16:09:51 +00:00
Alastair Houghton
a0c424622a [Observation] Add threading fatal error handler.
When the Threading library experiences a fatal error, we need to
tell it what to do.
2025-11-03 15:53:39 +00:00
Andrew Sukach
68a26d1f11 XFAIL Interop/cxx/stdlib/use-std-function.swift on Amazon Linux 2023
(cherry picked from commit 1a144932a7)
(cherry picked from commit a6d356d9a9)
2025-11-01 09:55:43 -07:00
Mishal Shah
64d688f85e Merge pull request #84532 from al45tair/eng/PR-161391330-6.2.1
[Linux][Backtracing] Don't try to use `process_vm_readv()`.
2025-09-26 13:20:24 -07:00
Alastair Houghton
9739a2f5d4 [Linux][Backtracing] Don't try to use process_vm_readv().
We used to try to use `process_vm_readv()` if `CAP_SYS_PTRACE` is
enabled.  This avoided using signal handlers to catch crashes when
we try to read through an invalid pointer, but it complicates the
code and it turns out not to work on some Linux kernels where
the `process_vm_readv()` syscall is unavailable.

rdar://159930644
2025-09-26 09:02:22 +01:00
Owen Voorhees
7e49c05e8c Merge pull request #84441 from owenv/owenv/6.2.1-rpath
[6.2.1]Update OS versions requiring stdlib OS rpaths
2025-09-25 14:30:18 -07:00
Owen Voorhees
ff41798687 Update OS versions requiring stdlib OS rpaths 2025-09-22 11:52:44 -07:00
Max Desiatov
c36e33ea7a [6.2.1] Embedded Wasm: enable import WASILibc (#84396)
**Explanation**: Cherry-pick of #83792, merged as 450cb14597
WASILibc wasn't built for the embedded stdlib in `stdlib/public/Platform/CMakeLists.txt`. New `copy_wasilibc_modulemap_embedded_resource` and `embedded-stdlib-platform-${triple}` targets are added, the latter for `wasm32-unknown-wasip1` only for now. Also added a `wasilibc_functions.swift` test to verify the result.
**Scope**: limited to Embedded Swift for Wasm;
**Risk**: low due to limited scope;
**Testing**: added new lit test to the existing Embedded Swift test suite;
**Issue**: rdar://157467412
**Reviewer**: @bnbarham
2025-09-19 14:14:32 -07:00
Mishal Shah
c110c9570f Merge pull request #83809 from finagolfin/cross-tools
[6.2.1][build] Make it possible to build a cross-compilation toolchain for Android, including Testing
2025-09-18 09:10:48 -07:00
Mishal Shah
1a09c139fa Merge pull request #84304 from bnbarham/bump-wasmkit-6.2.1
[6.2.1] Bump wasmkit 6.2.1
2025-09-17 08:30:57 -07:00
Ben Barham
05783f077b Bump wasmkit to 0.1.6 for 6.2.1
(cherry picked from commit f2e654d7e1)
2025-09-15 12:15:47 -07:00
Mishal Shah
99eea239bf Merge pull request #81342 from swiftlang/maxd/bump-wasmkit-6.2
6.2: Bump WasmKit in `update-checkout-config.json` to 0.1.6

(cherry picked from commit 5bae58a1cf)
2025-09-15 12:12:09 -07:00
John McCall
a19d493c03 Merge pull request #84248 from rjmccall/complete-metadata-for-concurrency-builtins-6.2.1
[6.2.1] Fix IRGen to pass complete metadata to various concurrency builtins
2025-09-12 10:23:55 -04:00
John McCall
75f228040c Fix IRGen to pass complete metadata to various concurrency builtins
Fixes rdar://146155888
2025-09-11 20:06:41 -04:00
Charles Zablit
4bb6b284ce Merge pull request #84166 from charles-zablit/charles-zablit/windows/move-llvm-overrides-to-llvm-repo
🍒 [windows] move llvm test overrides to the llvm-project repository
2025-09-11 21:57:28 +01:00
Adrian Prantl
9d4c48070b Merge pull request #84197 from charles-zablit/charles-zablit/demangling/make-printRoot-virtual
🍒 [demangling] make printRoot virtual
2025-09-11 09:06:37 -07:00
Adrian Prantl
b09d2cad32 Merge pull request #84176 from charles-zablit/charles-zablit/update-checkout/add-locked-repository-check-to-6.2
🍒 [update-checkout] add a check for locked repositories
2025-09-10 10:06:41 -07:00
Charles Zablit
710fe1b150 [demangling] make printRoot virtual 2025-09-10 11:29:07 +01:00
Gábor Horváth
fb8dbf9eba Merge pull request #84164 from Xazax-hun/func-ptr-is-not-fragile-on-6.2.1
[6.2.1][cxx-interop] Do not consider function types fragile
2025-09-09 17:57:27 +01:00
Charles Zablit
47da1dcc2e [update-checkout] add a check for locked repositories 2025-09-09 17:35:50 +01:00
Charles Zablit
e48c9a42f7 [windows] move llvm test overrides to the llvm-project repository 2025-09-09 11:23:52 +01:00
Gábor Horváth
816290f0cd [6.2.1][cxx-interop] Do not consider function types fragile
Explanationion: Function pointer types wee always considered fragile in C++ mode,
this manifested as a regression when interfacing with glibc.
Issues: rdar://159184118
Original PRs: #84040
Risk: Low, this only removes a spurious error for library evolution.
Testing: Added a compiler test.
Reviewers: @egorzhdan
2025-09-09 09:55:52 +01:00
Artem Chikin
174636c7c9 Merge pull request #84111 from artemcm/62_1_DepScanWorkersNoShareDiagEngine
[6.2.1 🍒][Dependency Scanning] Give each scanner worker a unique Diagnostic Engine
2025-09-08 12:14:23 -04:00
Charles Zablit
de9d44168d Merge pull request #84125 from charles-zablit/charles-zablit/windows/fix-arm64-build-error-to-6.2
🍒 [windows] update to the 6.1.2 toolchain in build.ps1
2025-09-08 11:58:10 +01:00
Charles Zablit
0e7694683a [windows] update to the 6.1.2 toolchain in build.ps1 2025-09-05 16:17:00 +01:00
Konrad `ktoso` Malawski
d76b070efd Merge pull request #84067 from swiftlang/pick-6.2.1-nonisolatednonsending-by-default-and-nondistributed 2025-09-05 16:05:27 +09:00
Konrad Malawski
7713dec67d [Distributed] We're currently not using this isDistributedThunk func 2025-09-05 08:35:17 +09:00
Dario Rexin
8177a6a21a Merge pull request #84008 from drexin/wip-159143492-6.2.1
[6.2.1][IRGen] Fix computation of spare bits for fixed arrays
2025-09-04 13:25:55 -07:00
eeckstein
e35a45f7b7 Merge pull request #83965 from eeckstein/fix-simplify-alloc-stack-apply-6.2.1
[6.2.1] Optimizer: fix handling of dependent existential archetypes in `alloc_stack` and `apply` simplification
2025-09-04 17:18:22 +02:00
eeckstein
d7ff11b2c4 Merge pull request #83966 from eeckstein/fix-combine-apply-of-convertfunction-6.2.1
[6.2.1] SILCombine: fix `convert_function` -> `apply` peephole for generic function types
2025-09-04 10:25:54 +02:00
Artem Chikin
dbf15f9c09 [6.2][Dependency Scanning] Give each scanner worker a unique Diagnostic Engine
Otherwise, when multiple workers encounter a diagnostic simultaneously we can encounter races which lead to corrupted diagnostic data or crashes

Resolves rdar://159598539
2025-09-03 12:32:10 -07:00
Dario Rexin
8dc35c846c [IRGen] Fix computation of spare bits for fixed arrays
rdar://159143492

Previously all bits after the spare bits of the first element were marked as spare bits. This caused enum tags to be stored in bits used by the payload.
2025-09-03 10:26:04 -07:00
Konrad Malawski
9524c10a43 [Concurrency/Distributed] ensure distributed thunks are @concurrent
Otherwise the "nonisolated nonsending by default" mode blows up as
distributed thunk signatures dont match expectations.

This undoes the fix from https://github.com/swiftlang/swift/pull/83940
and applies the fix on the synthesis side of the distributed thunks,
such that they are @concurrent always -- which keeps their old semantics
basically, regardless of what "default" mode we have.
2025-09-03 19:00:03 +09:00
Konrad Malawski
4c283e5959 [Concurrency/Distributed] nonisolated-nonsending by default breaks distributed thunks
the new NonisolatedNonsendingByDefault upcoming feature breaks remote
calls in distributed actors, because the expected isolation doesn't
match and the runtime swift_distributed_execute_target_resume will
crash.

This is a short term fix to unblock adopters, however preferably we
should mark the thunks as nonisolated(nonsending), though that seems to
be more involved.

resolves rdar://159247975
2025-09-03 08:21:05 +09:00
Mishal Shah
cd0a1513ad Merge pull request #83938 from swiftlang/shahmishal/update-6.2.1-runtime-version
[6.2.1] Update the runtime version to 6.2
2025-09-02 10:04:38 -07:00
nate-chandler
3c1c195500 Merge pull request #83995 from nate-chandler/cherrypick/release/6.2.1/rdar158149082
6.2.1: [AllocBoxToStack] Don't destroy in dead-ends.
2025-08-29 16:35:54 -07:00
Nate Chandler
5851dcb971 [MemoryLifetimeVerifier] Permit leaks in dead-ends 2025-08-28 19:08:41 -07:00
Nate Chandler
eb9f5b2a92 [AllocBoxToStack] Don't destroy in dead-ends.
It is valid to leak a value on paths into dead-end regions.
Specifically, it is valid to leak an `alloc_box`.  Thus, "final
releases" in dead-end regions may not destroy the box and consequently
may not release its contents.  Therefore it's invalid to lower such final
releases to `dealloc_stack`s, let alone `destroy_addr`s.  The in-general
invalidity of that transformation results in miscompiling whenever a box
is leaked and its projected address is used after such final releases.

Fix this by not treating final releases as boundary markers of the
`alloc_box` and not lowering them to `destroy_addr`s and
`dealloc_stack`s.

rdar://158149082
2025-08-28 19:08:41 -07:00
Mishal Shah
df5b356e7e Merge pull request #83929 from charles-zablit/charles-zablit/windows/update-to-3.10.1
🍒 [windows] upgrade to Python 3.10.1
2025-08-28 10:32:33 -07:00
Pavel Yaskevich
6e34c90c39 [6.2.1][TypeCheckEffects] AbstractFunction: Parameter types should be mapped… (#83954)
… into context

- Explanation:

Parameter type could be represented by an associated type which is bound
to a concrete type by an extension, `AbstractFunction::getType()` should
map it into context before returning because the construct is that it
always produces a function type.

- Resolves: rdar://156955193

- Main Branch PR: https://github.com/swiftlang/swift/pull/83687

- Risk: Low. This is a very narrow fix that only affects situations when
parameter type, represented by an associated type, is bound by an
extension.

- Reviewed By: @DougGregor 

- Testing: Added new test-cases to the suite.

(cherry picked from commit 32b97d0e2a)
(cherry picked from commit 7f652915d9)

<!--
If this pull request is targeting a release branch, please fill out the
following form:

https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1

Otherwise, replace this comment with a description of your changes and
rationale. Provide links to external references/discussions if
appropriate.
If this pull request resolves any GitHub issues, link them like so:

  Resolves <link to issue>, resolves <link to another issue>.

For more information about linking a pull request to an issue, see:

https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
-->

<!--
Before merging this pull request, you must run the Swift continuous
integration tests.
For information about triggering CI builds via @swift-ci, see:

https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci

Thank you for your contribution to Swift!
-->
2025-08-28 09:59:27 -07:00
Erik Eckstein
36d2549bf4 SILCombine: fix convert_function -> apply peephole for generic function types
Currently we cannot deal with generic arguments/returns. Bail in this case.

Fixes a compiler crash
rdar://158809851
2025-08-28 07:29:53 +02:00
Erik Eckstein
fb80d0349c Optimizer: fix handling of dependent existential archetypes in alloc_stack and apply simplification
When replacing an opened existential type with the concrete type, we didn't consider that the existential archetype can also be a "dependent" type of the root archetype.
For now, just bail in this case. In future we can support dependent archetypes as well.

Fixes a compiler crash.
rdar://158594365
2025-08-28 07:17:54 +02:00
Erik Eckstein
62e4cfbea7 AST: add Type.interfaceTypeOfArchetype and some related APIs 2025-08-28 07:17:54 +02:00
Erik Eckstein
e84228baf4 Swift AST: add some Type APIs 2025-08-28 07:17:53 +02:00
Mishal Shah
b3e7c68bcd Update Runtimes/Supplemental/StringProcessing/CMakeLists.txt to 6.2.1 2025-08-27 14:39:24 -07:00
Mishal Shah
4e8f952ff5 Update Runtimes/Overlay/CMakeLists.txt to 6.2.1 2025-08-27 14:39:13 -07:00