]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp: Prototype "accel" 'GOMP_INDIRECT_ADDR_MAP', 'GOMP_INDIRECT_ADDR_HMAP' in...
authorThomas Schwinge <tschwinge@baylibre.com>
Mon, 11 May 2026 20:07:13 +0000 (22:07 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Thu, 18 Jun 2026 21:07:28 +0000 (23:07 +0200)
..., instead of repeating 'extern' prototypes in all "accel" 'team.c' files
for 'GOMP_INDIRECT_ADDR_MAP' vs. no prototype for 'GOMP_INDIRECT_ADDR_HMAP',
as done in commit da5803c794d16deb461c93588461856fbf6e54ac
"libgomp: Init hash table for 'indirect'-clause of 'declare target' on the host [PR114445, PR119857]".

libgomp/
* config/accel/target-indirect.h (GOMP_INDIRECT_ADDR_MAP)
(GOMP_INDIRECT_ADDR_HMAP): Prototype.
* config/gcn/team.c: Adjust.
* config/nvptx/team.c: Likewise.

libgomp/config/accel/target-indirect.h
libgomp/config/gcn/team.c
libgomp/config/nvptx/team.c

index d384e6acf48ece65a5246be98edd44de6f36c55a..97f3d0c95404adf4dd847101ca4c123492944204 100644 (file)
 
 #include "libgomp.h"
 
+extern void *GOMP_INDIRECT_ADDR_MAP;
+
+extern void *GOMP_INDIRECT_ADDR_HMAP;
+
 extern void build_indirect_map (void);
 
 #endif /* GOMP_TARGET_INDIRECT_H */
index c368aa37a475f571ad78695c26e426c4020414bc..be148c3f8bf6fa172dd5e2fa3281f53b2fd85e2f 100644 (file)
@@ -36,8 +36,6 @@
 
 #define UNLIKELY(x) (__builtin_expect ((x), 0))
 
-extern void *GOMP_INDIRECT_ADDR_MAP;
-
 /* Defined in basic-allocator.c via config/amdgcn/allocator.c.  */
 void __gcn_lowlat_init (void *heap, size_t size);
 
index 50641ce50ce6ba1ca99772f938c3c9adb0bf298a..cd72673817079a8c2746f1d3dc4d82f12e8efae3 100644 (file)
@@ -34,8 +34,6 @@
 
 #define UNLIKELY(x) (__builtin_expect ((x), 0))
 
-extern void *GOMP_INDIRECT_ADDR_MAP;
-
 struct gomp_thread *nvptx_thrs __attribute__((shared,nocommon));
 int __gomp_team_num __attribute__((shared,nocommon));