Skip to content

Commit ebad9ea

Browse files
committed
Make pointer bounds non-experimental
1 parent da5caa5 commit ebad9ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1
-105
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,6 @@ option(SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
747747
"Enable experimental SwiftParser validation by default"
748748
FALSE)
749749

750-
option(SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS
751-
"Enable experimental safe wrappers around external functions"
752-
FALSE)
753-
754750
cmake_dependent_option(SWIFT_BUILD_SOURCEKIT
755751
"Build SourceKit" TRUE
756752
"SWIFT_ENABLE_DISPATCH" FALSE)
@@ -1403,7 +1399,6 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
14031399
message(STATUS "Observation Support: ${SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION}")
14041400
message(STATUS "Synchronization Support: ${SWIFT_ENABLE_SYNCHRONIZATION}")
14051401
message(STATUS "Volatile Support: ${SWIFT_ENABLE_VOLATILE}")
1406-
message(STATUS "Pointer Bounds Support: ${SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS}")
14071402
message(STATUS "")
14081403
else()
14091404
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")

Runtimes/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# Catalyst Support
2929
# -- Will need shadow invocations to generate swiftmodules for Swift parts
3030
# Install *.abi.json, swiftdoc, and swiftsourceinfo
31-
# Pointer bounds (SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS)
3231

3332
cmake_minimum_required(VERSION 3.26...3.29)
3433

include/swift/Option/Options.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,6 @@ def enable_experimental_concise_pound_file : Flag<["-"],
792792
Flags<[FrontendOption, ModuleInterfaceOption]>,
793793
HelpText<"Enable experimental concise '#file' identifier">;
794794

