[gcc(refs/users/guojiufu/heads/personal-branch)] openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.

Jiu Fu Guo guojiufu@gcc.gnu.org
Wed Jun 10 03:26:19 GMT 2020


https://gcc.gnu.org/g:23438370f768802fefd732529177fcea074c493b

commit 23438370f768802fefd732529177fcea074c493b
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jun 2 11:55:42 2020 +0200

    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.

Diff:
---
 libgomp/allocator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 	}


More information about the Gcc-cvs mailing list