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

* Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
  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
  1 sibling, 0 replies; 4+ messages in thread
From: NightStrike @ 2011-01-16 18:10 UTC (permalink / raw)
  To: Kai Tietz; +Cc: GCC Patches

Ping

On Tue, Jan 4, 2011 at 7:31 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> 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

* Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Henderson @ 2011-01-24 17:26 UTC (permalink / raw)
  To: Kai Tietz; +Cc: GCC Patches

On 01/04/2011 04:31 AM, Kai Tietz wrote:
>         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.

Ok.


r~

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

* Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
  2011-01-24 17:26 ` Richard Henderson
@ 2011-01-24 20:23   ` Kai Tietz
  0 siblings, 0 replies; 4+ messages in thread
From: Kai Tietz @ 2011-01-24 20:23 UTC (permalink / raw)
  To: Richard Henderson; +Cc: GCC Patches

2011/1/24 Richard Henderson <rth@redhat.com>:
> On 01/04/2011 04:31 AM, Kai Tietz wrote:
>>         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
>
> Ok.
>
>
> r~
>

Applied at revision 169176. Additionally fix ChangeLog date entry of
Paul Koning.

Regards,
Kai

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