Blame SOURCES/gcc8-libgomp-testsuite.patch

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