This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/63979] [openacc] undefined reference to main._omp_fn.x
- From: "iverbin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Nov 2014 23:38:56 +0000
- Subject: [Bug other/63979] [openacc] undefined reference to main._omp_fn.x
- Auto-submitted: auto-generated
- References: <bug-63979-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63979
--- Comment #9 from Ilya Verbin <iverbin at gmail dot com> ---
(In reply to vries from comment #8)
> (In reply to Ilya Verbin from comment #5)
> > (In reply to vries from comment #4)
> > > But I think the main difference is that the offload table and main (using
> > > the offload table) are now in the same partition. I don't know whether
> > > that's by design or accident.
> > What do you mean by "main (using the offload table)"?
> It's used like this, in main:
> movl $__OFFLOAD_TABLE__, %esi
Ah, I see, this is something OpenACC specific, for some reason it passes
__OFFLOAD_TABLE__ to all functions.
Anyway, this is just a weak symbol, which points to the start of the offload
table. It's defined by mkoffload when all partitions are ready. I don't think
that it could somehow affect the LTO partitioning and the functions'
visibility.