toolchain: detect use of large stack variables

partition/fs_gpt.c:384:5: warning: stack usage might be 288 bytes [-Wstack-usage=]
  384 | int parse_gpt_partition(FAR struct partition_state_s *state,

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-08-15 17:16:01 +08:00
committed by Petro Karashchenko
parent d3bca3c2cf
commit 88f3bc77f1
7 changed files with 31 additions and 0 deletions
+7
View File
@@ -2073,6 +2073,13 @@ config STACK_USAGE
on a per-function basis. Please use https://github.com/HBehrens/puncover
or tools/showstack.sh to generate the more useful report.
config STACK_USAGE_WARNING
int "Detect use of large stack variables"
default 0
help
Set the stack warning threshold, if the stack usage exceeds the
threshold, a warning will be generated
config ARCH_HAVE_HEAPCHECK
bool
default n