Re: [committed] libstdc++: Fix call to __glibcxx_rwlock_init (PR 93244)

2020-03-06 Thread Jonathan Wakely
On 06/03/20 12:04 +, Jonathan Wakely wrote: When the target doesn't define PTHREAD_RWLOCK_INITIALIZER we use a wrapper around pthread_wrlock_init, but the wrapper only takes one argument and we try to call it with two. This went unnnoticed on most targets because they do define the PTHREAD_R

[committed] libstdc++: Fix call to __glibcxx_rwlock_init (PR 93244)

2020-03-06 Thread Jonathan Wakely
When the target doesn't define PTHREAD_RWLOCK_INITIALIZER we use a wrapper around pthread_wrlock_init, but the wrapper only takes one argument and we try to call it with two. This went unnnoticed on most targets because they do define the PTHREAD_RWLOCK_INITIALIZER macro, but it causes a bootstrap