[Bug testsuite/108151] gcc.dg/pr64536.c stores pointers in a long, broken for llp64

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 19 12:52:57 GMT 2022


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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:ea37e96a37b50dad17b91d46edc518bbb9132d8e

commit r13-4778-gea37e96a37b50dad17b91d46edc518bbb9132d8e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Dec 19 13:49:52 2022 +0100

    testsuite: Fix up pr64536.c for LLP64 targets [PR108151]

    The test casts a pointer to long, which is ok for ilp32 and lp64
    targets but not for llp64 targets.  Nothing reads the values later,
    it is a link test, so all we care about is that it is the same
    cast on s390x-linux where it used to fail before the PR64536 fix,
    and that we don't warn about it.

    2022-12-19  Jakub Jelinek  <jakub@redhat.com>

            PR testsuite/108151
            * gcc.dg/pr64536.c (bar): Use casts to __INTPTR_TYPE__ rather than
            long when casting pointer to integral type.


More information about the Gcc-bugs mailing list