Blame SOURCES/gcc8-libgomp-testsuite.patch

f56e54
--- libgomp/testsuite/libgomp-test-support.exp.in.jj	2018-04-25 09:40:31.323655308 +0200
f56e54
+++ libgomp/testsuite/libgomp-test-support.exp.in	2019-04-25 20:01:50.028243827 +0200
f56e54
@@ -2,4 +2,5 @@ set cuda_driver_include "@CUDA_DRIVER_IN
f56e54
 set cuda_driver_lib "@CUDA_DRIVER_LIB@"
f56e54
 set hsa_runtime_lib "@HSA_RUNTIME_LIB@"
f56e54
 
f56e54
+set offload_plugins "@offload_plugins@"
f56e54
 set offload_targets "@offload_targets@"
f56e54
--- libgomp/testsuite/lib/libgomp.exp.jj	2018-04-25 09:40:31.584655429 +0200
f56e54
+++ libgomp/testsuite/lib/libgomp.exp	2019-05-24 11:41:51.015822702 +0200
f56e54
@@ -40,7 +40,7 @@ load_file libgomp-test-support.exp
f56e54
 # Populate offload_targets_s (offloading targets separated by a space), and
f56e54
 # offload_targets_s_openacc (the same, but with OpenACC names; OpenACC spells
f56e54
 # some of them a little differently).
f56e54
-set offload_targets_s [split $offload_targets ","]
f56e54
+set offload_targets_s [split $offload_plugins ","]
f56e54
 set offload_targets_s_openacc {}
f56e54
 foreach offload_target_openacc $offload_targets_s {
f56e54
     # Translate to OpenACC names, or skip if not yet supported.
f56e54
@@ -137,8 +137,8 @@ proc libgomp_init { args } {
f56e54
 
f56e54
     # Add liboffloadmic build directory in LD_LIBRARY_PATH to support
f56e54
     # non-fallback testing for Intel MIC targets
f56e54
-    global offload_targets
f56e54
-    if { [string match "*,intelmic,*" ",$offload_targets,"] } {
f56e54
+    global offload_plugins
f56e54
+    if { [string match "*,intelmic,*" ",$offload_plugins,"] } {
f56e54
 	append always_ld_library_path ":${blddir}/../liboffloadmic/.libs"
f56e54
 	append always_ld_library_path ":${blddir}/../liboffloadmic/plugin/.libs"
f56e54
 	# libstdc++ is required by liboffloadmic
f56e54
@@ -362,8 +362,8 @@ proc check_effective_target_offload_devi
f56e54
 # Return 1 if configured for nvptx offloading.
f56e54
 
f56e54
 proc check_effective_target_openacc_nvidia_accel_configured { } {
f56e54
-    global offload_targets
f56e54
-    if { ![string match "*,nvptx,*" ",$offload_targets,"] } {
f56e54
+    global offload_plugins
f56e54
+    if { ![string match "*,nvptx,*" ",$offload_plugins,"] } {
f56e54
         return 0
f56e54
     }
f56e54
     # PR libgomp/65099: Currently, we only support offloading in 64-bit