[RFC] sim/sh: Fix compile warnings for 64-bit build hosts

Mike Frysinger vapier@gentoo.org
Thu Feb 16 04:54:00 GMT 2012


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/, so 
this is OK

> It fixes a bunch of warnings when building on a 64-bit host.  Here
> are a few of them:
> 
> ./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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120216/991e8071/attachment.sig>


More information about the Gdb-patches mailing list