[PATCH] D146603: [docs] Document -fomit-frame-pointer

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 21:24:35 PDT 2023


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/include/clang/Driver/Options.td:2643
+  HelpText<"Omit the frame pointer from functions that don't need it. "
+  "Some stack unwinding cases like profilers and sanitizers may prefer specifying -fno-omit-frame-pointer. "
+  "On many targets -O1 and higher omit the frame pointer by default. "
----------------
Some stack unwinding cases, such as profilers and sanitizers, may prefer specifying the -fno-omit-frame-pointer option. On many targets, -O1 and higher omit the frame pointer by default.


================
Comment at: clang/include/clang/Driver/Options.td:2645
+  "On many targets -O1 and higher omit the frame pointer by default. "
+  "-m[no-]omit-leaf-frame-pointer takes precedence for leaf funcitons">;
 def fopenmp : Flag<["-"], "fopenmp">, Group<f_Group>, Flags<[CC1Option, NoArgumentUnused, FlangOption, FC1Option]>,
----------------
functions


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146603/new/

https://reviews.llvm.org/D146603



More information about the cfe-commits mailing list