]> gcc.gnu.org Git - gcc.git/commitdiff
re PR libgomp/27254 (FAIL: libgomp.fortran/reduction6.f90)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Mon, 19 Jun 2006 03:07:54 +0000 (03:07 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 19 Jun 2006 03:07:54 +0000 (03:07 +0000)
PR libgomp/27254
* io/unit.c (get_internal_unit): Initialize and lock thread mutex
for internal units.

From-SVN: r114765

libgfortran/ChangeLog
libgfortran/io/unit.c

index bd1aecbc32bd70456aa80546ebf5e26236bde2c6..8517cae1ee85025a1e73e391f171b7b4f0100944 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR libgomp/27254
+       * io/unit.c (get_internal_unit): Initialize and lock thread mutex
+       for internal units.
+
 2006-06-06  Janne Blomqvist  <jb@gcc.gnu.org>
 
        * m4/in_pack.m4: Add TODO comment about detecting temporaries,
index 14438f84c825537ca4368302cd352f91f6a3cbfa..0b7dee10155f3c22c09c032693da7dfc9b024990 100644 (file)
@@ -376,6 +376,15 @@ get_internal_unit (st_parameter_dt *dtp)
     }
 
   memset (iunit, '\0', sizeof (gfc_unit));
+#ifdef __GTHREAD_MUTEX_INIT
+  {
+    __gthread_mutex_t tmp = __GTHREAD_MUTEX_INIT;
+    iunit->lock = tmp;
+  }
+#else
+  __GTHREAD_MUTEX_INIT_FUNCTION (&iunit->lock);
+#endif
+  __gthread_mutex_lock (&iunit->lock);
 
   iunit->recl = dtp->internal_unit_len;
   
This page took 0.087894 seconds and 5 git commands to generate.