Fix for SPEC CPU2017 621.wrf_s failure, add missing locking code.
authorJim Wilson <jim.wilson@r3-a15.aus-colo>
Mon, 26 Jun 2017 21:40:47 +0000 (21:40 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 26 Jun 2017 21:40:47 +0000 (14:40 -0700)
commitb971fa7f33010910a351d06e8c1e2fc81787e791
treeb3b89b10b37626121cb9c6bd74ec09bc0d63a45e
parentb0d1023d5f5f52a21d00f6e7eb5d46898c052171
Fix for SPEC CPU2017 621.wrf_s failure, add missing locking code.

libgfortran/
PR libfortran/81195
* io/unit.c (get_unit): Call __gthread_mutex_lock before newunit_stack
and newunit_tos references.  Call __gthread_mutex_unlock afterward.

From-SVN: r249667
libgfortran/ChangeLog
libgfortran/io/unit.c