public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-2926] amdgcn: Update vec_safe_grow_cleared usage
@ 2020-08-28 14:43 Andrew Stubbs
0 siblings, 0 replies; only message in thread
From: Andrew Stubbs @ 2020-08-28 14:43 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1c1e41b06509c60c054792839618fad094ba17d1
commit r11-2926-g1c1e41b06509c60c054792839618fad094ba17d1
Author: Andrew Stubbs <ams@codesourcery.com>
Date: Fri Aug 28 15:41:38 2020 +0100
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:
---
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-28 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 14:43 [gcc r11-2926] amdgcn: Update vec_safe_grow_cleared usage Andrew Stubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).