[Bug libgomp/65742] [5 Regression] Several libgomp.oacc-* failures after r221922.

2015-07-15 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65742

Thomas Schwinge tschwinge at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Assignee|jules at gcc dot gnu.org   |tschwinge at gcc dot 
gnu.org

--- Comment #10 from Thomas Schwinge tschwinge at gcc dot gnu.org ---
Now also fixed on gcc-5-branch.


[Bug libgomp/65742] [5 Regression] Several libgomp.oacc-* failures after r221922.

2015-07-15 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65742

--- Comment #9 from Thomas Schwinge tschwinge at gcc dot gnu.org ---
Author: tschwinge
Date: Wed Jul 15 11:55:00 2015
New Revision: 225822

URL: https://gcc.gnu.org/viewcvs?rev=225822root=gccview=rev
Log:
[PR libgomp/65742, PR middle-end/66332] OpenACC acc_on_device fixes

Backport trunk r223801:

PR libgomp/65742

gcc/
* builtins.c (expand_builtin_acc_on_device): Don't use open-coded
sequence for !ACCEL_COMPILER.

libgomp/
* oacc-init.c (plugin/plugin-host.h): Include.
(acc_on_device): Check whether we're in an offloaded region for
host_nonshm
plugin. Don't use __builtin_acc_on_device.
* plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
nonshm_exec flag in thread-local data.
(GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
data for host_nonshm plugin.
(GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
for host_nonshm plugin.
* plugin/plugin-host.h: New.

Mark parameters with ATTRIBUTE_UNUSED

Backport trunk r223805:

* builtins.c (expand_builtin_acc_on_device): Mark parameters
with ATTRIBUTE_UNUSED.

[PR libgomp/65742, PR middle-end/66332] XFAIL acc_on_device compile-time
evaluation

The OpenACC 2.0a specification mandates differently, but we currently do get a
library call in the host code.

Backport trunk r224028:

PR libgomp/65742
PR middle-end/66332

gcc/testsuite/
* c-c++-common/goacc/acc_on_device-2.c: XFAIL for C, too.

Added:
branches/gcc-5-branch/libgomp/plugin/plugin-host.h
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/builtins.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c
branches/gcc-5-branch/libgomp/ChangeLog
branches/gcc-5-branch/libgomp/oacc-init.c
branches/gcc-5-branch/libgomp/plugin/plugin-host.c


[Bug libgomp/65742] [5 Regression] Several libgomp.oacc-* failures after r221922.

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65742

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P2
 Status|NEW |ASSIGNED
Summary|[5/6 Regression] Several|[5 Regression] Several
   |libgomp.oacc-* failures |libgomp.oacc-* failures
   |after r221922.  |after r221922.

--- Comment #8 from Richard Biener rguenth at gcc dot gnu.org ---
Fixed on trunk - can you please fix the gcc 5 branch as well?


[Bug libgomp/65742] [5 Regression] Several libgomp.oacc-* failures after r221922.

2015-04-11 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65742

Dominique d'Humieres dominiq at lps dot ens.fr changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-04-11
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr ---
Confirmed on x86_64-apple-darwin1*.