gcc/libgomp
Tom de Vries 46dbeb4085 Fix switch conversion in offloading functions
2018-03-26  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/85063
	* omp-general.c (offloading_function_p): New function.  Factor out
	of ...
	* omp-offload.c (pass_omp_target_link::gate): ... here.
	* omp-general.h (offloading_function_p): Declare.
	* tree-switch-conversion.c (build_one_array): Mark CSWTCH.x variable
	with attribute omp declare target for offloading functions.

	* testsuite/libgomp.c/switch-conversion-2.c: New test.
	* testsuite/libgomp.c/switch-conversion.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.

From-SVN: r258852
2018-03-26 09:45:49 +00:00
..
config Update copyright years. 2018-01-03 11:03:58 +01:00
plugin Update copyright years. 2018-01-03 11:03:58 +01:00
testsuite Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
acinclude.m4
aclocal.m4
affinity.c Update copyright years. 2018-01-03 11:03:58 +01:00
alloc.c Update copyright years. 2018-01-03 11:03:58 +01:00
atomic.c Update copyright years. 2018-01-03 11:03:58 +01:00
barrier.c Update copyright years. 2018-01-03 11:03:58 +01:00
ChangeLog Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
ChangeLog.graphite
config.h.in
configure CET shouldn't be enabled in 32-bit run-time libraries by defualt 2018-02-19 17:25:49 +01:00
configure.ac
configure.tgt
critical.c Update copyright years. 2018-01-03 11:03:58 +01:00
env.c Update copyright years. 2018-01-03 11:03:58 +01:00
error.c Update copyright years. 2018-01-03 11:03:58 +01:00
fortran.c Update copyright years. 2018-01-03 11:03:58 +01:00
hashtab.h Update copyright years. 2018-01-03 11:03:58 +01:00
icv-device.c Update copyright years. 2018-01-03 11:03:58 +01:00
icv.c Update copyright years. 2018-01-03 11:03:58 +01:00
iter_ull.c Update copyright years. 2018-01-03 11:03:58 +01:00
iter.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp_f.h.in Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp_g.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp.map
libgomp.spec.in
libgomp.texi
lock.c Update copyright years. 2018-01-03 11:03:58 +01:00
loop_ull.c Update copyright years. 2018-01-03 11:03:58 +01:00
loop.c Update copyright years. 2018-01-03 11:03:58 +01:00
Makefile.am
Makefile.in re PR fortran/84381 (replace non-std 'call abort' by 'stop 1' in gfortran testsuite) 2018-03-25 16:00:52 +00:00
oacc-async.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-cuda.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-host.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-init.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-int.h Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-mem.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-parallel.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-plugin.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-plugin.h Update copyright years. 2018-01-03 11:03:58 +01:00
omp_lib.f90.in Update copyright years. 2018-01-03 11:03:58 +01:00
omp_lib.h.in Update copyright years. 2018-01-03 11:03:58 +01:00
omp.h.in re PR libgomp/84096 (Wrong prototype for omp_init_nest_lock_with_hint() in "omp.h.in") 2018-01-30 00:38:01 +01:00
openacc_lib.h Update copyright years. 2018-01-03 11:03:58 +01:00
openacc.f90 Update copyright years. 2018-01-03 11:03:58 +01:00
openacc.h Update copyright years. 2018-01-03 11:03:58 +01:00
ordered.c Update copyright years. 2018-01-03 11:03:58 +01:00
parallel.c Update copyright years. 2018-01-03 11:03:58 +01:00
priority_queue.c Update copyright years. 2018-01-03 11:03:58 +01:00
priority_queue.h Update copyright years. 2018-01-03 11:03:58 +01:00
sections.c Update copyright years. 2018-01-03 11:03:58 +01:00
secure_getenv.h Update copyright years. 2018-01-03 11:03:58 +01:00
single.c Update copyright years. 2018-01-03 11:03:58 +01:00
splay-tree.c Update copyright years. 2018-01-03 11:03:58 +01:00
splay-tree.h Update copyright years. 2018-01-03 11:03:58 +01:00
target.c Update copyright years. 2018-01-03 11:03:58 +01:00
task.c Update copyright years. 2018-01-03 11:03:58 +01:00
taskloop.c Update copyright years. 2018-01-03 11:03:58 +01:00
team.c Update copyright years. 2018-01-03 11:03:58 +01:00
work.c Update copyright years. 2018-01-03 11:03:58 +01:00