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 other/63979] [openacc] undefined reference to main._omp_fn.x


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.

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