+2017-02-14 Martin Liska <mliska@suse.cz>
+
+ Backport from mainline
+ 2017-02-13 Martin Liska <mliska@suse.cz>
+
+ PR c/79471
+ * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
+
2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
PR translation/79397
n_named_args = num_actuals;
/* Make a vector to hold all the information about each arg. */
- args = XALLOCAVEC (struct arg_data, num_actuals);
- memset (args, 0, num_actuals * sizeof (struct arg_data));
+ args = XCNEWVEC (struct arg_data, num_actuals);
/* Build up entries in the ARGS array, compute the size of the
arguments into ARGS_SIZE, etc. */
currently_expanding_call--;
free (stack_usage_map_buf);
+ free (args);
/* Join result with returned bounds so caller may use them if needed. */
target = chkp_join_splitted_slot (target, valbnd);