gcc/libgomp/testsuite
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
lib
libgomp.c Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
libgomp.c-c++-common
libgomp.c++
libgomp.fortran re PR fortran/84381 (replace non-std 'call abort' by 'stop 1' in gfortran testsuite) 2018-03-25 16:00:52 +00:00
libgomp.graphite force-parallel-4.c: XFAIL one parallelizable loop. 2018-03-20 12:42:59 +00:00
libgomp.hsa.c [hsa] Fix PR82416 testcase 2018-02-08 14:06:26 +01:00
libgomp.oacc-c
libgomp.oacc-c-c++-common Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
libgomp.oacc-c++
libgomp.oacc-fortran re PR fortran/84381 (replace non-std 'call abort' by 'stop 1' in gfortran testsuite) 2018-03-25 16:00:52 +00:00
libgomp-test-support.exp.in
Makefile.am
Makefile.in