From: Jakub Jelinek <jakub@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [committed] testsuite: Fix up pr64536.c for LLP64 targets [PR108151]
Date: Mon, 19 Dec 2022 15:07:45 +0100 [thread overview]
Message-ID: <Y6BwMS8xkhs1IKk1@tucnak> (raw)
Hi!
Apparently llp64 had 2 further warnings, fixed thusly.
Committed as obvious after testing it with cross to mingw.
2022-12-19 Jakub Jelinek <jakub@redhat.com>
PR testsuite/108151
* gcc.dg/pr64536.c (bar): Cast long to __INTPTR_TYPE__
before casting to long *.
--- gcc/testsuite/gcc.dg/pr64536.c.jj
+++ 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;
}
Jakub
next reply other threads:[~2022-12-19 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-19 14:07 Jakub Jelinek [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-19 12:53 Jakub Jelinek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y6BwMS8xkhs1IKk1@tucnak \
--to=jakub@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).