Skip to content

Commit 381d453

Browse files
committed
Experimentally make clang default to SwiftAsyncFramePointerKind::Always too
1 parent 03faef7 commit 381d453

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ CODEGENOPT(AAPCSBitfieldWidth, 1, 1)
419419
// Whether to emit Swift Async function extended frame information: auto,
420420
// never, always.
421421
ENUM_CODEGENOPT(SwiftAsyncFramePointer, SwiftAsyncFramePointerKind, 2,
422-
SwiftAsyncFramePointerKind::Auto)
422+
SwiftAsyncFramePointerKind::Always)
423423

424424
#undef CODEGENOPT
425425
#undef ENUM_CODEGENOPT

clang/include/clang/Basic/CodeGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class CodeGenOptions : public CodeGenOptionsBase {
139139
Auto, // Choose Swift async extended frame info based on deployment target.
140140
Always, // Unconditionally emit Swift async extended frame info.
141141
Never, // Don't emit Swift async extended frame info.
142-
Default = Auto,
142+
Default = Always,
143143
};
144144

145145
enum FiniteLoopsKind {

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ def fswift_async_fp_EQ : Joined<["-"], "fswift-async-fp=">,
11911191
Values<"auto,always,never">,
11921192
NormalizedValuesScope<"CodeGenOptions::SwiftAsyncFramePointerKind">,
11931193
NormalizedValues<["Auto", "Always", "Never"]>,
1194-
MarshallingInfoFlag<"CodeGenOpts.SwiftAsyncFramePointer", "Auto">,
1194+
MarshallingInfoFlag<"CodeGenOpts.SwiftAsyncFramePointer", "Always">,
11951195
AutoNormalizeEnum;
11961196

11971197
def fapinotes : Flag<["-"], "fapinotes">, Group<f_clang_Group>,

clang/test/CodeGen/swift-async-extended-fp.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -mframe-pointer=all -triple x86_64-apple-darwin10 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=AUTO-X86
1+
// RUN: %clang_cc1 -mframe-pointer=all -triple x86_64-apple-darwin10 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=ALWAYS-X86
22
// RUN: %clang_cc1 -mframe-pointer=all -triple x86_64-apple-darwin12 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=ALWAYS-X86
33
// RUN: %clang_cc1 -fswift-async-fp=never -mframe-pointer=all -triple x86_64-apple-darwin10 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=NEVER-X86
44
// RUN: %clang_cc1 -fswift-async-fp=never -mframe-pointer=all -triple x86_64-apple-darwin12 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=NEVER-X86
@@ -7,10 +7,14 @@
77
// RUN: %clang_cc1 -fswift-async-fp=always -mframe-pointer=all -triple x86_64-apple-darwin10 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=ALWAYS-X86
88
// RUN: %clang_cc1 -fswift-async-fp=always -mframe-pointer=all -triple x86_64-apple-darwin12 -target-cpu core2 -S -o - %s | FileCheck %s --check-prefix=ALWAYS-X86
99

10-
// RUN: %clang_cc1 -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=AUTO-ARM64
10+
// RUN: %clang_cc1 -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=ALWAYS-ARM64
1111
// RUN: %clang_cc1 -mframe-pointer=all -triple arm64-apple-ios15 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=ALWAYS-ARM64
12+
// RUN: %clang_cc1 -fswift-async-fp=auto -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=AUTO-ARM64
13+
// RUN: %clang_cc1 -fswift-async-fp=auto -mframe-pointer=all -triple arm64-apple-ios15 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=ALWAYS-ARM64
1214
// RUN: %clang_cc1 -fswift-async-fp=never -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=NEVER-ARM64
1315
// RUN: %clang_cc1 -fswift-async-fp=never -mframe-pointer=all -triple arm64-apple-ios15 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=NEVER-ARM64
16+
// RUN: %clang_cc1 -fswift-async-fp=always -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=ALWAYS-ARM64
17+
// RUN: %clang_cc1 -fswift-async-fp=always -mframe-pointer=all -triple arm64-apple-ios15 -target-cpu cyclone -S -o - %s | FileCheck %s --check-prefix=ALWAYS-ARM64
1418

1519
// REQUIRES: aarch64-registered-target,x86-registered-target
1620

0 commit comments

Comments
 (0)