public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-4568] openmp: Use FIELD_TGT_EMPTY once more
@ 2020-10-30 11:05 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-10-30 11:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5cafae2c5baf161d4cff83a5d089952fb9d3b7d3

commit r11-4568-g5cafae2c5baf161d4cff83a5d089952fb9d3b7d3
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Oct 30 12:03:36 2020 +0100

    openmp: Use FIELD_TGT_EMPTY once more
    
    2020-10-30  Jakub Jelinek  <jakub@redhat.com>
    
            * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
            even in field_tgt_clear initializer.

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

diff --git a/libgomp/target.c b/libgomp/target.c
index 1a8c67c2df5..3432a835369 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -1020,7 +1020,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep,
       if (not_found_cnt)
 	tgt->array = gomp_malloc (not_found_cnt * sizeof (*tgt->array));
       splay_tree_node array = tgt->array;
-      size_t j, field_tgt_offset = 0, field_tgt_clear = ~(size_t) 0;
+      size_t j, field_tgt_offset = 0, field_tgt_clear = FIELD_TGT_EMPTY;
       uintptr_t field_tgt_base = 0;
 
       for (i = 0; i < mapnum; i++)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-30 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 11:05 [gcc r11-4568] openmp: Use FIELD_TGT_EMPTY once more Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).