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

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

https://gcc.gnu.org/g:794c029d592b0e47e5698da855c995dad4bbb586

commit r16-9835-g794c029d592b0e47e5698da855c995dad4bbb586
Author: Thomas Koenig <[email protected]>
Date:   Sat Oct 24 17:24:42 2026 +0200

    LEADZ, POPCNT, POPPAR and TRAILZ for unsigned numbers.

    Playing around with UNSIGNED, I noted that LEADZ and TRAILZ were rejected
    for UNSIGNED, which makes no sense.  POPCNT and POPPAR worked, but this
    was not documented.  All that was needed for the LEADZ and TRAILZ to work
    was to adjust the check routine.

    gcc/fortran/ChangeLog:

            PR fortran/128124
            * gfortran.texi: Note that LEADZ, POPCNT, POPPAR and TRAILZ take
            unsigned arguments.
            * intrinsic.cc (add_functions): LEADZ and TRAILZ also take unsigned
            arguments.
            * intrinsic.texi: Document unsigned arguments for LEADZ, POPCNT,
POPPAR
            and TRAILZ.

    gcc/testsuite/ChangeLog:

            PR fortran/128124
            * gfortran.dg/unsigned_45.f90: New test.

    (cherry picked from commit bd6079f1a465fad5c9916bcad71c583a69fbd281)

Reply via email to