From: Jakub Jelinek Date: Mon, 19 Dec 2022 14:05:16 +0000 (+0100) Subject: testsuite: Fix up pr64536.c for LLP64 targets [PR108151] X-Git-Tag: release-12.2.mpacbti-rel1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f6149fe272101af6de3a19be4e41d0e77e7f6c;p=thirdparty%2Fgcc.git testsuite: Fix up pr64536.c for LLP64 targets [PR108151] Apparently llp64 had 2 further warnings, fixed thusly. 2022-12-19 Jakub Jelinek PR testsuite/108151 * gcc.dg/pr64536.c (bar): Cast long to __INTPTR_TYPE__ before casting to long *. (cherry picked from commit 6e85f89a7d59a99a3395b6e153b99262a58b2f6c) --- diff --git a/gcc/testsuite/gcc.dg/pr64536.c b/gcc/testsuite/gcc.dg/pr64536.c index bca2d4f0efea..18afa9d02329 100644 --- a/gcc/testsuite/gcc.dg/pr64536.c +++ b/gcc/testsuite/gcc.dg/pr64536.c @@ -40,7 +40,7 @@ bar (int x) h->q = *f; } else - i = (long *) (h->q = *f); + i = (long *) (__INTPTR_TYPE__) (h->q = *f); *c++ = (__INTPTR_TYPE__) f; e += 6; } @@ -54,7 +54,7 @@ bar (int x) h->q = *f; } else - i = (long *) (h->q = *f); + i = (long *) (__INTPTR_TYPE__) (h->q = *f); *c++ = (__INTPTR_TYPE__) f; e += 6; }