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: PR 8757


On Tue, Mar 16, 2004 at 02:42:35PM +0100, Miloslav Trmac wrote:
> The attached patch changes splay_tree_key and splay_tree_value from
> "unsigned long" to "void *".

This doesn't help, really.

> !     splay_tree_remove (pbi->reg_cond_dead, (splay_tree_key)regno);

This is now going to warn about "cast from integer to pointer of 
different size", for 32-bit unsigned int and 64-bit pointer.

What is needed is to use intptr_t from <stdint.h> if available,
or deduce one via configure if not.



r~


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