This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r223185 - in /branches/gomp-4_0-branch/libgomp:...
- From: tschwinge at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 13 May 2015 22:07:27 -0000
- Subject: r223185 - in /branches/gomp-4_0-branch/libgomp:...
Author: tschwinge
Date: Wed May 13 22:07:27 2015
New Revision: 223185
URL: https://gcc.gnu.org/viewcvs?rev=223185&root=gcc&view=rev
Log:
libgomp: Cope with DejaGnu having no mechanism to transfer environment variables to remote boards
No doubt, looking forward to the day, when this can be reverted.
libgomp/
* env.c (initialize_env): Remove static attribute.
* libgomp.map (INTERNAL): Export initialize_env.
* testsuite/lib/libgomp.exp (libgomp_init): Build a few object
files to pre-set environment variables.
(ALWAYS_CFLAGS): Add constructor-setenv-defaults.o to ldflags.
(libgomp_target_compile): Don't set the compiler.
* testsuite/libgomp.c++/c++.exp (GXX_UNDER_TEST): Provide default.
(libgomp_compile_options): Set the compiler.
* testsuite/libgomp.c/c.exp (libgomp_compile_options): Set the
compiler.
* testsuite/libgomp.fortran/fortran.exp (GFORTRAN_UNDER_TEST):
Provide default.
(libgomp_compile_options): Set the compiler.
* testsuite/libgomp.graphite/graphite.exp
(libgomp_compile_options): Set the compiler.
* testsuite/libgomp.oacc-c++/c++.exp (SAVE_GCC_UNDER_TEST)
(GCC_UNDER_TEST): Don't set.
(GXX_UNDER_TEST): Provide default.
(libgomp_compile_options): Set the compiler.
(ALWAYS_CFLAGS): Add the respective
constructor-setenv-ACC_DEVICE_TYPE-$offload_target_openacc.o to
ldflags.
(ACC_DEVICE_TYPE): Don't set.
* testsuite/libgomp.oacc-c/c.exp (libgomp_compile_options): Set
the compiler.
(ALWAYS_CFLAGS): Add the respective
constructor-setenv-ACC_DEVICE_TYPE-$offload_target_openacc.o to
ldflags.
(ACC_DEVICE_TYPE): Don't set.
* testsuite/libgomp.oacc-fortran/fortran.exp
(libgomp_compile_options): Set the compiler.
(ALWAYS_CFLAGS): Add the respective
constructor-setenv-ACC_DEVICE_TYPE-$offload_target_openacc.o to
ldflags.
(ACC_DEVICE_TYPE): Don't set.
Modified:
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
branches/gomp-4_0-branch/libgomp/env.c
branches/gomp-4_0-branch/libgomp/libgomp.map
branches/gomp-4_0-branch/libgomp/testsuite/lib/libgomp.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c++/c++.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c/c.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.fortran/fortran.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.graphite/graphite.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c++/c++.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c/c.exp
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/fortran.exp