diff options
author | Chung-Lin Tang <cltang@codesourcery.com> | 2015-09-22 06:45:22 +0000 |
---|---|---|
committer | Chung-Lin Tang <cltang@gcc.gnu.org> | 2015-09-22 06:45:22 +0000 |
commit | 6bb4c3e2d8a978c590c01df7807c4e0819b33b85 (patch) | |
tree | fa49e89a9624dff958ff59af53b25d34ea4cdb4e /libgomp/oacc-init.c | |
parent | dc2a24eddf28bf75a8869168202fa19a856af055 (diff) |
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-init.c')
-rw-r--r-- | libgomp/oacc-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgomp/oacc-init.c b/libgomp/oacc-init.c index c12f8ad7137..2258a72bbe5 100644 --- a/libgomp/oacc-init.c +++ b/libgomp/oacc-init.c @@ -644,6 +644,9 @@ goacc_runtime_initialize (void) goacc_threads = NULL; gomp_mutex_init (&goacc_thread_lock); + + /* Initialize and register the 'host' device type. */ + goacc_host_init (); } /* Compiler helper functions */ |