mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
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.
This commit is contained in:
parent
65f1ca2e3d
commit
23438370f7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user