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

--- 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:bd6079f1a465fad5c9916bcad71c583a69fbd281

commit r17-5538-gbd6079f1a465fad5c9916bcad71c583a69fbd281
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.

Reply via email to