projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad755d
)
amdgcn: Update vec_safe_grow_cleared usage
author
Andrew Stubbs
<ams@codesourcery.com>
Fri, 28 Aug 2020 14:41:38 +0000
(15:41 +0100)
committer
Andrew Stubbs
<ams@codesourcery.com>
Fri, 28 Aug 2020 14:43:06 +0000
(15:43 +0100)
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
patch
|
blob
|
history
diff --git
a/gcc/config/gcn/gcn-tree.c
b/gcc/config/gcn/gcn-tree.c
index 4dcb179ba716b4cd4aeba662fccf8771720b696e..a681426139b083683cc786bd9c850daf58d782c7 100644
(file)
--- 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;