From: aldyh Date: Wed, 12 Sep 2018 06:50:34 +0000 (+0000) Subject: * gimple-ssa-warn-alloca.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b19df430a2e464d0d7137096542546828cbc920;p=thirdparty%2Fgcc.git * gimple-ssa-warn-alloca.c (alloca_type_and_limit::alloca_type_and_limit): Initialize limit field for ALLOCA_BOUND_*_LARGE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264227 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17aa2a10da62..f5468ca65c1a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-09-12 Aldy Hernandez + + * gimple-ssa-warn-alloca.c + (alloca_type_and_limit::alloca_type_and_limit): Initialize limit + field for ALLOCA_BOUND_*_LARGE. + 2018-09-11 Nathan Sidwell * gcc.c (load_specs, execute, run_attempt): Use %qs not '%s'. diff --git a/gcc/gimple-ssa-warn-alloca.c b/gcc/gimple-ssa-warn-alloca.c index 4d5aed866e1b..d1b1de4a2d5b 100644 --- a/gcc/gimple-ssa-warn-alloca.c +++ b/gcc/gimple-ssa-warn-alloca.c @@ -128,7 +128,11 @@ struct alloca_type_and_limit { alloca_type_and_limit (); alloca_type_and_limit (enum alloca_type type, wide_int i) : type(type), limit(i) { } - alloca_type_and_limit (enum alloca_type type) : type(type) { } + alloca_type_and_limit (enum alloca_type type) : type(type) + { if (type == ALLOCA_BOUND_MAYBE_LARGE + || type == ALLOCA_BOUND_DEFINITELY_LARGE) + limit = wi::to_wide (integer_zero_node); + } }; /* Return the value of the argument N to -Walloca-larger-than= or