Revert "Add code to tolerate sloppy code of libgomp." This reverts commit 628fdbff240760b0de3167cf1d197d448284606c. Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com> Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-libraries/winpthreads/src/mutex.c b/mingw-w64-libraries/winpthreads/src/mutex.c index ae47858..f64ab35 100644 --- a/mingw-w64-libraries/winpthreads/src/mutex.c +++ b/mingw-w64-libraries/winpthreads/src/mutex.c
@@ -65,13 +65,8 @@ a mutex_impl_t). */ static BOOL is_static_initializer(pthread_mutex_t m) -{ - /* Treat 0 as a static initializer as well (for normal mutexes), - to tolerate sloppy code in libgomp. (We should rather fix that code!) */ - intptr_t v = (intptr_t)m; - return v >= -3 && v <= 0; -/* Should be simple: - return (uintptr_t)m >= (uintptr_t)-3; */ +{ + return (uintptr_t)m >= (uintptr_t)-3; } /* Create and return the implementation part of a mutex from a static