From: Kai Tietz <ktietz70@googlemail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
Date: Tue, 04 Jan 2011 12:45:00 -0000 [thread overview]
Message-ID: <AANLkTikNbSSDSrUsWqGsFVDOkK9G=FJs2sL5p93L5LqZ@mail.gmail.com> (raw)
Hello,
ChangeLog gcc/
2011-01-04 Kai Tietz
* emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
Tested for i686-pc-cygwin and x86_64-w64-mingw32. Ok for apply?
Regards,
Kai
Index: emit-rtl.c
===================================================================
--- emit-rtl.c (revision 168457)
+++ emit-rtl.c (working copy)
@@ -325,7 +325,7 @@
{
const reg_attrs *const p = (const reg_attrs *) x;
- return ((p->offset * 1000) ^ (long) p->decl);
+ return (hashval_t) ((p->offset * 1000) ^ (intptr_t) p->decl);
}
/* Returns nonzero if the value represented by X (which is really a
next reply other threads:[~2011-01-04 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 12:45 Kai Tietz [this message]
2011-01-16 18:10 ` NightStrike
2011-01-24 17:26 ` Richard Henderson
2011-01-24 20:23 ` Kai Tietz
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='AANLkTikNbSSDSrUsWqGsFVDOkK9G=FJs2sL5p93L5LqZ@mail.gmail.com' \
--to=ktietz70@googlemail.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).