+2021-07-27 Ulrich Drepper <drepper@gmail.com>
+
+ * env.c (wait_policy, stacksize): New static variables,
+ move out of handle_omp_display_env.
+ (omp_display_env): New function. The meat of the old
+ handle_omp_display_env function.
+ (handle_omp_display_env): Change to not take parameters
+ and instead use the global variables. Only perform
+ parsing, defer to omp_display_env for the implementation.
+ (initialize_env): Remove local variables wait_policy and
+ stacksize. Don't pass parameters to handle_omp_display_env.
+ * fortran.c: Add ialias_redirect for omp_display_env.
+ (omp_display_env_, omp_display_env_8_): New functions.
+ * libgomp.map (OMP_5.1): New version. Add omp_display_env,
+ omp_display_env_, and omp_display_env_8_.
+ * omp.h.in: Declare omp_display_env.
+ * omp_lib.f90.in: Likewise.
+ * omp_lib.h.in: Likewise.
+
+2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
+ Julian Brown <julian@codesourcery.com>
+
+ * target.c (gomp_coalesce_buf_add): Update comment.
+ (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
+ 'aq && cbuf'.
+ (gomp_map_vars_internal): Only 'if (!aq)', do
+ 'gomp_coalesce_buf_add'.
+ * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
+ XFAIL.
+
+2021-07-27 Julian Brown <julian@codesourcery.com>
+ Thomas Schwinge <thomas@codesourcery.com>
+
+ * libgomp.h (gomp_copy_host2dev): Update prototype.
+ * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
+ argument to gomp_copy_host2dev (false).
+ * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
+ (copy_data): Don't free src.
+ (queue_push_copy): Remove free_src handling.
+ (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
+ (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
+ snapshotting.
+ (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
+ queue_push_copy.
+ * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
+ (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
+ data when true, and set up deferred freeing of temporary buffer.
+ (gomp_copy_dev2host): Update call to goacc_device_copy_async.
+ (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
+ (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
+ calls to gomp_copy_host2dev with appropriate ephemeral argument.
+ * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
+ XFAIL.
+
+2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
+ Tom de Vries <tom@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
+ * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
+
+2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
+ sequencing of 'async' data copying vs. profiling events.
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
+ Likewise.
+
+2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
+ Julian Brown <julian@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
+ 'async'/'wait' issue.
+ * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
+ * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
+ * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
+
2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>