https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123512

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Thomas Koenig <[email protected]>:

https://gcc.gnu.org/g:0a98b1a6ac91cb1aa0f89f7dcdb9c35daa88c2a1

commit r16-6670-g0a98b1a6ac91cb1aa0f89f7dcdb9c35daa88c2a1
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.

Reply via email to