From: Andrew Stubbs Date: Fri, 28 Aug 2020 14:41:38 +0000 (+0100) Subject: amdgcn: Update vec_safe_grow_cleared usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c1e41b06509c60c054792839618fad094ba17d1;p=gcc.git amdgcn: Update vec_safe_grow_cleared usage An API change broke the amdgcn build. gcc/ChangeLog: * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true" parameter to vec_safe_grow_cleared. --- diff --git a/gcc/config/gcn/gcn-tree.c b/gcc/config/gcn/gcn-tree.c index 4dcb179ba71..a681426139b 100644 --- a/gcc/config/gcn/gcn-tree.c +++ b/gcc/config/gcn/gcn-tree.c @@ -456,7 +456,7 @@ gcn_goacc_get_worker_red_decl (tree type, unsigned offset) varpool_node::finalize_decl (decl); - vec_safe_grow_cleared (machfun->reduc_decls, offset + 1); + vec_safe_grow_cleared (machfun->reduc_decls, offset + 1, true); (*machfun->reduc_decls)[offset] = decl; return decl;