From 7195a2eaa47b7203137afb1db4d3017ee3687435 Mon Sep 17 00:00:00 2001 From: Johann Date: Mon, 5 Mar 2018 18:51:10 -0800 Subject: [PATCH] add worst-case frame size cap The largest frame is currently in choose_partitioning: warning: stack frame size of 44156 bytes in function 'choose_partitioning' but adding HBD amplifies other things: warning: stack frame size of 51480 bytes in function 'dec_build_inter_predictors' Add some padding for sanitizer and variances between compilers. BUG=webm:1498 Change-Id: I0d94d4f94d25dafafca9d7484881c2ce5f8de371 --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e5a74c6f2..6e7630eba 100755 --- a/configure +++ b/configure @@ -606,8 +606,10 @@ process_toolchain() { # https://bugs.chromium.org/p/webm/issues/detail?id=1069 check_add_cflags -Wextra # check_add_cflags also adds to cxxflags. gtest does not do well with - # -Wundef so add it explicitly to CFLAGS only. + # these flags so add them explicitly to CFLAGS only. check_cflags -Wundef && add_cflags_only -Wundef + check_cflags -Wframe-larger-than=52000 && \ + add_cflags_only -Wframe-larger-than=52000 if enabled mips || [ -z "${INLINE}" ]; then enabled extra_warnings || check_add_cflags -Wno-unused-function fi -- 2.40.0