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

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

https://gcc.gnu.org/g:5d7c74258d3a4b95cd5022acd5fa51381d922a40

commit r17-2180-g5d7c74258d3a4b95cd5022acd5fa51381d922a40
Author: Philipp Tomsich <[email protected]>
Date:   Fri Jul 3 20:16:38 2026 +0200

    tree-optimization/124545 - fix pr124545-2.c on ilp32 targets

    The uns_carry() helper used "unsigned int" (32-bit) as the narrow type
    and "unsigned long" as the wide type.
    Switch to __UINT32_TYPE__ / __UINT64_TYPE__ throughout so that the
    narrow-vs-wide test is target-independent.

            PR tree-optimization/124545

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr124545-2.c: Use __UINT32_TYPE__ / __UINT64_TYPE__
            instead of unsigned int/long/long long so the runtime check
            works on ILP32 targets.

    Reported-by: Torbjörn SVENSSON <[email protected]>
    Tested-by: Torbjörn SVENSSON <[email protected]>
    Signed-off-by: Philipp Tomsich <[email protected]>

Reply via email to