This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
- From: NightStrike <nightstrike at gmail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Jan 2011 09:11:37 -0500
- Subject: Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c
- References: <AANLkTikNbSSDSrUsWqGsFVDOkK9G=FJs2sL5p93L5LqZ@mail.gmail.com>
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
>