[PATCH] D102782: Add support for Warning Flag "-Wstack-usage="

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 7 10:16:58 PDT 2021


MaskRay added a comment.

In D102782#2862065 <https://reviews.llvm.org/D102782#2862065>, @rsanthir.quic wrote:

> @MaskRay Yes this would unblock applications. Regarding your concern, the information from this implementation as well as GCC's should be used conservatively as both are approximate.

Do your applications parse the diagnostic to take some actions? Note that clang diagnostic format is different from GCC's.
If you need any adaptation, can you just change the -Wstack-usage= option to -Wframe-larger-than= (the former is stronger but Clang doesn't implement the full functionality)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102782



More information about the cfe-commits mailing list