From: Thomas Schwinge Date: Fri, 27 Aug 2021 05:49:35 +0000 (+0200) Subject: Fix 'OMP_CLAUSE_TILE' operands handling in 'gcc/tree.c:walk_tree_1' X-Git-Tag: releases/gcc-11.3.0~947 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6880aa976f962ecf78d20b58f7815b585791647;p=thirdparty%2Fgcc.git 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) : Handle three operands. (cherry picked from commit 92dc5d844a2088db79bc4521be3ecb4e2f284444) --- diff --git a/gcc/tree.c b/gcc/tree.c index e0183b73e313..8bc81d66821e 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -12299,7 +12299,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: @@ -12311,6 +12310,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++)