Re: [Patch] Fix OpenMP offload handling for target-link variables for nvptx (PR81689)

2020-03-24 Thread Jakub Jelinek via Gcc-patches
On Tue, Mar 24, 2020 at 02:16:40PM +0100, Tobias Burnus wrote: > For nvptx, targetm_common.have_named_sections, hence one is You mean targetm_common.have_named_sections is false, right? > in the else branch of omp_finish_file – and the else branch > did not handle target-link variables. > > With

[Patch] Fix OpenMP offload handling for target-link variables for nvptx (PR81689)

2020-03-24 Thread Tobias Burnus
For nvptx, targetm_common.have_named_sections, hence one is in the else branch of omp_finish_file – and the else branch did not handle target-link variables. With this patch, the libgomp.c/target-link-1.c testcase now works. When looking at the nvptx "assembler", I saw that TREE_PUBLIC was set f