diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 24 | ||||
-rw-r--r-- | include/gomp-constants.h | 13 | ||||
-rw-r--r-- | include/libiberty.h | 7 |
3 files changed, 41 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index bbfd6a6..89151e7 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,27 @@ +2020-08-03 Martin Jambor <mjambor@suse.cz> + + * gomp-constants.h (GOMP_VERSION_HSA): Remove. + +2020-07-09 Julian Brown <julian@codesourcery.com> + Thomas Schwinge <thomas@codesourcery.com> + + PR middle-end/95270 + * gomp-constants.h (gomp_map_kind): Expand comment for attach/detach + mapping kinds. + +2020-07-09 Julian Brown <julian@codesourcery.com> + + * gomp-constants.h (gomp_map_kind): Update comment for GOMP_MAP_TO_PSET. + +2020-06-26 Nick Clifton <nickc@redhat.com> + + * libiberty.h (bsearch_r): Remove use of the register keyword from + the prototype. + +2020-06-23 Nick Alcock <nick.alcock@oracle.com> + + * libiberty.h (bsearch_r): New. + 2020-04-17 Martin Liska <mliska@suse.cz> Jonathan Yong <10walls@gmail.com> diff --git a/include/gomp-constants.h b/include/gomp-constants.h index 1587e4d..16f2d13 100644 --- a/include/gomp-constants.h +++ b/include/gomp-constants.h @@ -65,7 +65,10 @@ enum gomp_map_kind /* Also internal, behaves like GOMP_MAP_TO, but additionally any GOMP_MAP_POINTER records consecutive after it which have addresses falling into that range will not be ignored if GOMP_MAP_TO_PSET wasn't - mapped already. */ + mapped already. + For OpenACC attach operations (e.g. copyin of struct members), + GOMP_MAP_TO_PSET is followed by a single GOMP_MAP_ATTACH mapping + instead. */ GOMP_MAP_TO_PSET = (GOMP_MAP_FLAG_SPECIAL_0 | 1), /* Must already be present. */ GOMP_MAP_FORCE_PRESENT = (GOMP_MAP_FLAG_SPECIAL_0 | 2), @@ -136,7 +139,12 @@ enum gomp_map_kind /* Decrement usage count and deallocate if zero. */ GOMP_MAP_RELEASE = (GOMP_MAP_FLAG_SPECIAL_2 | GOMP_MAP_DELETE), - /* In OpenACC, attach a pointer to a mapped struct field. */ + /* The attach/detach mappings below use the OMP_CLAUSE_SIZE field as a + bias. This will typically be zero, except when mapping an array slice + with a non-zero base. In that case the bias will indicate the + (positive) difference between the start of the actual mapped data and + the "virtual" origin of the array. + In OpenACC, attach a pointer to a mapped struct field. */ GOMP_MAP_ATTACH = (GOMP_MAP_DEEP_COPY | 0), /* In OpenACC, detach a pointer to a mapped struct field. */ GOMP_MAP_DETACH = (GOMP_MAP_DEEP_COPY | 1), @@ -235,7 +243,6 @@ enum gomp_map_kind #define GOMP_VERSION 1 #define GOMP_VERSION_NVIDIA_PTX 1 #define GOMP_VERSION_INTEL_MIC 0 -#define GOMP_VERSION_HSA 0 #define GOMP_VERSION_GCN 1 #define GOMP_VERSION_PACK(LIB, DEV) (((LIB) << 16) | (DEV)) diff --git a/include/libiberty.h b/include/libiberty.h index 141cb88..591e9ac 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -641,6 +641,13 @@ extern int pexecute (const char *, char * const *, const char *, extern int pwait (int, int *, int); +/* Like bsearch, but takes and passes on an argument like qsort_r. */ + +extern void *bsearch_r (const void *, const void *, + size_t, size_t, + int (*)(const void *, const void *, void *), + void *); + #if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF /* Like sprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ |