From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21922 invoked by alias); 16 Jan 2011 14:11:44 -0000 Received: (qmail 21906 invoked by uid 22791); 16 Jan 2011 14:11:44 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Jan 2011 14:11:40 +0000 Received: by wwe15 with SMTP id 15so4190181wwe.8 for ; Sun, 16 Jan 2011 06:11:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.183.203 with SMTP id ch11mr2848508wbb.214.1295187097693; Sun, 16 Jan 2011 06:11:37 -0800 (PST) Received: by 10.227.12.8 with HTTP; Sun, 16 Jan 2011 06:11:37 -0800 (PST) In-Reply-To: References: Date: Sun, 16 Jan 2011 18:10:00 -0000 Message-ID: Subject: Re: [patch middle-end]: Fix pointer cast warning for LLP64 in emit-rtl.c From: NightStrike To: Kai Tietz Cc: GCC Patches Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg01082.txt.bz2 Ping On Tue, Jan 4, 2011 at 7:31 AM, Kai Tietz wrote: > Hello, > > ChangeLog gcc/ > > 2011-01-04 =A0Kai Tietz > > =A0 =A0 =A0 =A0* 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- emit-rtl.c =A0(revision 168457) > +++ emit-rtl.c =A0(working copy) > @@ -325,7 +325,7 @@ > =A0{ > =A0 const reg_attrs *const p =3D (const reg_attrs *) x; > > - =A0return ((p->offset * 1000) ^ (long) p->decl); > + =A0return (hashval_t) ((p->offset * 1000) ^ (intptr_t) p->decl); > =A0} > > =A0/* Returns nonzero if the value represented by X (which is really a >