https://github.com/apple/swift

sort by:
Revision Author Date Message Commit Date
9067148 Merge pull request #70324 from finagolfin/release/5.9 04 January 2024, 06:44:52 UTC
260cec9 Bump the Swift version to 5.9.2 for Windows toolchain script 10 December 2023, 09:49:32 UTC
2f95a7c [Backtracing][Android] Fix armv7 build 08 December 2023, 16:39:54 UTC
9d03337 Merge pull request #70093 from compnerd/59-curl-https [5.9] backport missing 5.9.1 changes and re-enable HTTPS in curl 29 November 2023, 22:52:24 UTC
ca44d73 build: enable HTTPS for CURL again Adjust the flags for the updated CURL version. It seems that we accidentally disabled HTTPS support in the CURL builds with the last update. This is required for `URLSession` and `URLRequest` to support HTTPS. 29 November 2023, 16:43:50 UTC
335760c Update build-windows-toolchain.bat Copy the devtools MSI to the artifacts location. 29 November 2023, 16:40:42 UTC
c27174e Update Windows Toolchain script to use Swift 5.9.1 and Curl 8.4.0 29 November 2023, 16:39:27 UTC
12b4d45 Merge pull request #69848 from ktoso/wip-disable-test 5.9 Disable test on watch async_taskgroup_next_on_pending.swift 17 November 2023, 03:36:25 UTC
35274c0 Merge pull request #69932 from artemcm/DisableFailingInterfaceHash Disable `InterfaceHash/edited_{method_body|property_getter}.swift` 17 November 2023, 03:31:59 UTC
b89c6de Disable 'InterfaceHash/edited_{method_body|property_getter}.swift' 16 November 2023, 22:52:27 UTC
2515793 Merge pull request #69861 from ahoppen/ahoppen/5.9/cherry-pick-alastairs-fix [5.9][Backtracing] Fix ARM64e build failure. 15 November 2023, 18:34:00 UTC
6a522d0 Merge pull request #69845 from al45tair/eng/PR-118379429-5.9 [Backtracing] Make sure we print the program counter on ARM64 linux. 14 November 2023, 19:00:15 UTC
2dc8975 [Backtracing] Fix ARM64e build failure. Accessing the thread context structures is complicated because their member variables change name depending on various macros. This caused a build failure for ARM64e. rdar://118402226 14 November 2023, 17:50:15 UTC
d3b5330 Disable test on watch async_taskgroup_next_on_pending.swift 14 November 2023, 12:25:18 UTC
79085ae [Backtracing] Make sure we print the program counter on ARM64 linux. On Linux, the right macro for detecting ARM64 is `__aarch64__`, not `__arm64__`. rdar://118379429 14 November 2023, 08:25:58 UTC
61f4b78 Merge pull request #69815 from etcwilde/ewilde/cherry-test-diff Use diff instead of cmp 13 November 2023, 21:51:23 UTC
14ea0c1 Merge pull request #69774 from al45tair/eng/PR-118055527-5.9 [Backtracing] Add an indication that we're working on a backtrace. 13 November 2023, 17:54:50 UTC
91b7920 Use diff instead of cmp We're seeing some flakiness in this test, but aren't sure what it's complaining about. `cmp` only says where the differencewas, but doesn't print what was different. `diff` prints what was difference so we have a chance to figure out what happened. 13 November 2023, 17:07:01 UTC
0250c2e [Backtracing] Fix macOS test failure. Apparently I forgot to code sign the test binaries. rdar://118055527 13 November 2023, 10:23:26 UTC
17eb08a [Backtracing] Add some more tests. Add tests for the new immediate on-crash message and the backtrace timing message. rdar://118055527 10 November 2023, 10:58:06 UTC
2ac8460 [Backtracing] Massage the output a little in various cases. We shouldn't try to erase the message when in non-color mode; mostly that's intended for redirected output scenarios anyway, and in that case we don't really want garbage in the output. Also, improve the failure messages when the backtracer itself goes wrong or can't be executed. Finally, change the behaviour slightly so that *if* we're explicitly enabled, *and* the backtracer path wasn't explicitly specified, *and* we can't find the backtracer, we print a warning on start-up. We don't do that in any other case because we don't want spurious warnings everywhere. rdar://118055527 10 November 2023, 10:20:10 UTC
72f8aae [Backtracing] Add an indication that we're working on a backtrace. When we crash, emit a message straight away that says we're working on a backtrace. If starting the backtracer fails, report that also. Finally, add a duration to the messages output by the backtracer, so that we can see how long it took. rdar://118055527 10 November 2023, 10:20:09 UTC
ddd3522 Merge pull request #69612 from al45tair/eng/PR-117470489-5.9 [Linux] Disable fatalError() backtraces when the runtime backtracer is active. 09 November 2023, 17:54:01 UTC
ce23dfd Merge pull request #69720 from al45tair/eng/PR-117681625-5.9 [Backtracing] Add a caching wrapper for MemoryReader. 09 November 2023, 14:30:57 UTC
8cac036 [Backtracing] Fix a Windows build issue. When backtracing is disabled, don't try to refer to `_swift_backtraceSettings`. rdar://117470489 08 November 2023, 16:06:50 UTC
54d9db0 [Backtracing] Fix rebasing mistake. When I rebased, I didn't get the FileImageSource code quite right. rdar://117681625 08 November 2023, 14:09:08 UTC
cc2d0c0 [Backtracing] Fix a few niggles. It turns out that .copyBytes() checks that the source doesn't provide more bytes than the destination will accept. rdar://117681625 08 November 2023, 14:09:08 UTC
f0e7ff6 [Backtracing] Add a precondition to protect against problems in future. Because the cache uses the page addresses as its keys, we should have a precondition to check that we haven't passed an address within a page. The latter would result in confusing behaviour so it's worth diagnosing up front. rdar://117681625 08 November 2023, 14:09:08 UTC
cf43150 [Backtracing] Add a caching wrapper for MemoryReader. Currently we read many small chunks from the process we're backtracing. If it so happens that it's the local process, that isn't really a big problem, but if it's a remote process, especially on Linux where we have to use the memory server, it's probably a little slow. Fix by adding a caching layer. rdar://117681625 08 November 2023, 14:09:08 UTC
6c7638f Merge pull request #69368 from hjyamauchi/release59 Fix a round trip debug type failure with typealias 08 November 2023, 11:14:35 UTC
fc38a5d Merge pull request #69636 from al45tair/eng/PR-117900760-5.9 [Backtracing][Linux] Handle inaccessible memory properly in Docker. 06 November 2023, 18:36:06 UTC
70b1f01 Merge pull request #69602 from al45tair/eng/PR-117590155-5.9 [Linux] Improve backtracer ELF/DWARF parsing performance. 06 November 2023, 18:33:05 UTC
49e270a [Linux] Improve the bounds checks. It was pointed out that there was a more Swift-y way to write the bounds checks for the `fetch<T>` implementation, so do that instead. rdar://117590155 03 November 2023, 14:23:10 UTC
9207697 [Backtracing][Linux] Handle inaccessible memory properly in Docker. Thanks to a missing `-` sign, we were returning garbage rather than indicating that the memory region in question was inaccessible. This mainly affects register dumps (since that's the time we expect to have to cope with out-of-bounds reads). rdar://117900760 03 November 2023, 11:16:21 UTC
287c1d7 [Backtracing] Disable backtracer for Runtime/backtrace test. The Runtime/backtrace test is a test of the fatalError() backtracer, which gets turned off when we have the new backtracer enabled. So, to make this test work, we need to turn off the new backtracer. rdar://117470489 02 November 2023, 15:56:37 UTC
3a96c5f [Linux] Disable fatalError() backtraces when the runtime backtracer is active. There's no need for fatalError() to try to generate its own backtraces when the runtime's backtracer is enabled. Not only is the code it uses more fragile but it also doesn't support async or inline frames and it can't look-up symbols properly either. rdar://117470489 02 November 2023, 15:56:37 UTC
c5e5c79 [Linux] Don't keep the file descriptor for FileImageSource. We don't really need it after calling `mmap()`, and not keeping it around means it's easy to make sure it gets closed properly in all cases. rdar://117590155 02 November 2023, 11:40:20 UTC
49c7731 [Linux] Improve backtracer ELF/DWARF parsing performance. On Linux we use FileImageSource to read data from ELF images. We were doing this in a fairly naive manner, which turns out to be a performance issue with larger statically linked binaries on Linux. Change FileImageSource to use mmap() instead. rdar://117590155 02 November 2023, 11:40:20 UTC
7f85215 Merge pull request #69462 from slavapestov/fix-extended-existential-metadata-weak-5.9 IRGen: Weak-link references to swift_getExtendedExistentialTypeMetadata() [5.9] 28 October 2023, 01:48:15 UTC
04ebd16 IRGen: Weak-link references to swift_getExtendedExistentialTypeMetadata() Fixes rdar://117530421. 27 October 2023, 19:19:10 UTC
a1607c7 Merge pull request #69448 from DougGregor/member-conformance-list-for-real-5.9 27 October 2023, 16:30:50 UTC
4e42dac [Macros] Make sure we actually pass the conformance list to member macros A bad test let this trivial bug through. Improve the test, fix the bug. Fixes rdar://117227204. 26 October 2023, 21:16:41 UTC
b7e884b Fix a round trip debug type failure with typealias When checking equality of types with existential types removed, recursively remove existential types inside an existential type. Fixes: #66554 Cherrypick https://github.com/apple/swift/commit/fda6f9b62febaba0620469a901de4168df47e27e 24 October 2023, 16:27:27 UTC
5836709 Merge pull request #69345 from rintaro/5.9-macros-visitauxiliary-toplevel [5.9][Macros] Improve visitation of auxiliary decls 24 October 2023, 05:01:14 UTC
668e8fd Merge pull request #69204 from rintaro/5.9-cmake-abi-name-rdar116951101 [5.9][build-script] Add module ABI name prefix to swift-syntax libraries 24 October 2023, 02:58:06 UTC
13ce4cc [Macros] Improve visitation of auxiliary decls Use the same pattern as 'getAllMembers()'. This supports nested macro expansion: ``` std::function<void(Decl *)> visit; visit = [&](Decl *d) { doIt(d); d->visitAuxiliaryDecls(visit); }; for (auto *d : decls) visit(d); ``` Don't visit auxiliary decls in `PrintAST::visit(Decl *)` this function is only intended for single decl printing. The caller should visit them separately. For that, add `ModuleDecl::getTopLevelDeclsWithAuxiliaryDecls()` (cherry picked from commit 6f5283ebfc5bfe6426641297566864f2943a1490) (cherry picked from commit 03bf34977835c4f080495c5cf50b22a1362b8bea) (cherry picked from commit 55144fb302c3f2caa583d35904fb431ec04fbe2d) 23 October 2023, 23:37:00 UTC
0aa61d7 Merge pull request #69274 from al45tair/eng/PR-116790881-disable-test-5.9 [Test][Backtracing] Disable FatalError test for macOS. 20 October 2023, 13:45:33 UTC
b64742d [Test][Backtracing] Only disable FatalError for macOS. Actually, we only need to disable this for macOS. It should be fine on Linux. 19 October 2023, 14:36:56 UTC
84eb121 [Test][Backtracing] Disable FatalError test temporarily. Some CI nodes currently cause this test to fail because of outdated software. Disable it for now. 19 October 2023, 14:36:56 UTC
1ad818b [build-script] Add module ABI name prefix to swift-syntax libraries Add 'Compiler' prefix to ABI names of swift-syntax libraries so that compiler libraries (e.g. sourcekitdInProc) can be used from binaries linking with swift-syntax (e.g. via SwiftPM) https://github.com/apple/swift/issues/68812 rdar://116951101 16 October 2023, 23:23:42 UTC
2f52082 Merge pull request #69171 from apple/compnerd/5.9-lld Update build-windows-toolchain.bat 13 October 2023, 22:44:31 UTC
70df9e7 Update build-windows-toolchain.bat Backport the change for linker defaults to 5.9 13 October 2023, 17:02:53 UTC
08fcede Merge pull request #69018 from al45tair/eng/PR-116584708-5.9 [Test][Backtracing] Make FatalError test more lenient. 06 October 2023, 17:23:11 UTC
41e6ac2 [Test][Backtracing] Make FatalError test more lenient. Somehow since this passed PR testing, `Builtin.int_trap()` has changed from generating `SIGILL` to `SIGTRAP`. Accept either. rdar://116584708 06 October 2023, 17:09:56 UTC
89af128 Merge pull request #68987 from al45tair/eng/PR-116112040-5.9 [Linux] Enable frame pointers when building Swift libraries. 06 October 2023, 07:36:31 UTC
7b3b44b Merge pull request #68981 from DougGregor/faster-find-buffer-containing-loc-5.9 06 October 2023, 04:13:53 UTC
c295389 [Backtracing][Tests] Tweak the new fatalError test slightly. The test needs tweaking a little to work on Linux and macOS. rdar://116112040 05 October 2023, 17:06:05 UTC
d767cf4 [Linux] Enable frame pointers when building Swift libraries. Turn on frame pointers for the Swift runtime libraries. This makes backtraces that go through the runtimes more reliable without having to parse DWARF data. rdar://116112040 05 October 2023, 15:15:54 UTC
cedf408 [Source manager] Improve the performance of findBufferContainingLocInternal() This function was performing a linear scan through the set of known buffers to find the buffer containing a given source location. This linear scan can show up in hot loops, and the number of buffers in a program is increasing due to macros, so this has become a performance problem. Replace the linear scan with a logarithmic lookup into a sorted vector of the buffer IDs, with a one-element most-recently-used cache so that repeated lookups in the same buffer require constant time. This mirrors what we already do with source files in a module. Unfortunately, we cannot reuse that code because there is no link from buffers to source files. We should look to consolidate this in the future. Fixes rdar://116184248. 05 October 2023, 12:16:17 UTC
3e48b96 Merge pull request #68949 from mikeash/reflectioncontext-data-auth-segments-5.9 [5.9][Reflection] Look for __AUTH segments as well as __DATA segments. 04 October 2023, 15:39:14 UTC
7e7878b [5.9][Reflection] Look for __AUTH segments as well as __DATA segments. Some data is stored in __AUTH, which we need to add to our list of data segments so that `ownsAddress` works correctly. rdar://116363531 (cherry picked from commit 238d1cdc6c34916f9740e75d7c8d17a6b72bc37b) 03 October 2023, 20:58:21 UTC
31617e1 Merge pull request #68905 from al45tair/eng/PR-115278959-5.9 [Linux] Provide a statically linked swift-backtrace binary. 03 October 2023, 16:25:47 UTC
56ac44a [Build] Don't create a separate target for the object file directory. When building Swift sources, don't make a separate target for the object file directory, because it may end up with the same name as would be generated by another invocation of `handle_swift_sources`. Instead, add the command to make the directory to the custom target that actually does the build, which should have a unique name. rdar://115278959 03 October 2023, 10:38:21 UTC
d153769 Merge pull request #68879 from apple/add-5.9.1-scheme-to-release-5.9 [5.9] [Update Checkout] Add 5.9.1 scheme to release 5.9 02 October 2023, 22:52:20 UTC
2cbfaad [Linux] Make sure we link with swiftrt on ELF/COFF platforms. This was causing `swift-backtrace` to crash when linked with the static version of the runtime, because the runtime then couldn't locate any of the necessary metadata. rdar://115278959 02 October 2023, 10:19:03 UTC
2ba67d0 [Linux] Provide a statically linked swift-backtrace binary. This adds a new binary, `swift-backtrace-static`, to the build. The runtime will not by default use this binary as the backtracer, but if you want to statically link your own binaries against the standard library you can copy `swift-backtrace-static` rather than `swift-backtrace` alongside your binary, naming it `swift-backtrace`, and the runtime should find and use it, which will mean you don't need to have `libswiftCore.so` et al installed. rdar://115278959 02 October 2023, 10:19:02 UTC
2ed84e7 Merge pull request #68836 from bnbarham/fix-windows-wix-extraction [5.9][Build] Do not error if wix already exists 29 September 2023, 22:59:55 UTC
d946b42 Move the Swift 5.9.0 scheme to 5.9.1 (cherry picked from commit 130c16c6d2afbc5460db7faa6a9b77de2fb4fe7e) 29 September 2023, 21:33:19 UTC
db3132a Merge pull request #68745 from apple/egorzhdan/5.9-revert-nsnotificationname Revert "🍒[cxx-interop] Look up `NSNotificationName` in C++ language mode properly" 29 September 2023, 17:55:22 UTC
0fd343f Merge pull request #68855 from hyp/eng/revert-ns-options-x2-5.9 [5.9] revert "Revert "Revert "[cxx-interop] Import custom NS_OPTIONS correctly""" 29 September 2023, 17:25:56 UTC
ed1650e Revert "Revert "Revert "[cxx-interop] Use up-to-date definition of `CF_OPTIONS` in tests""" This reverts commit 6a3defdfb0ef65503b08ee7aa06044a55801b954. 29 September 2023, 01:51:51 UTC
1885036 Revert "Revert "Revert "[cxx-interop] Import custom `NS_OPTIONS` correctly""" This reverts commit f7c2257f51b55a9025f98f732f91373e764dcdab. 29 September 2023, 01:51:50 UTC
301ef41 Revert "[cxx-interop] Refactor: do not rely on Clang module importer being available" This reverts commit 6a2f10a38848674bde476ddfe0743cc333bdbb51. 29 September 2023, 01:51:49 UTC
0814c1d [Build] Do not error if wix already exists Cherry-pick of 56d350cc1e8eda4ce9989bc773322492fa6bf40d to ensure we don't fail if wix already exists. 28 September 2023, 18:29:58 UTC
102c60b Merge pull request #68743 from bnbarham/compnerd-59-windows-no-subst [5.9] Enable macros on Windows 28 September 2023, 16:53:34 UTC
0a8d0e8 Merge pull request #68799 from al45tair/eng/PR-116105222-5.9 [Linux] Make the backtracing symbol reference conditional. 28 September 2023, 10:42:28 UTC
5d8f4b3 [Linux] Make the backtracing symbol reference conditional. On the LSan builds, we disable the backtracer, which results in a link error because we completely remove the code from libswiftCore. rdar://116105222 27 September 2023, 09:00:20 UTC
d1553c9 [Test] Add xfail for failing test 5.9 has been running builds in CI without failing when tests failed, xfail the only failing test. 27 September 2023, 04:15:04 UTC
c9a5a05 Merge pull request #68670 from al45tair/eng/PR-115774613-5.9 [Linux] Force the inclusion of the backtracing code when static linking. 26 September 2023, 21:16:09 UTC
2aeec43 Use llvm's abs_path_preserve_drive (#68038) (cherry picked from commit 136642c167abdf197711c9349e2987ac97eb8f6d) 25 September 2023, 23:36:14 UTC
fea49fd Remove realpath in lit site config. (cherry picked from commit 7d13da43ded184e85d4ae6f83b9c08fe2279cb4e) 25 September 2023, 20:45:10 UTC
3442077 Revert "[cxx-interop] Look up `NSNotificationName` in C++ language mode properly" This reverts commit 62bc51bbc7517f9423e0492fb36e11fbaede146f. 25 September 2023, 19:06:11 UTC
254feac Fix silent test failures in the Windows CI 25 September 2023, 18:46:24 UTC
8c88f0f Update lit.cfg 25 September 2023, 18:46:24 UTC
c62d41d Update build-windows-toolchain.bat 25 September 2023, 18:46:24 UTC
8fc3b7f Update build-windows-toolchain.bat 25 September 2023, 18:46:24 UTC
3b76bda Update build-windows-toolchain.bat 25 September 2023, 18:46:24 UTC
390f6e7 Update build-windows-toolchain.bat try a more recent toolchain 25 September 2023, 18:46:24 UTC
422008e Update build-windows-toolchain.bat 25 September 2023, 18:46:24 UTC
e201aa0 Update build-windows-toolchain.bat 25 September 2023, 18:46:24 UTC
4d64f27 build: enable macros during the build Use WiX to extract a future toolchain to allow building the macros support when building the toolchain. We build swift-syntax and now wire that into the build itself. 25 September 2023, 18:46:24 UTC
a415e2c [Linux][Test] Use import-static-libdispatch not import-libdispatch. We want the static version of Dispatch here. If we don't use that version, we'll fail the tests on the release branches (but strangely not on main for some reason). rdar://115774613 25 September 2023, 16:47:06 UTC
90ac9c8 [Linux][Build] Use host swiftrt.o when in HOSTTOOLS mode. When we're building with host tools, we should use the host's swiftrt.o and not the one we've just built when we're trying to build tools that we will run on the host system. rdar://115774613 22 September 2023, 15:03:16 UTC
ecf0423 Merge pull request #68622 from apple/egorzhdan/5.9-reland-nsoptions 🍒Revert "Revert "[cxx-interop] Import custom `NS_OPTIONS` correctly"" 21 September 2023, 17:33:42 UTC
4ea0d20 [Linux] Force the inclusion of the backtracing code when static linking. When we're statically linking the standard library, we need to force the inclusion of the backtracing code in the runtime, otherwise we don't get on-crash backtraces. Also, add a test to make sure that this works. rdar://115774613 21 September 2023, 14:42:06 UTC
49fe7f7 Merge pull request #68653 from hamishknight/nestless-5.9 [5.9] [Sema] Catch invalid if/switch exprs in more places 21 September 2023, 06:34:53 UTC
5e7b70b [test] Fix-up test for 5.9 20 September 2023, 16:45:21 UTC
e846570 [Sema] Catch invalid if/switch exprs in more places Move out-of-place SingleValueStmtExpr checking into `performSyntacticExprDiagnostics`, to ensure we catch all expressions. Previously we did the walk as a part of Decl-based MiscDiagnostics, but it turns out that can miss expressions in property initializers, subscript default arguments, and custom attrs. This does mean that we'll now no longer diagnose out-of-place if/switch exprs if the expression didn't type-check, but that's consistent with the rest of MiscDiagnostics, and I don't think it will be a major issue in practice. We probably ought to consider moving this checking into PreCheckExpr, but that would require first separating out SequenceExpr folding, which has other consequences, and so I'm leaving as future work for now. 20 September 2023, 15:28:28 UTC
157e488 [Sema] Allow implicit nodes to wrap if/switch expressions Previously we would only look through a handful of AST node types when determining if an if/switch expression is in a valid position. However this doesn't handle cases where we synthesize code around an if/switch expression, such as `init(erasing:)` calls. As such, relax the logic such that it can look through any implicit expression. rdar://113435870 20 September 2023, 15:26:30 UTC
abe28dc Merge pull request #68638 from augusto2112/5.9-dont-trust-external-cache Don't trust the external cache when looking for field descriptors 20 September 2023, 15:23:25 UTC
back to top