From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Polzin To: egcs@cygnus.com Subject: Could egcs warn at (int*)(int)(x)? Date: Mon, 15 Dec 1997 09:34:00 -0000 Message-id: <9712151734.AA15549@occam.informatik.uni-dortmund.de> X-SW-Source: 1997-12/msg00841.html I had problems with porting a software package to a 64 bit architecture. After exhausting debugging-sessions I found that the problem were "pointer-> int->pointer"-casts which loose the upper 32 bit of the address. The usual warnings (-wAll -Wconversion -Wpointer-arith) do not detect this porblems. Is there any possibility to get warnings for things like: int* foo=(int*)((int)bar + delta); Or even for int delta= long(newaddress)-long(oldaddress). Tobias "2b" Polzin