aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-05-06 10:49:55 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-05-06 10:49:55 +0200
commit2bbbfa4e2885f86ea418de9f665375594bf38aaa (patch)
tree554c6546e0520d4b59d68e4d3f9aa81765d677c0 /libgomp
parent33a0bfcdca547909f5510dee3ce0b76e41b9d1f6 (diff)
downloadgcc-2bbbfa4e2885f86ea418de9f665375594bf38aaa.zip
gcc-2bbbfa4e2885f86ea418de9f665375594bf38aaa.tar.gz
gcc-2bbbfa4e2885f86ea418de9f665375594bf38aaa.tar.bz2
Clean up libgomp GCC 5 legacy support
libgomp/ * oacc-parallel.c: Add comments to legacy entry points (GCC 5). From-SVN: r270901
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog4
-rw-r--r--libgomp/oacc-parallel.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 30bb2d4..64e0a8a 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
+
+ * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
+
2019-03-27 Kevin Buettner <kevinb@redhat.com>
* team.c (gomp_team_start): Initialize pool->threads[0].
diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c
index b77c5e8..f5fb63c 100644
--- a/libgomp/oacc-parallel.c
+++ b/libgomp/oacc-parallel.c
@@ -275,7 +275,7 @@ GOACC_parallel_keyed (int flags_m, void (*fn) (void *),
acc_dev->openacc.async_set_async_func (acc_async_sync);
}
-/* Legacy entry point, only provide host execution. */
+/* Legacy entry point (GCC 5). Only provide host fallback execution. */
void
GOACC_parallel (int flags_m, void (*fn) (void *),
@@ -649,12 +649,16 @@ GOACC_wait (int async, int num_waits, ...)
acc_wait_all_async (async);
}
+/* Legacy entry point (GCC 5). */
+
int
GOACC_get_num_threads (void)
{
return 1;
}
+/* Legacy entry point (GCC 5). */
+
int
GOACC_get_thread_num (void)
{