[committed] Address compiler diagnostics in libgomp.oacc-c-c++-common/pr87835.c (was: [committed][nvptx, libgomp] Fix map_push)

2019-05-08 Thread Thomas Schwinge
Hi! On Wed, 23 Jan 2019 09:19:33 +0100, Tom de Vries wrote: > The map field of a struct ptx_stream is [...] > The current implemention gets at least the first and most basic scenario > wrong: > [...] > This problem causes the test-case asyncwait-1.c to fail intermittently on some > systems. T

[committed][nvptx, libgomp] Fix map_push

2019-01-23 Thread Tom de Vries
Hi, The map field of a struct ptx_stream is a FIFO. The FIFO is implemented as a single linked list, with pop-from-the-front semantics. The function map_pop pops an element, either by: - deallocating the element, if there is more than one element - or marking the element inactive, if there's onl