[Bug rtl-optimization/49330] Integer arithmetic on addresses optimised with pointer arithmetic rules

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 26 15:44:20 GMT 2026


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

--- Comment #44 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:87f0b4e17f798d1e273f89e6c43f1df83fb5133f

commit r17-3675-g87f0b4e17f798d1e273f89e6c43f1df83fb5133f
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Wed Aug 26 17:34:49 2026 +0200

    Rectify sloppy PR49330 test case.

    This test failed with

    pr49330-2.c:10:21: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]

    since it usesed unsigned long instead of __UINTPTR_TYPE__.

            PR testsuite/49330
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/torture/pr49330-2.c (foo): Use __UINTPTR_TYPE__
            instead of unsigned long.


More information about the Gcc-bugs mailing list