Re: [gomp4] acc_on_device

2015-10-30 Thread Thomas Schwinge
Hi! On Fri, 30 Oct 2015 09:31:52 +0100, I wrote: > > --- libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c > > (revision 0) > > +++ libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device.c > > (working copy) > > In r229568 committed to gomp-4_0-branch as obvious: > > commi

Re: [gomp4] acc_on_device

2015-10-30 Thread Thomas Schwinge
Hi! On Thu, 29 Oct 2015 13:15:13 -0700, Nathan Sidwell wrote: > I've committed this to gomp4 branch. It resolves a problem with > builtin_acc_on_device and C++. > The test cases in the gcc testsuite were hiding the problem by providing part > of > openacc.h in the test directory, and this

[gomp4] acc_on_device

2015-10-29 Thread Nathan Sidwell
I've committed this to gomp4 branch. It resolves a problem with builtin_acc_on_device and C++. The builtin's arg is an int, but the acc_on_device fn shoud take enum acc_device_t. In C++ a prototype int Foo (enum X); fails to match up with a builtin of type int Foo (int); We'd worked arou