This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix omp_init_nest_lock_with_hint prototype (PR libgomp/84096)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Christoph Spiel <cspiel at freenet dot de>
- Date: Tue, 30 Jan 2018 00:41:02 +0100
- Subject: [committed] Fix omp_init_nest_lock_with_hint prototype (PR libgomp/84096)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've committed following fix to the omp_init_nest_lock_with_hint
prototype. I've found that I've actually forgot to add those
symbols to libgomp.so*, so that will need to be done next (at that
point I've been wondering whether we change omp_lock_t/omp_nest_lock_t
to something larger or what kind of hacks we use to actually
implement the hinting; perhaps for now we'll just ignore the hint).
2018-01-29 Christoph Spiel <cspiel@freenet.de>
Jakub Jelinek <jakub@redhat.com>
PR libgomp/84096
* omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
instead of omp_lock_t.
--- libgomp/omp.h.in.jj 2018-01-03 10:42:58.454763907 +0100
+++ libgomp/omp.h.in 2018-01-29 21:14:18.611499982 +0100
@@ -101,7 +101,7 @@ extern void omp_unset_lock (omp_lock_t *
extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW;
extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
-extern void omp_init_nest_lock_with_hint (omp_lock_t *, omp_lock_hint_t)
+extern void omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_lock_hint_t)
__GOMP_NOTHROW;
extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
Jakub