]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.
authorJakub Jelinek <jakub@redhat.com>
Tue, 2 Jun 2020 09:55:42 +0000 (11:55 +0200)
committerJakub 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

index 66308ab666968b906427b9242fb44a6fec55e390..4e293992d226145d58e9e75c52875f6f566d6579 100644 (file)
@@ -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
        }