From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15626 invoked by alias); 16 Feb 2012 04:50:48 -0000 Received: (qmail 15610 invoked by uid 22791); 16 Feb 2012 04:50:47 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Feb 2012 04:50:34 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7E7581B4004; Thu, 16 Feb 2012 04:50:33 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: [RFC] sim/sh: Fix compile warnings for 64-bit build hosts Date: Thu, 16 Feb 2012 04:54:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) Cc: Kevin Buettner References: <20120215172622.4f377c2b@mesquite.lan> In-Reply-To: <20120215172622.4f377c2b@mesquite.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart27160498.bq2C2gLULp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201202152350.35277.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00319.txt.bz2 --nextPart27160498.bq2C2gLULp Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 585 On Wednesday 15 February 2012 19:26:22 Kevin Buettner wrote: > Any comments on the following patch? uintptr_t i think would be better, but we don't seem to use that in sim/, s= o=20 this is OK > It fixes a bunch of warnings when building on a 64-bit host. Here > are a few of them: >=20 > ./code.c:93: warning: cast from pointer to integer of different size > ./code.c:215: warning: cast from pointer to integer of different size > ./code.c:230: warning: cast from pointer to integer of different size makes me think that this sim is incorrectly mixing target and host types -mike --nextPart27160498.bq2C2gLULp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPPIsbAAoJEEFjO5/oN/WBotgP/iKuoe/IujF8DMN0sEGvOCp7 gNpmDRPTGiRqPxNqDNpGNFOVwvtVGN+YDbK4jKb/NUfGnKnWIVNNM+dh8GyRErdR GluhM9UnLk2pc33m5R6GviUwPrzaQy6dFKslZhBPCVNE1BTBeZ7HAaeS+NwySrcb UnnN9uk90zZSc4QxkIU6Xg6RUkzWoPsvUqIqb+fAHs7iYcvH26x/aWXaYWe0dfU2 2azO1SlD/cCeLG9LpZ6rm1KVwXm/jsCaJMLxoOhuUQwmhcfoMFmpqdNT7gCRWKSJ DMovDH4HOe+1oNTPUy/noZWcEp5SDGnIe65+tNJeK/u3++HYl9rwt+igy3u4EfUe maedWeP14FS8S0u/Ri8algQwnRJHwRCHREVYyyC5bF+l2JpmQo+ZLjsyAz/y8oFj 6sBdr0wTxsQl/hZLEIsb95n/JMjnH/qkYDk2vmmq7ODiDeLX/mVy2+cptGSZvQ2/ bMGtapgVDgCcPrefhDKMFcgSXpddawvBhCaYjxm/DkPchHxNwUX+1mT/nuJRUPeF F50QMYBiMNNsMc0ksDup0vsrk1/FJ84pzjQh2UFBb4dHgUnPJkG/S7RKHUS6v8kj 5eJyS9b8L3nzXmxO4+/1lbworIEF7MdIYXFmgK5g6qX4lzQKbI1zgIL2IZE7U3R4 AsxghUJyCvXb4Q7lz9d1 =Pee0 -----END PGP SIGNATURE----- --nextPart27160498.bq2C2gLULp--