[Bug other/63979] [openacc] undefined reference to main._omp_fn.x
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 20 21:42:00 GMT 2014
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
...
More information about the Gcc-bugs
mailing list