795-
def enable_experimental_bounds_safety_interop :
796-
Flag<["-"], "enable-experimental-bounds-safety-interop">,
797-
Flags<[NoDriverOption, FrontendOption, HelpHidden, ModuleInterfaceOption]>,
798-
HelpText<"Enable experimental C bounds safety interop code generation and config directives">;
799-
800795
def enable_experimental_cxx_interop :
801796
Flag<["-"], "enable-experimental-cxx-interop">,
802797
Flags<[NoDriverOption, FrontendOption, HelpHidden]>,

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,6 @@ function(_add_target_variant_swift_compile_flags
326326
list(APPEND result "-D" "SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION")
327327
endif()
328328

329-
if(SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS)
330-
list(APPEND result "-D" "SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS")
331-
endif()
332-
333329
if(SWIFT_ENABLE_SYNCHRONIZATION)
334330
list(APPEND result "-D" "SWIFT_ENABLE_SYNCHRONIZATION")
335331
endif()

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ split_embedded_sources(
230230
EMBEDDED Int128.swift
231231
EMBEDDED Mirror.swift
232232
NORMAL PlaygroundDisplay.swift
233+
EMBEDDED PointerBounds.swift
233234
NORMAL CommandLine.swift
234235
EMBEDDED SliceBuffer.swift
235236
EMBEDDED StaticBigInt.swift
@@ -263,11 +264,6 @@ if(SWIFT_STDLIB_ENABLE_VECTOR_TYPES)
263264
list(APPEND SWIFTLIB_EMBEDDED_GYB_SOURCES SIMDConcreteOperations.swift.gyb SIMDVectorTypes.swift.gyb)
264265
endif()
265266

266-
if (SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS)
267-
list(APPEND SWIFTLIB_SOURCES PointerBounds.swift)
268-
list(APPEND SWIFTLIB_EMBEDDED_SOURCES PointerBounds.swift)
269-
endif()
270-
271267
# Freestanding and Linux/Android builds both have failures to resolve.
272268
if(NOT BOOTSTRAPPING_MODE STREQUAL "OFF" AND NOT SWIFT_FREESTANDING_FLAVOR AND NOT SWIFT_HOST_VARIANT_SDK STREQUAL "LINUX" AND NOT SWIFT_HOST_VARIANT_SDK STREQUAL "ANDROID")
273269
list(APPEND SWIFTLIB_SOURCES ObjectIdentifier+DebugDescription.swift)

test/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,6 @@ foreach(SDK ${SWIFT_SDKS})
457457
list(APPEND LIT_ARGS "--param" "string_processing")
458458
endif()
459459

460-
if(SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS)
461-
list(APPEND LIT_ARGS "--param" "pointer_bounds")
462-
endif()
463-
464460
if(SWIFT_ENABLE_BACKTRACING)
465461
list(APPEND LIT_ARGS "--param" "backtracing")
466462
endif()

test/Interop/C/pointer-bounds/counted-by.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_feature_SafeInteropWrappers
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %empty-directory(%t)
54
// RUN: %target-swift-frontend -emit-module -disable-availability-checking -plugin-path %swift-plugin-dir -o %t/CountedBy.swiftmodule -I %S/Inputs -enable-experimental-feature SafeInteropWrappers %s

test/Macros/PointerBounds/CountedBy/CountExpr.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/MultipleParams.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/Mutable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/MutableSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: not %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span > %t.log 2>&1

test/Macros/PointerBounds/CountedBy/Nullable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/QualifiedTypes.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/Return.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/SharedCount.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/SimpleCount.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/CountedBy/SimpleSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span 2>&1 | %FileCheck --match-full-lines %s

test/Macros/PointerBounds/CountedBy/SimpleSpanWithReturn.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span 2>&1 | %FileCheck --match-full-lines %s

test/Macros/PointerBounds/CountedBy/Unwrapped.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/MacroErrors/ArrayType.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/DynamicCountExpr.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/DynamicEnum.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/DynamicPointerIndex.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/InvalidCount.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/PointerIndexOutOfBounds.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/SamePointer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir
54

test/Macros/PointerBounds/MacroErrors/UnexpectedCountExpr.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/MacroErrors/UnexpectedCountType.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// XFAIL: *
54

test/Macros/PointerBounds/MacroErrors/UnexpectedPointerType.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
54

test/Macros/PointerBounds/SizedBy/MultipleParams.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/Mutable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/MutableRawSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: not %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span > %t.log 2>&1

test/Macros/PointerBounds/SizedBy/Nullable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/Return.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/SharedCount.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/SimpleRawSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span 2>&1 | %FileCheck --match-full-lines %s

test/Macros/PointerBounds/SizedBy/SimpleRawSpanWithReturn.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32
// REQUIRES: swift_feature_Span
43

54
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions -enable-experimental-feature Span 2>&1 | %FileCheck --match-full-lines %s

test/Macros/PointerBounds/SizedBy/SimpleSize.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/SizeExpr.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/Macros/PointerBounds/SizedBy/Unwrapped.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: swift_swift_parser
2-
// REQUIRES: pointer_bounds
32

43
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions 2>&1 | %FileCheck --match-full-lines %s
54

test/lit.site.cfg.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ if "@SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING@" == "TRUE":
156156
config.available_features.add('string_processing')
157157
if "@SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION@" == "TRUE":
158158
config.available_features.add('observation')
159-
if "@SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS@" == "TRUE":
160-
config.available_features.add('pointer_bounds')
161159
if "@SWIFT_STDLIB_ENABLE_DEBUG_PRECONDITIONS_IN_RELEASE@" == "TRUE":
162160
config.available_features.add('swift_stdlib_debug_preconditions_in_release')
163161
if "@SWIFT_ENABLE_VOLATILE@" == "TRUE":

utils/build-script-impl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,13 +2092,6 @@ for host in "${ALL_HOSTS[@]}"; do
20922092
)
20932093
fi
20942094

2095-
if [[ "${SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS}" ]] ; then
2096-
cmake_options=(
2097-
"${cmake_options[@]}"
2098-
-DSWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS:BOOL=$(true_false "${SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS}")
2099-
)
2100-
fi
2101-
21022095
# SWIFT_THREADING_PACKAGE can be:
21032096
#
21042097
# - Empty

utils/build.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,6 @@ function Build-Compilers() {
15241524
SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED = "YES";
15251525
SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION = "YES";
15261526
SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING = "YES";
1527-
SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS = "YES";
15281527
SWIFT_ENABLE_SYNCHRONIZATION = "YES";
15291528
SWIFT_ENABLE_VOLATILE = "YES";
15301529
SWIFT_PATH_TO_LIBDISPATCH_SOURCE = "$SourceCache\swift-corelibs-libdispatch";
@@ -1835,7 +1834,6 @@ function Build-Runtime([Platform]$Platform, $Arch) {
18351834
SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED = "YES";
18361835
SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION = "YES";
18371836
SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING = "YES";
1838-
SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS = "YES";
18391837
SWIFT_ENABLE_SYNCHRONIZATION = "YES";
18401838
SWIFT_ENABLE_VOLATILE = "YES";
18411839
SWIFT_NATIVE_SWIFT_TOOLS_PATH = (Join-Path -Path $CompilersBinaryCache -ChildPath "bin");

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,10 +1493,6 @@ def create_argument_parser():
14931493
default=True,
14941494
help='Enable experimental Swift Parser validation by default.')
14951495

1496-
option('--enable-experimental-pointer-bounds', toggle_true,
1497-
default=False,
1498-
help='Enable experimental bounds safe C interop.')
1499-
15001496
# -------------------------------------------------------------------------
15011497
in_group('Unsupported options')
15021498

utils/build_swift/tests/expected_options.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@
184184
'enable_experimental_string_processing': True,
185185
'enable_experimental_observation': True,
186186
'enable_experimental_parser_validation': True,
187-
'enable_experimental_pointer_bounds': False,
188187
'swift_enable_backtracing': True,
189188
'enable_synchronization': True,
190189
'enable_volatile': True,
@@ -628,7 +627,6 @@ class BuildScriptImplOption(_BaseOption):
628627
EnableOption('--enable-experimental-string-processing'),
629628
EnableOption('--enable-experimental-observation'),
630629
EnableOption('--enable-experimental-parser-validation'),
631-
EnableOption('--enable-experimental-pointer-bounds'),
632630
EnableOption('--enable-lsan'),
633631
EnableOption('--enable-sanitize-coverage'),
634632
EnableOption('--enable-tsan'),

utils/swift_build_support/swift_build_support/products/minimalstdlib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ def build(self, host_target):
104104
'SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED:BOOL', 'FALSE')
105105
self.cmake_options.define(
106106
'SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION:BOOL', 'FALSE')
107-
self.cmake_options.define(
108-
'SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS:BOOL', 'FALSE')
109107
self.cmake_options.define('SWIFT_ENABLE_REFLECTION:BOOL', 'FALSE')
110108
self.cmake_options.define(
111109
'SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS:BOOL', 'FALSE')

utils/swift_build_support/swift_build_support/products/swift.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def __init__(self, args, toolchain, source_dir, build_dir):
5757
self.cmake_options.extend(self._enable_experimental_cxx_interop)
5858
self.cmake_options.extend(self._enable_cxx_interop_swift_bridging_header)
5959

60-
# Add experimental c interop flag.
61-
self.cmake_options.extend(self._enable_experimental_pointer_bounds)
62-
6360
# Add experimental distributed flag.
6461
self.cmake_options.extend(self._enable_experimental_distributed)
6562

@@ -218,11 +215,6 @@ def _enable_experimental_observation(self):
218215
return [('SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION:BOOL',
219216
self.args.enable_experimental_observation)]
220217

221-
@property
222-
def _enable_experimental_pointer_bounds(self):
223-
return [('SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS:BOOL',
224-
self.args.enable_experimental_pointer_bounds)]
225-
226218
@property
227219
def _enable_synchronization(self):
228220
return [('SWIFT_ENABLE_SYNCHRONIZATION:BOOL',

utils/swift_build_support/swift_build_support/products/wasmstdlib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ def _build_stdlib(self, host_target, target_triple, llvm_cmake_dir):
164164
self.cmake_options.define('SWIFT_ENABLE_SYNCHRONIZATION:BOOL', 'TRUE')
165165
self.cmake_options.define('SWIFT_ENABLE_VOLATILE:BOOL', 'TRUE')
166166
self.cmake_options.define('SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION:BOOL', 'TRUE')
167-
self.cmake_options.define('SWIFT_ENABLE_EXPERIMENTAL_POINTER_BOUNDS:BOOL',
168-
'TRUE')
169167

170168
self.add_extra_cmake_options()
171169

0 commit comments

Comments
 (0)