Hi! On 2019-05-13T21:33:20+0800, Chung-Lin Tang <chunglin_t...@mentor.com> wrote: > committed
(... in r271128.) As obvious, see attached "Make 'libgomp/target.c:gomp_unmap_tgt' 'static' again"; committed to trunk in r279529. Grüße Thomas
From 60272bbbd67100b5fd864bfa8a9495b249778a66 Mon Sep 17 00:00:00 2001 From: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed, 18 Dec 2019 17:00:28 +0000 Subject: [PATCH] Make 'libgomp/target.c:gomp_unmap_tgt' 'static' again This got changed to 'attribute_hidden' in r271128, but it's not actually used outside of 'libgomp/target.c'. libgomp/ * target.c (gomp_unmap_tgt): Make it 'static'. * libgomp.h (gomp_unmap_tgt): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@279529 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog | 5 +++++ libgomp/libgomp.h | 1 - libgomp/target.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 3c834175a29..5bd1c648ffe 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2019-12-18 Thomas Schwinge <tho...@codesourcery.com> + + * target.c (gomp_unmap_tgt): Make it 'static'. + * libgomp.h (gomp_unmap_tgt): Remove. + 2019-12-18 Tobias Burnus <tob...@codesourcery.com> PR middle-end/86416 diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 36dcca28353..038e356ab0b 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -1157,7 +1157,6 @@ extern struct target_mem_desc *gomp_map_vars_async (struct gomp_device_descr *, size_t, void **, void **, size_t *, void *, bool, enum gomp_map_vars_kind); -extern void gomp_unmap_tgt (struct target_mem_desc *); extern void gomp_unmap_vars (struct target_mem_desc *, bool); extern void gomp_unmap_vars_async (struct target_mem_desc *, bool, struct goacc_asyncqueue *); diff --git a/libgomp/target.c b/libgomp/target.c index 82ed38c01ec..41cf6a3d7d2 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -1105,7 +1105,7 @@ gomp_map_vars_async (struct gomp_device_descr *devicep, sizes, kinds, short_mapkind, pragma_kind); } -attribute_hidden void +static void gomp_unmap_tgt (struct target_mem_desc *tgt) { /* Deallocate on target the tgt->tgt_start .. tgt->tgt_end region. */ -- 2.17.1
signature.asc
Description: PGP signature