https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123512
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:635079819a5553fa8b0e03a3d9a6c12f0213a51f commit r15-11747-g635079819a5553fa8b0e03a3d9a6c12f0213a51f Author: Thomas Koenig <[email protected]> Date: Fri Jan 9 22:00:07 2026 +0100 Fix broken bootstrap on FreeBSD. As analyzed by Steve, on freebsd __gthread_t is a pointer type. I thought it the cleanest solution to remove the #ifdef in gfc_unit, make the "self" member a intptr_t and cast the return value of __gthread_t to that type. PR fortran/123512 libgfortran/ChangeLog: * io/io.h: Change type of self to intptr_t. * io/async.h (LOCK_UNIT): Cast __gthread_self () to intptr_t. (TRYLOCK_UNIT): Likewise. (OWN_THREAD_ID): Likewise. (cherry picked from commit 0a98b1a6ac91cb1aa0f89f7dcdb9c35daa88c2a1)
