Make 'libgomp/target.c:gomp_unmap_tgt' 'static' again
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 18 Dec 2019 17:00:28 +0000 (18:00 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 18 Dec 2019 17:00:28 +0000 (18:00 +0100)
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.

From-SVN: r279529

libgomp/ChangeLog
libgomp/libgomp.h
libgomp/target.c

index 3c834175a294f847bdd31abc4b956069b607aace..5bd1c648ffe4cd024b76b0a563fee77c82b21e8d 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * target.c (gomp_unmap_tgt): Make it 'static'.
+       * libgomp.h (gomp_unmap_tgt): Remove.
+
 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
 
        PR middle-end/86416
index 36dcca2835379ea43ffd0c103ac63dc1e96281e0..038e356ab0bd2d7b63d7afd9dad0d960b6410009 100644 (file)
@@ -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 *);
index 82ed38c01ec8d165383644fd1aa2a4906ebde16c..41cf6a3d7d2bda576e15430d4860e3f17dba17fd 100644 (file)
@@ -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.  */