A change that was present in the OG11 version of
'openmp: in_reduction clause support on target construct' but
not in the mainline version resulted in non-contiguous
arrays being accepted in cache clauses, only to ICE later.
2022-03-17 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/c/
* c-typeck.cc (handle_omp_array_sections_1): Add check to ensure
that clause is a map.
gcc/cp/
* semantics.cc (handle_omp_array_sections_1): Add check to ensure
that clause is a map.
+2022-03-17 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * c-typeck.cc (handle_omp_array_sections_1): Add check to ensure
+ that clause is a map.
+
2022-05-12 Jakub Jelinek <jakub@redhat.com>
Backport from mainline:
tree d_length = TREE_VALUE (d);
if (d_length == NULL_TREE || !integer_onep (d_length))
{
- if (ort == C_ORT_ACC)
+ if (ort == C_ORT_ACC
+ && OMP_CLAUSE_CODE (c) == OMP_CLAUSE_MAP)
{
while (TREE_CODE (d) == TREE_LIST)
d = TREE_CHAIN (d);
+2022-03-17 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * semantics.cc (handle_omp_array_sections_1): Add check to ensure
+ that clause is a map.
+
2022-05-12 Jakub Jelinek <jakub@redhat.com>
Backport from mainline:
tree d_length = TREE_VALUE (d);
if (d_length == NULL_TREE || !integer_onep (d_length))
{
- if (ort == C_ORT_ACC)
+ if (ort == C_ORT_ACC
+ && OMP_CLAUSE_CODE (c) == OMP_CLAUSE_MAP)
{
while (TREE_CODE (d) == TREE_LIST)
d = TREE_CHAIN (d);