]> git.ipfire.org Git - thirdparty/gcc.git/commit
[og11] Rewrite GOMP_MAP_ATTACH_DETACH mappings unconditionally
authorJulian Brown <julian@codesourcery.com>
Tue, 18 May 2021 17:10:12 +0000 (10:10 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:37 +0000 (14:11 +0100)
commit18dc308aeac5efb5d88bde8c0bdf0f92162fdb87
tree7fb556e33999d44f987b3e37e4585ec91aedd87e
parenta24748da5b48f23ac83fa9f2d128f766e80567ed
[og11] Rewrite GOMP_MAP_ATTACH_DETACH mappings unconditionally

It never makes sense for a GOMP_MAP_ATTACH_DETACH mapping to survive
beyond gimplify.c, so this patch rewrites such mappings to GOMP_MAP_ATTACH
or GOMP_MAP_DETACH unconditionally (rather than checking for a list
of types of OpenACC or OpenMP constructs), in cases where it hasn't
otherwise been done already in the preceding code.

2021-06-02  Julian Brown  <julian@codesourcery.com>

gcc/
* gimplify.cc (gimplify_scan_omp_clauses): Simplify condition
for changing GOMP_MAP_ATTACH_DETACH to GOMP_MAP_ATTACH or
GOMP_MAP_DETACH.
gcc/ChangeLog.omp
gcc/gimplify.cc