On 10/05/2017 03:47 PM, Joseph Myers wrote: > On Thu, 5 Oct 2017, Bernd Edlinger wrote: > >> Maybe it would be good to not warn in type-casts, when they can be >> assumed to be safe, for instance >> void* <-> any pointer (parameter or result), >> uintptr_t <-> any int, any pointer (parameter or result), >> void (*) (void) and void (*) (...) <-> any function pointer. > > Well, void * and uintptr_t aren't necessarily interchangable at the ABI > level. At least, the m68k ABI returns integers in %d0 and pointers in > %a0; I don't know if any other ABIs have that peculiarity. > The mn103 (live) and mn102 (dead) probably do. But my memory is getting fuzzy on those.
jeff