diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-06-02 11:55:42 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-06-02 11:56:59 +0200 |
commit | 23438370f768802fefd732529177fcea074c493b (patch) | |
tree | ea96d88a63cfdd0e162b0512556561c64fee75b6 /libgomp/allocator.c | |
parent | 65f1ca2e3d8778cd3e756ae3fe100313f43d081b (diff) | |
download | gcc-23438370f768802fefd732529177fcea074c493b.zip gcc-23438370f768802fefd732529177fcea074c493b.tar.gz gcc-23438370f768802fefd732529177fcea074c493b.tar.bz2 |
openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.
2020-06-02 Jakub Jelinek <jakub@redhat.com>
* allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
defined.
Diffstat (limited to 'libgomp/allocator.c')
-rw-r--r-- | libgomp/allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/allocator.c b/libgomp/allocator.c index 66308ab..4e29399 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 } |