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: "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, 20 Nov 2014 21:42:17 +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 #8 from vries at gcc dot gnu.org ---
(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)"?
> The design was to have the offload table in the first partition (number
> zero),
It seems to be in partition 1:
...
$ grep -c OFFLOAD_TABLE ltrans1.s ltrans0.s
ltrans1.s:33
ltrans0.s:0
...
> and the table should be used only in libgomp through the
> GOMP_offload_register function.
It's used like this, in main:
...
movl $__OFFLOAD_TABLE__, %esi
...