https://gcc.gnu.org/g:ecf1a808a41c4fc48eea886e00984eda17a0cdc3

commit r17-1678-gecf1a808a41c4fc48eea886e00984eda17a0cdc3
Author: Thomas Schwinge <[email protected]>
Date:   Mon May 11 22:07:13 2026 +0200

    libgomp: Prototype "accel" 'GOMP_INDIRECT_ADDR_MAP', 
'GOMP_INDIRECT_ADDR_HMAP' in 'target-indirect.h'
    
    ..., 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.

Diff:
---
 libgomp/config/accel/target-indirect.h | 4 ++++
 libgomp/config/gcn/team.c              | 2 --
 libgomp/config/nvptx/team.c            | 2 --
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libgomp/config/accel/target-indirect.h 
b/libgomp/config/accel/target-indirect.h
index d384e6acf48e..97f3d0c95404 100644
--- a/libgomp/config/accel/target-indirect.h
+++ b/libgomp/config/accel/target-indirect.h
@@ -27,6 +27,10 @@
 
 #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 */
diff --git a/libgomp/config/gcn/team.c b/libgomp/config/gcn/team.c
index c368aa37a475..be148c3f8bf6 100644
--- a/libgomp/config/gcn/team.c
+++ b/libgomp/config/gcn/team.c
@@ -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);
 
diff --git a/libgomp/config/nvptx/team.c b/libgomp/config/nvptx/team.c
index 50641ce50ce6..cd7267381707 100644
--- a/libgomp/config/nvptx/team.c
+++ b/libgomp/config/nvptx/team.c
@@ -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));

Reply via email to