From: Thomas Schwinge Date: Mon, 20 Feb 2023 14:29:44 +0000 (+0100) Subject: Prototype 'GOMP_enable_pinned_mode' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9657d906869e098340c23118c2eb8592d9e77ac5;p=thirdparty%2Fgcc.git Prototype 'GOMP_enable_pinned_mode' Fix-up for og12 commit 842df187487f5b16ae29bbe7e9acd79661a9df48 "openmp: -foffload-memory=pinned". No functional change. libgomp/ * libgomp_g.h (GOMP_enable_pinned_mode): New. --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index c5a7860478e4..e44750930550 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,5 +1,7 @@ 2023-02-20 Thomas Schwinge + * libgomp_g.h (GOMP_enable_pinned_mode): New. + * config/linux/allocator.c (linux_memspace_alloc): Add 'init0' formal parameter. Adjust all users. (linux_memspace_alloc, linux_memspace_free): Attempt to allocate diff --git a/libgomp/libgomp_g.h b/libgomp/libgomp_g.h index ece1f97a61f3..fe66a53d94a3 100644 --- a/libgomp/libgomp_g.h +++ b/libgomp/libgomp_g.h @@ -375,6 +375,7 @@ extern void GOMP_teams_reg (void (*) (void *), void *, unsigned, unsigned, extern void *GOMP_alloc (size_t, size_t, uintptr_t); extern void GOMP_free (void *, uintptr_t); +extern void GOMP_enable_pinned_mode (void); /* error.c */