On 02/12/2021 12:58, Jakub Jelinek wrote:
I've tried modifying offload_handle_link_vars but that spot doesn't catch
the omp_data_sizes variables emitted by libgomp.c-c++-common/target_42.c,
which was one of the motivating examples.

Why doesn't catch it?  Is the variable created only post-IPA?
I'd think that it should have been created before IPA, streamed and
therefore I don't understand why you don't see it after streaming LTO in.

On closer inspection it does, in fact, catch it as you'd expect, but then the variable is no longer marked public when it gets to pass_omp_target_link::execute, so something somewhere is resetting it. More investigation is needed....

Andrew

Reply via email to