[PATCH] D100509: Support GCC's -fstack-usage flag
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 10 09:10:27 PDT 2021
MaskRay added inline comments.
================
Comment at: clang/include/clang/Basic/CodeGenOptions.def:110
CODEGENOPT(StackSizeSection , 1, 0) ///< Set when -fstack-size-section is enabled.
+CODEGENOPT(StackUsage , 1, 0) ///< Set when -fstack-usage is enabled.
CODEGENOPT(ForceDwarfFrameSection , 1, 0) ///< Set when -fforce-dwarf-frame is
----------------
Unneeded
================
Comment at: clang/test/CodeGen/stack-usage.c:7
+
+// CHECK: stack-usage.c:8:foo {{[0-9]+}} static
+int foo() {
----------------
`8` -> `[[#@LINE+1]]`
================
Comment at: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1212
+
+ *StackUsageStream << ":" << MF.getName() << "\t" << StackSize << "\t";
+ if (FrameInfo.hasVarSizedObjects())
----------------
`""` -> `''`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100509/new/
https://reviews.llvm.org/D100509
More information about the cfe-commits
mailing list