Skip to content

Commit e46dc39

Browse files
committed
Experimentally make clang default to SwiftAsyncFramePointerKind::Always too
1 parent e007ded commit e46dc39

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
@@ -442,7 +442,7 @@ CODEGENOPT(EmitIEEENaNCompliantInsts, 1, 1)
442442
// Whether to emit Swift Async function extended frame information: auto,
443443
// never, always.
444444
ENUM_CODEGENOPT(SwiftAsyncFramePointer, SwiftAsyncFramePointerKind, 2,
445-
SwiftAsyncFramePointerKind::Auto)
445+
SwiftAsyncFramePointerKind::Always)
446446

447447

448448
#undef CODEGENOPT

clang/include/clang/Basic/CodeGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class CodeGenOptions : public CodeGenOptionsBase {
130130
Auto, // Choose Swift async extended frame info based on deployment target.
131131
Always, // Unconditionally emit Swift async extended frame info.
132132
Never, // Don't emit Swift async extended frame info.
133-
Default = Auto,
133+
Default = Always,
134134
};
135135

136136
enum FiniteLoopsKind {

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def fswift_async_fp_EQ : Joined<["-"], "fswift-async-fp=">,
12671267
Values<"auto,always,never">,
12681268
NormalizedValuesScope<"CodeGenOptions::SwiftAsyncFramePointerKind">,
12691269
NormalizedValues<["Auto", "Always", "Never"]>,
1270-
MarshallingInfoEnum<CodeGenOpts<"SwiftAsyncFramePointer">, "Auto">;
1270+
MarshallingInfoEnum<CodeGenOpts<"SwiftAsyncFramePointer">, "Always">;
12711271

12721272
defm apinotes : BoolOption<"f", "apinotes",
12731273
LangOpts<"APINotes">, DefaultFalse,

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)