aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcyeung@baylibre.com>2024-09-12 21:33:58 +0100
committerSandra Loosemore <sloosemore@baylibre.com>2025-05-15 20:25:53 +0000
commit90a497c233380b43e36dafaa6688ca45b2ba4f35 (patch)
treea388f0b5c65a52a824ab90d2ad9871d1ecf84755 /gcc/c/c-parser.cc
parent5418d2ad283c7cadb35fa920bc18353c1821739d (diff)
downloadgcc-90a497c233380b43e36dafaa6688ca45b2ba4f35.zip
gcc-90a497c233380b43e36dafaa6688ca45b2ba4f35.tar.gz
gcc-90a497c233380b43e36dafaa6688ca45b2ba4f35.tar.bz2
openmp: Disable strided target updates when iterators are used
Non-contiguous target updates result in the new strided target updates code being used, resulting in new clauses such as GOMP_MAP_GRID_DIM, GOMP_MAP_GRID_STRIDE etc. These are not currently supported in conjunction with iterators, so this code-path is disabled when used together with iterators. The older target updates supports non-contiguous updates as long as a stride is not applied. gcc/c/ * c-typeck.cc (handle_omp_array_sections): Add extra argument. Set argument to true if array section has a stride that is not one. (c_finish_omp_clauses): Disable strided updates when iterators are used in the clause. Emit sorry if strided. gcc/cp/ * semantics.cc (handle_omp_array_sections): Add extra argument. Set argument to true if array section has a stride that is not one. (finish_omp_clauses): Disable strided updates when iterators are used in the clause. Emit sorry if strided. gcc/fortran/ * trans-openmp.cc (gfc_trans_omp_clauses): Disable strided updates when iterators are used in the clause.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions