public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1545] Define 'OMP_REQUIRES_[...]', 'GOMP_REQUIRES_[...]' in a single place Date: Wed, 6 Jul 2022 21:00:31 +0000 (GMT) [thread overview] Message-ID: <20220706210031.82A4D3858C39@sourceware.org> (raw) https://gcc.gnu.org/g:2f0d819a81edee50a98a8a05eed585f0a72bb932 commit r13-1545-g2f0d819a81edee50a98a8a05eed585f0a72bb932 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Tue Jul 5 11:04:46 2022 +0200 Define 'OMP_REQUIRES_[...]', 'GOMP_REQUIRES_[...]' in a single place Clean up for recent commit 683f11843974f0bdf42f79cdcbb0c2b43c7b81b0 "OpenMP: Move omp requires checks to libgomp". gcc/ * omp-general.h (enum omp_requires): Use 'GOMP_REQUIRES_[...]'. include/ * gomp-constants.h (OMP_REQUIRES_[...]): Update comment. Diff: --- gcc/omp-general.h | 8 ++++---- include/gomp-constants.h | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/omp-general.h b/gcc/omp-general.h index 7a94831e8f5..74e90e1a71a 100644 --- a/gcc/omp-general.h +++ b/gcc/omp-general.h @@ -126,12 +126,12 @@ extern int oacc_get_ifn_dim_arg (const gimple *stmt); enum omp_requires { OMP_REQUIRES_ATOMIC_DEFAULT_MEM_ORDER = 0xf, - OMP_REQUIRES_UNIFIED_ADDRESS = 0x10, - OMP_REQUIRES_UNIFIED_SHARED_MEMORY = 0x20, + OMP_REQUIRES_UNIFIED_ADDRESS = GOMP_REQUIRES_UNIFIED_ADDRESS, + OMP_REQUIRES_UNIFIED_SHARED_MEMORY = GOMP_REQUIRES_UNIFIED_SHARED_MEMORY, OMP_REQUIRES_DYNAMIC_ALLOCATORS = 0x40, - OMP_REQUIRES_REVERSE_OFFLOAD = 0x80, + OMP_REQUIRES_REVERSE_OFFLOAD = GOMP_REQUIRES_REVERSE_OFFLOAD, OMP_REQUIRES_ATOMIC_DEFAULT_MEM_ORDER_USED = 0x100, - OMP_REQUIRES_TARGET_USED = 0x200 + OMP_REQUIRES_TARGET_USED = GOMP_REQUIRES_TARGET_USED, }; extern GTY(()) enum omp_requires omp_requires_mask; diff --git a/include/gomp-constants.h b/include/gomp-constants.h index 3e3078f082e..84316f953d0 100644 --- a/include/gomp-constants.h +++ b/include/gomp-constants.h @@ -341,8 +341,7 @@ enum gomp_map_kind #define GOMP_DEPEND_MUTEXINOUTSET 4 #define GOMP_DEPEND_INOUTSET 5 -/* Flag values for requires-directive features, must match corresponding - OMP_REQUIRES_* values in gcc/omp-general.h. */ +/* Flag values for OpenMP 'requires' directive features. */ #define GOMP_REQUIRES_UNIFIED_ADDRESS 0x10 #define GOMP_REQUIRES_UNIFIED_SHARED_MEMORY 0x20 #define GOMP_REQUIRES_REVERSE_OFFLOAD 0x80
reply other threads:[~2022-07-06 21:00 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220706210031.82A4D3858C39@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).