[Bug libgomp/69607] undefined reference to MAIN__._omp_fn.0 in atomic_capture-1.f with -flto

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 4 23:01:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69607

--- Comment #10 from vries at gcc dot gnu.org ---
Created attachment 37585
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37585&action=edit
tentative patch

(In reply to iverbin from comment #9)
> (In reply to vries from comment #8)
> > (In reply to iverbin from comment #7)
> > > I believe we should drop support of offloading without linker plugin.
> > 
> > Same failures occur with -fuse-linker-plugin though.
> 
> Ok, I see.
> Maybe we could promote all *omp_fn* to global? It should fix "undefined
> reference" from offload table in one partition to *omp_fn* in another.

That would be fine by me.

I'm currently trying to build this patch. Any hints appreciated.


More information about the Gcc-bugs mailing list