This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]