From 195ae82fea0ecf6425915398b8989643153fa5ec Mon Sep 17 00:00:00 2001 From: chefmax Date: Thu, 29 Jun 2017 08:50:21 +0000 Subject: 2017-06-29 Yury Gribov PR bootstrap/80565 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization code. * ipa-inline.h (edge_growth_cache_entry::edge_growth_cache_entry): New function. (reset_edge_growth_cache): Update to use constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249771 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ipa-inline.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-inline.h') diff --git a/gcc/ipa-inline.h b/gcc/ipa-inline.h index 54c1ed97d57..4b9a1c2191a 100644 --- a/gcc/ipa-inline.h +++ b/gcc/ipa-inline.h @@ -28,6 +28,14 @@ struct edge_growth_cache_entry sreal time, nonspec_time; int size; ipa_hints hints; + + edge_growth_cache_entry() + : size (0), hints (0) {} + + edge_growth_cache_entry(int64_t time, int64_t nonspec_time, + int size, ipa_hints hints) + : time (time), nonspec_time (nonspec_time), size (size), + hints (hints) {} }; extern vec edge_growth_cache; @@ -116,7 +124,7 @@ reset_edge_growth_cache (struct cgraph_edge *edge) { if ((int)edge_growth_cache.length () > edge->uid) { - struct edge_growth_cache_entry zero = {0, 0, 0, 0}; + struct edge_growth_cache_entry zero (0, 0, 0, 0); edge_growth_cache[edge->uid] = zero; } } -- cgit v1.2.1