]> gcc.gnu.org Git - gcc.git/commitdiff
re PR libfortran/83613 (Executing gfortran.dg/inquire_internal.f90 hangs on darwin...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 29 Dec 2017 22:36:25 +0000 (22:36 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 29 Dec 2017 22:36:25 +0000 (22:36 +0000)
2017-12-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/83613
        * io/unit.c (init_units): Don't forget to unlock the unit locks
        after being inserted.

From-SVN: r256035

libgfortran/ChangeLog
libgfortran/io/unit.c

index e94df2c75bd76b802b83ab4ddc007f62b2594925..8a7b66c735193e50204fbeb718c94df895857748 100644 (file)
@@ -1,3 +1,9 @@
+2017-12-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/83613
+       * io/unit.c (init_units): Don't forget to unlock the unit locks
+       after being inserted.
+
 2017-12-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/83560
index 2ca8525fbec465f2c62aa5cee84038e0d055154a..a655665aa8a4527c893cb2dbf3b78c8b65bb2c45 100644 (file)
@@ -707,7 +707,9 @@ init_units (void)
     }
   /* The default internal units.  */
   u = insert_unit (GFC_INTERNAL_UNIT);
+  __gthread_mutex_unlock (&u->lock);
   u = insert_unit (GFC_INTERNAL_UNIT4);
+  __gthread_mutex_unlock (&u->lock);
 }
 
 
This page took 0.064346 seconds and 5 git commands to generate.