This is the mail archive of the gcc@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]

Re: [gomp4] Questions about "declare target" and "target update" pragmas


Hi Jakub,

I have one more question :)
This testcase seems to be correct... or not?

#pragma omp declare target
extern int G;
#pragma omp end declare target

int G;

int main ()
{
  #pragma omp target update to(G)

  return 0;
}

If yes, then we have a problem that the decl of G in varpool_node::get_create
doesn't have "omp declare target" attribute.

Thanks,
  -- Ilya


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