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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23438370f768802fefd732529177fcea074c493b;p=gcc.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 66308ab6669..4e293992d22 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 }