public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
@ 2011-01-04 12:45 Kai Tietz
  2011-01-16 18:10 ` NightStrike
  2011-01-24 17:26 ` Richard Henderson
  0 siblings, 2 replies; 4+ messages in thread
From: Kai Tietz @ 2011-01-04 12:45 UTC (permalink / raw)
  To: GCC Patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-24 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 12:45 [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c Kai Tietz
2011-01-16 18:10 ` NightStrike
2011-01-24 17:26 ` Richard Henderson
2011-01-24 20:23   ` Kai Tietz

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).