[flang-commits] [flang] [clang] [llvm] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Fri Dec 22 09:17:56 PST 2023


================
@@ -1,9 +1,12 @@
 ! Test that flang-new forwards -fno-omit-frame-pointer and -fomit-frame-pointer Flang frontend
-! RUN: %flang -fno-omit-frame-pointer --target=x86-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s
-! CHECK: "-mframe-pointer=all"
+! RUN: %flang --target=aarch64-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s --check-prefix=CHECK-NOVALUE
+! CHECK-NOVALUE: "-mframe-pointer=non-leaf"
----------------
banach-space wrote:

```suggestion
! CHECK-NOVALUE: "-fc1" "-mframe-pointer=non-leaf"
```

Same remark for other check lines.

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


More information about the flang-commits mailing list