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 #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
...


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