aboutsummaryrefslogtreecommitdiff
path: root/libgomp/oacc-host.c
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2015-09-22 06:45:22 +0000
committerChung-Lin Tang <cltang@gcc.gnu.org>2015-09-22 06:45:22 +0000
commit6bb4c3e2d8a978c590c01df7807c4e0819b33b85 (patch)
treefa49e89a9624dff958ff59af53b25d34ea4cdb4e /libgomp/oacc-host.c
parentdc2a24eddf28bf75a8869168202fa19a856af055 (diff)
downloadgcc-6bb4c3e2d8a978c590c01df7807c4e0819b33b85.zip
gcc-6bb4c3e2d8a978c590c01df7807c4e0819b33b85.tar.gz
gcc-6bb4c3e2d8a978c590c01df7807c4e0819b33b85.tar.bz2
re PR libgomp/67141 (wrong libgomp mutex initialisation order)
2015-09-22 Chung-Lin Tang <cltang@codesourcery.com> PR libgomp/67141 * oacc-int.h (goacc_host_init): Add declaration. * oacc-host.c (goacc_host_init): Remove static and constructor attribute. * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end. From-SVN: r227994
Diffstat (limited to 'libgomp/oacc-host.c')
-rw-r--r--libgomp/oacc-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/oacc-host.c b/libgomp/oacc-host.c
index 55bb16b..284bb0e 100644
--- a/libgomp/oacc-host.c
+++ b/libgomp/oacc-host.c
@@ -256,7 +256,7 @@ static struct gomp_device_descr host_dispatch =
};
/* Initialize and register this device type. */
-static __attribute__ ((constructor)) void
+void
goacc_host_init (void)
{
gomp_mutex_init (&host_dispatch.lock);