aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.cc
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2023-04-04 18:32:16 +0000
committerJulian Brown <julian@codesourcery.com>2023-04-05 12:12:47 +0000
commit6a1d873d3555d73072a01729d67fcd1f1db8df1d (patch)
tree65dd89b48a8301d460d65d9e2a8ee959b52612ef /gcc/tree-loop-distribution.cc
parent6288c6af4b071233a4d9c84012e2f4ac4ac3f918 (diff)
downloadgcc-6a1d873d3555d73072a01729d67fcd1f1db8df1d.zip
gcc-6a1d873d3555d73072a01729d67fcd1f1db8df1d.tar.gz
gcc-6a1d873d3555d73072a01729d67fcd1f1db8df1d.tar.bz2
[og12] OpenMP: Fix checking ICE in "declare target" ctor/dtor support
This patch fixes an ICE with checking enabled with the patch: abcb5dbac666513c798e574808f849f76a1c0799 There were two problems: first, OMP_CLAUSE_CHAIN was erroneously used as the chain pointer instead of TREE_CHAIN for a non-OMP clause list. Secondly, "copy_node" by itself is not sufficient to clone the initialization statement for use in the on-target constructor/destructor function. Instead we now use walk_tree with "copy_tree_body_r" and appropriate configuration parameters. 2023-04-05 Julian Brown <julian@codesourcery.com> gcc/cp/ * decl2.cc (tree-inline.h): Include. (do_static_initialization_or_destruction): Change OMP_TARGET parameter to pass the host version of the SSDF function decl. Use copy_tree_body_r to clone init stmt. Update forward declaration. (c_parse_final_cleanups): Update calls to do_static_initialization_or_destruction. Use TREE_CHAIN instead of OMP_CLAUSE_CHAIN.
Diffstat (limited to 'gcc/tree-loop-distribution.cc')
0 files changed, 0 insertions, 0 deletions