[clang] [SFrame][Retry] Add assembler option --gsframe (PR #165806)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 7 13:18:32 PST 2026


================
@@ -0,0 +1,20 @@
+// RUN: not %clang -### -c --target=x86_64 -Wa,--gsframe %s -Werror 2>&1 | FileCheck %s --check-prefix=NOEXP
+// NOEXP: error: -Wa,--allow-experimental-sframe must be specified to use -Wa,--gsframe. SFrames are experimental and may be removed at any time without warning
+
+// RUN: %clang -### -c --target=x86_64 -Wa,--gsframe -Wa,--allow-experimental-sframe %s -Werror 2>&1 | FileCheck %s
+// CHECK: "-cc1"
+// CHECK-SAME: "--gsframe"
+
+// RUN: %clang -### -c --target=x86_64 %s 2>&1 | FileCheck %s --check-prefix=NO-GSFRAME
+// NO-GSFRAME-NOT: "--gsframe"
+
+// RUN: %clang -### -c --target=x86_64 -Werror -Wa,--gsframe,--allow-experimental-sframe -x assembler %s -Werror 2>&1 | FileCheck %s --check-prefix=ASM
+// ASM: "-cc1as"
+// ASM-SAME: "--gsframe"
+
----------------
Sterling-Augustine wrote:

Added.

https://github.com/llvm/llvm-project/pull/165806


More information about the cfe-commits mailing list