From: Jakub Jelinek Date: Tue, 2 Jun 2020 09:55:42 +0000 (+0200) Subject: openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined. X-Git-Tag: basepoints/gcc-12~7440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23438370f768802fefd732529177fcea074c493b;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. --- 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 }