From: Thomas Schwinge Date: Mon, 11 May 2026 20:07:13 +0000 (+0200) Subject: libgomp: Prototype "accel" 'GOMP_INDIRECT_ADDR_MAP', 'GOMP_INDIRECT_ADDR_HMAP' in... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf1a808a41c4fc48eea886e00984eda17a0cdc3;p=thirdparty%2Fgcc.git 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 --git a/libgomp/config/accel/target-indirect.h b/libgomp/config/accel/target-indirect.h index d384e6acf48..97f3d0c9540 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 c368aa37a47..be148c3f8bf 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 50641ce50ce..cd726738170 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));