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  <csp...@freenet.de>
            Jakub Jelinek  <ja...@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

Reply via email to