Re: [PATCH, libgfortran] proposed fix for SPEC CPU2017 621.wrf_s failures

2017-06-25 Thread Jerry DeLisle
On 06/25/2017 05:50 PM, Jim Wilson wrote: > As mentioned in bug 81195, I see openmp related failures due to a lack > of locking of the newunit_stack and newunit_tos variables. The code > locks when pushing onto the stack, but does not lock when popping from > the stack. This can cause multiple

[PATCH, libgfortran] proposed fix for SPEC CPU2017 621.wrf_s failures

2017-06-25 Thread Jim Wilson
As mentioned in bug 81195, I see openmp related failures due to a lack of locking of the newunit_stack and newunit_tos variables. The code locks when pushing onto the stack, but does not lock when popping from the stack. This can cause multiple threads to pop the same structure, which then