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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hans-Peter Nilsson <[email protected]>:

https://gcc.gnu.org/g:695282a69cfca0f730f77be3bf504dabc790c3a7

commit r17-6152-g695282a69cfca0f730f77be3bf504dabc790c3a7
Author: Hans-Peter Nilsson <[email protected]>
Date:   Tue Nov 10 18:09:39 2026 +0000

    libgfortran: Make HAVE_ATOMIC_FETCH_ADD reflect a 64-bit integer, not int
[PR 128618]

    In r17-6022-gbcf14085d8270f, conditional calls were added for applying
    __atomic_fetch_add to a uint64_t.  This broke libgfortran for 32-bit
    systems, that don't have such an operation and lack libatomic.
    Better change the configure test to check a 64-bit type.  Use
    __INT64_TYPE__ to avoid having to find and include a usable stdint.h,
    (which would require extra measures for e.g. newlib systems that
    configure and build the library together with gcc)

            PR libfortran/128618
            * acinclude.m4 (LIBGFOR_CHECK_ATOMIC_FETCH_ADD): Check that
            __atomic_fetch_add works on a 64-bit type, not just int.
            * configure: Regenerate.

Reply via email to