This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]