[patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c

NightStrike nightstrike@gmail.com
Sun Jan 16 18:10:00 GMT 2011


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
>



More information about the Gcc-patches mailing list