]> git.ipfire.org Git - thirdparty/gcc.git/commit
[og10] Rewrite GOMP_MAP_ATTACH_DETACH mappings unconditionally
authorJulian Brown <julian@codesourcery.com>
Tue, 18 May 2021 17:10:12 +0000 (10:10 -0700)
committerJulian Brown <julian@codesourcery.com>
Wed, 19 May 2021 22:03:46 +0000 (15:03 -0700)
commiteb5c702b0820bdb6859b6a4eb8e668087edb4f15
treea6fae045acd5164fe64da688ab7ede42fda84cd4
parent8f12b6e9e512ab8a44bceb43246904e4216b0519
[og10] 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-05-19  Julian Brown  <julian@codesourcery.com>

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