re PR libgomp/65742 (Several libgomp.oacc-* failures after r221922.)
authorJulian Brown <julian@codesourcery.com>
Thu, 28 May 2015 09:29:19 +0000 (09:29 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Thu, 28 May 2015 09:29:19 +0000 (09:29 +0000)
commit32eaed9380bfff86977823c0bf88fb69c2a375a6
tree2bd3ae354d8dfe258860472c06b79b535af2b30b
parent7d9880c94ce8d5bbce64f56f4e75c1ed073a1e52
re PR libgomp/65742 (Several libgomp.oacc-* failures after r221922.)

    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.

From-SVN: r223801
gcc/ChangeLog
gcc/builtins.c
libgomp/ChangeLog
libgomp/oacc-init.c
libgomp/plugin/plugin-host.c
libgomp/plugin/plugin-host.h [new file with mode: 0644]