This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/69607] undefined reference to MAIN__._omp_fn.0 in atomic_capture-1.f with -flto
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Feb 2016 23:01:43 +0000
- Subject: [Bug libgomp/69607] undefined reference to MAIN__._omp_fn.0 in atomic_capture-1.f with -flto
- Auto-submitted: auto-generated
- References: <bug-69607-4 at http dot gcc dot gnu dot org/bugzilla/>
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.