aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-08-27 07:49:35 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-08-31 19:28:54 +0200
commit92dc5d844a2088db79bc4521be3ecb4e2f284444 (patch)
tree185f54325ca80028df25f4a2e60f261d7f68055e /gcc
parent22e6b3270068faab64778c016f4b04f787120661 (diff)
downloadgcc-92dc5d844a2088db79bc4521be3ecb4e2f284444.zip
gcc-92dc5d844a2088db79bc4521be3ecb4e2f284444.tar.gz
gcc-92dc5d844a2088db79bc4521be3ecb4e2f284444.tar.bz2
Fix 'OMP_CLAUSE_TILE' operands handling in 'gcc/tree.c:walk_tree_1'
In r245300 (commit 02889d23ee3b02854dff203dd87b9a25e30b61b4) "OpenACC tile clause support" that one had changed to three operands, similar to 'OMP_CLAUSE_COLLAPSE'. There is no (existing) test case where this seems to matter (likewise for 'OMP_CLAUSE_COLLAPSE'), but it's good to be consistent. gcc/ * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index cba3bca..4c7e03b 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -11166,7 +11166,6 @@ walk_tree_1 (tree *tp, walk_tree_fn func, void *data,
case OMP_CLAUSE_BIND:
case OMP_CLAUSE_AUTO:
case OMP_CLAUSE_SEQ:
- case OMP_CLAUSE_TILE:
case OMP_CLAUSE__SIMT_:
case OMP_CLAUSE_IF_PRESENT:
case OMP_CLAUSE_FINALIZE:
@@ -11179,6 +11178,7 @@ walk_tree_1 (tree *tp, walk_tree_fn func, void *data,
WALK_SUBTREE_TAIL (OMP_CLAUSE_CHAIN (*tp));
case OMP_CLAUSE_COLLAPSE:
+ case OMP_CLAUSE_TILE:
{
int i;
for (i = 0; i < 3; i++)