projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65f1ca2
)
openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.
author
Jakub Jelinek
<jakub@redhat.com>
Tue, 2 Jun 2020 09:55:42 +0000
(11:55 +0200)
committer
Jakub Jelinek
<jakub@redhat.com>
Tue, 2 Jun 2020 09:56:59 +0000
(11:56 +0200)
2020-06-02 Jakub Jelinek <jakub@redhat.com>
* allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
defined.
libgomp/allocator.c
patch
|
blob
|
history
diff --git
a/libgomp/allocator.c
b/libgomp/allocator.c
index 66308ab666968b906427b9242fb44a6fec55e390..4e293992d226145d58e9e75c52875f6f566d6579 100644
(file)
--- 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
}