Hello- The attached patch was discussed briefly on PR 54185 here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54185#c14 The test case for this PR sometimes fails due to random failures in pthread_create() that are not related to the original PR. This patch fixes it up by ignoring those failures. The test case was designed to repeat the same test 1000 times to attempt to reproduce a race condition, so I think is OK if some of those iterations are simply skipped. Thanks for taking a look at it; I can commit it if it makes sense. -Lewis