https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Could there be some ordering issues with pthread_key going on? 2.28 added C11 thread.h support which did touch pthread_key too.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 11 Jan 2022 23:48:09 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103978
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Could there be some ordering issues with pthread_key going on? 2.28 added C11 thread.h support which did touch pthread_key too.