From 1c1e41b06509c60c054792839618fad094ba17d1 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 28 Aug 2020 15:41:38 +0100 Subject: [PATCH] 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. --- gcc/config/gcn/gcn-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2