[PATCH] D74698: [Driver] -pg shouldn't unconditionally add -mframe-pointer=all w/ -mfentry
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 14:34:57 PST 2020
nickdesaulniers added inline comments.
================
Comment at: clang/test/Driver/mfentry.c:6
+// RUN: %clang -target x86_64-linux-gnu -pg -mfentry -O2 -fno-omit-frame-pointer -### -E %s 2>&1 | FileCheck -check-prefix=FP --implicit-check-not='"-mframe-pointer=none"' %s
+// RUN: %clang -target x86_64-linux-gnu -pg -mfentry -O2 -### -E %s 2>&1 | FileCheck -check-prefix=NOFP --implicit-check-not='"-mframe-pointer=all"' %s
----------------
The only issue left is that `-target x86_64` still produces frame pointers since the above `useFramePointerForTargetByDefault()` just returns `true` when no target triple OS is specified. Do we care about that case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74698/new/
https://reviews.llvm.org/D74698
More information about the cfe-commits
mailing list