On 09/10/2015 03:41 PM, Joseph Myers wrote: > Ping^2. This patch > <https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01748.html> 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 mkoffload)? 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? Bernd