gcc/include
Tobias Burnus 972da55746 OpenMP/Fortran: Fix (re)mapping of allocatable/pointer arrays [PR96668]
gcc/cp/ChangeLog:

	PR fortran/96668
	* cp-gimplify.c (cxx_omp_finish_clause): Add bool openacc arg.
	* cp-tree.h (cxx_omp_finish_clause): Likewise
	* semantics.c (handle_omp_for_class_iterator): Update call.

gcc/fortran/ChangeLog:

	PR fortran/96668
	* trans.h (gfc_omp_finish_clause): Add bool openacc arg.
	* trans-openmp.c (gfc_omp_finish_clause): Ditto. Use
	GOMP_MAP_ALWAYS_POINTER with PSET for pointers.
	(gfc_trans_omp_clauses): Like the latter and also if the always
	modifier is used.

gcc/ChangeLog:

	PR fortran/96668
	* gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
	update omp_finish_clause calls.
	(gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
	gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
	and/or gimplify_for calls.
	* langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
	* langhooks.c (lhd_omp_finish_clause): Likewise.
	* langhooks.h (lhd_omp_finish_clause): Likewise.
	* omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
	'declare target' vars.

include/ChangeLog:

	PR fortran/96668
	* gomp-constants.h (GOMP_MAP_ALWAYS_POINTER_P): Define.

libgomp/ChangeLog:

	PR fortran/96668
	* libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
	* target.c (gomp_map_vars_existing): Add always_to_flag flag.
	(gomp_map_vars_existing): Update call to it.
	(gomp_map_fields_existing): Likewise
	(gomp_map_vars_internal): Update PSET handling such that if a nullptr is
	now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
	remapped.
	(GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
	GOMP_MAP_POINTER.
	* testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
	* testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2020-09-15 09:24:47 +02:00
..
gdb Update copyright years. 2020-01-01 12:51:42 +01:00
ansidecl.h Update copyright years. 2020-01-01 12:51:42 +01:00
ChangeLog Daily bump. 2020-09-10 00:16:28 +00:00
ChangeLog-9103 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
COPYING
COPYING3
demangle.h Update copyright years. 2020-01-01 12:51:42 +01:00
dwarf2.def Update copyright years. 2020-01-01 12:51:42 +01:00
dwarf2.h Add codes for DWARF v5 .dwp sections to dwarf2.h. 2020-09-09 14:05:04 -07:00
dyn-string.h Update copyright years. 2020-01-01 12:51:42 +01:00
environ.h Update copyright years. 2020-01-01 12:51:42 +01:00
fibheap.h Update copyright years. 2020-01-01 12:51:42 +01:00
filenames.h Do not use HAVE_DOS_BASED_FILE_SYSTEM for Cygwin. 2020-04-17 09:22:51 +02:00
floatformat.h floatformat.h: Add bfloat16 support. 2020-09-08 17:38:12 +00:00
fnmatch.h Update copyright years. 2020-01-01 12:51:42 +01:00
gcc-c-fe.def Update copyright years. 2020-01-01 12:51:42 +01:00
gcc-c-interface.h Update copyright years. 2020-01-01 12:51:42 +01:00
gcc-cp-fe.def Update copyright years. 2020-01-01 12:51:42 +01:00
gcc-cp-interface.h Update copyright years. 2020-01-01 12:51:42 +01:00
gcc-interface.h Update copyright years. 2020-01-01 12:51:42 +01:00
getopt.h Update copyright years. 2020-01-01 12:51:42 +01:00
gomp-constants.h OpenMP/Fortran: Fix (re)mapping of allocatable/pointer arrays [PR96668] 2020-09-15 09:24:47 +02:00
hashtab.h libiberty/hashtab: More const parameters 2020-02-05 13:01:06 +00:00
hsa.h Update copyright years. 2020-01-01 12:51:42 +01:00
leb128.h Update copyright years. 2020-01-01 12:51:42 +01:00
libiberty.h This patch removes the use of the "register" keyword from the bsearch() and bsearch_r() functions supplied by libiberty. The register keyword is deprecated in C++17. 2020-06-26 10:06:48 +01:00
longlong.h Update copyright years. 2020-01-01 12:51:42 +01:00
lto-symtab.h Fix comma at end of enumerator list seen with -std=c++98. 2020-03-21 08:09:02 +01:00
md5.h Update copyright years. 2020-01-01 12:51:42 +01:00
objalloc.h Update copyright years. 2020-01-01 12:51:42 +01:00
obstack.h Update copyright years. 2020-01-01 12:51:42 +01:00
partition.h Update copyright years. 2020-01-01 12:51:42 +01:00
plugin-api.h Fix typo in a macro usage. 2020-04-01 09:37:37 +02:00
safe-ctype.h Update copyright years. 2020-01-01 12:51:42 +01:00
sha1.h Update copyright years. 2020-01-01 12:51:42 +01:00
simple-object.h Update copyright years. 2020-01-01 12:51:42 +01:00
sort.h Update copyright years. 2020-01-01 12:51:42 +01:00
splay-tree.h Update copyright years. 2020-01-01 12:51:42 +01:00
symcat.h Update copyright years. 2020-01-01 12:51:42 +01:00
timeval-utils.h Update copyright years. 2020-01-01 12:51:42 +01:00
unique-ptr.h Update copyright years. 2020-01-01 12:51:42 +01:00
vtv-change-permission.h Update copyright years. 2020-01-01 12:51:42 +01:00
xregex2.h Update copyright years. 2020-01-01 12:51:42 +01:00
xregex.h system.h [...]: Wrap C function declarations in extern "C". 2011-07-25 14:24:59 +00:00
xtensa-config.h Update copyright years. 2020-01-01 12:51:42 +01:00