Commit bb753cad by Aldy Hernandez Committed by Aldy Hernandez

* gimple-ssa-warn-alloca.c

	(alloca_type_and_limit::alloca_type_and_limit): Initialize limit
	field for ALLOCA_BOUND_*_LARGE.

From-SVN: r264227
parent be673084
2018-09-12 Aldy Hernandez <aldyh@redhat.com>
* 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 <nathan@acm.org>
* gcc.c (load_specs, execute, run_attempt): Use %qs not '%s'.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment