On 12/29/2017 02:40 PM, Jerry DeLisle wrote:
> Committed as obvious after regression testing on x86_64-pc-linux-gnu.
> 
> Dominiq: Please confirm is fixed.
> 
> Regards,
> 
> Jerry
> 

The actual patch, Dominiq confirmed the issue was fixed:

diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c
index 2ca8525fbec..a655665aa8a 100644
--- a/libgfortran/io/unit.c
+++ b/libgfortran/io/unit.c
@@ -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);
 }


Cheers,

Jerry

Reply via email to