]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: unified_address support
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 13 Apr 2022 15:55:47 +0000 (16:55 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:25 +0000 (13:55 -0700)
commit7e14e1a88d5b7dc54f5d4690d83628a13ca0eb72
tree60fae0bebf06004c9963d41a4032b061fee3f26e
parent02b4955747ddf2e32f7d01eef19e294f36462ade
openmp: unified_address support

This makes "requires unified_address" work by making it eqivalent to
"requires unified_shared_memory".  This is more than is strictly necessary,
but should be standard compliant.

gcc/c/ChangeLog:

* c-parser.cc (c_parser_omp_requires): Check requires unified_address
for conflict with -foffload-memory=shared.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_omp_requires): Check requires unified_address
for conflict with -foffload-memory=shared.

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_requires): Check requires unified_address
for conflict with -foffload-memory=shared.

gcc/ChangeLog:

* omp-low.cc: Do USM transformations for "unified_address".

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/usm-4.c: New test.
* gfortran.dg/gomp/usm-4.f90: New test.
gcc/ChangeLog.omp
gcc/c/ChangeLog.omp
gcc/c/c-parser.cc
gcc/cp/ChangeLog.omp
gcc/cp/parser.cc
gcc/fortran/ChangeLog.omp
gcc/fortran/openmp.cc
gcc/omp-low.cc
gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/gomp/usm-4.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/usm-4.f90 [new file with mode: 0644]