[flang-commits] [llvm] [clang] [flang] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Tue Dec 19 04:20:00 PST 2023
================
@@ -245,6 +245,24 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
opts.AliasAnalysis = opts.OptimizationLevel > 0;
+ if (const llvm::opt::Arg *a =
+ args.getLastArg(clang::driver::options::OPT_mframe_pointer_EQ)) {
+ llvm::StringRef s = a->getValue();
+
+ if (!(s == "none" || s == "non-leaf" || s == "all")) {
+ const auto debugWarningId = diags.getCustomDiagID(
+ clang::DiagnosticsEngine::Error, "Frame pointer: %0");
----------------
kiranchandramohan wrote:
Do we have a test for this?
https://github.com/llvm/llvm-project/pull/74598
More information about the flang-commits
mailing list