[Patch] libgomp: Fix declare target link with offset array-section mapping [PR116107]

Tobias Burnus tburnus@baylibre.com
Fri Jul 26 18:05:43 GMT 2024


The main idea of 'link' is to permit putting only a subset of a
huge array on the device. Well, in order to make this work properly,
it requires that one can map an array section, which does not
start with the first element.

This patch adjusts the pointers such, that this actually works.

(Tested on x86-64-gnu-linux with Nvptx offloading.)
Comments, suggestions, remarks before I commit it?

Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20240726/134034a1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-link-offset.diff
Type: text/x-patch
Size: 3359 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20240726/134034a1/attachment.bin>


More information about the Gcc-patches mailing list