Add case for OMP_CLAUSE_ALLOCATOR in walk_tree_1. This helps fix
an ICE which occurs only on OG11 with allocate directive.
Please note that this change is not needed on master. The code
there handles all clauses in the same way so a special case for
OMP_CLAUSE_ALLOCATOR is not required.
gcc/
* tree.c (walk_tree_1): Add case for OMP_CLAUSE_ALLOCATOR.
+2022-03-10 Abid Qadeer <abidh@codesourcery.com>
+
+ * tree.c (walk_tree_1): Add case for OMP_CLAUSE_ALLOCATOR.
+
2022-03-09 Abid Qadeer <abidh@codesourcery.com>
Backport of a patch posted at
WALK_SUBTREE_TAIL (OMP_CLAUSE_CHAIN (*tp));
}
+ /* This hunk is only needed on og11 as master uses same code
+ for all clauses. */
+ case OMP_CLAUSE_ALLOCATOR:
+ {
+ int len = omp_clause_num_ops[OMP_CLAUSE_CODE (*tp)];
+ for (int i = 0; i < len; i++)
+ WALK_SUBTREE (OMP_CLAUSE_OPERAND (*tp, i));
+ WALK_SUBTREE_TAIL (OMP_CLAUSE_CHAIN (*tp));
+ }
+
default:
gcc_unreachable ();
}