https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86846
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- OK, thanks. The second patch might not be needed for hppa64-hp-hpux11.11 but would be for targets without pointer-width atomics and without PTHREAD_MUTEX_INITIALIZER, so I'll commit that version.