summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2018-03-05 18:51:10 -0800
committerJohann <johannkoenig@google.com>2018-03-05 20:09:43 -0800
commit7195a2eaa47b7203137afb1db4d3017ee3687435 (patch)
tree6e7276744ebf00f56fd506d542675c58ee50b5de
parente0b88b5c00b8026876da72e2f6c6fadf479d394d (diff)
downloadlibvpx-7195a2eaa47b7203137afb1db4d3017ee3687435.tar
libvpx-7195a2eaa47b7203137afb1db4d3017ee3687435.tar.gz
libvpx-7195a2eaa47b7203137afb1db4d3017ee3687435.tar.bz2
libvpx-7195a2eaa47b7203137afb1db4d3017ee3687435.zip
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
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
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