From: Tobias Burnus Date: Wed, 15 Jul 2020 07:58:18 +0000 (+0200) Subject: openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=698518794aaf10df5d27a392d835a4b90282d57e;p=thirdparty%2Fgcc.git openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined. 2020-06-02 Jakub Jelinek * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not defined. (cherry picked from commit 23438370f768802fefd732529177fcea074c493b) --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 13c3f22ef500..98d8e8c4b71b 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,11 @@ +2020-07-15 Tobias Burnus + + Backport from mainline + 2020-06-02 Jakub Jelinek + + * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not + defined. + 2020-07-15 Tobias Burnus Backport from mainline diff --git a/libgomp/allocator.c b/libgomp/allocator.c index 66308ab66696..4e293992d226 100644 --- a/libgomp/allocator.c +++ b/libgomp/allocator.c @@ -348,7 +348,7 @@ omp_free (void *ptr, omp_allocator_handle_t allocator) MEMMODEL_RELAXED); #else gomp_mutex_lock (&allocator_data->lock); - allocator_data->used_pool_size -= data->new_size; + allocator_data->used_pool_size -= data->size; gomp_mutex_unlock (&allocator_data->lock); #endif }