Ping^2 Re: Pass -foffload targets from driver to libgomp at link time

Bernd Schmidt
Thu Sep 10 14:03:00 GMT 2015

On 09/10/2015 03:41 PM, Joseph Myers wrote:
> Ping^2.  This patch 
> <> is still 
> pending review.

No fundamental objections, but I have some questions. Cuold you describe
what the handling of flags/lang_mask accomplishes in this patch? Would
option handling be simpler if the creation/compilation of the extra file
happened in lto_wrapper (where we already do similar things through

I initially thought the information you're giving to
GOMP_set_offload_targets is already available implicitly, from the calls
to GOMP_offload_register. But digging through the archives it sounds
like the problem is that if there's no offloadable code, no offload
image will be generated. Is that correct?


More information about the Gcc-patches mailing list